Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update buildrelease.sh to consider release-candidate tags #11370

Merged
merged 1 commit into from
Nov 28, 2022

Conversation

amaltaro
Copy link
Contributor

@amaltaro amaltaro commented Nov 23, 2022

Fixes #11369

Status

ready

Description

Updates the buildrelease.sh script such that it does a diff of commits between the correct tags (now including release candidate and 4-digit versions).

It has been tested between 2.1.5rc1 and 2.1.5rc2 and the release notes (CHANGES) have been correctly updated.

Is it backward compatible (if not, which system it affects?)

NO

Related PRs

None

External dependencies / deployment changes

Documentation updated in: https://github.com/dmwm/WMCore/wiki/TaggingAndReleasing#new-tagging-convention

@cmsdmwmbot
Copy link

Jenkins results:

  • Python3 Unit tests: failed
    • 2 new failures
    • 2 tests no longer failing
    • 2 changes in unstable tests
  • Python3 Pylint check: succeeded
  • Pylint py3k check: succeeded
  • Pycodestyle check: succeeded

Details at https://cmssdt.cern.ch/dmwm-jenkins/view/All/job/DMWM-WMCore-PR-test/13755/artifact/artifacts/PullRequestReport.html

Copy link
Contributor

@vkuznet vkuznet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes looks good to me but I made a suggestions to replace perl call with sed to reduce dependency chain of shell script.

@@ -56,7 +56,7 @@ echo "Updating version string ..."
perl -p -i -e "s{__version__ =.*}{__version__ = '$TAG'}g" src/python/WMCore/__init__.py
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since you're making changes, how about changing this line and get rid of perl. You can replace this with sed and use flag -i which will do replacement in place of given file. Getting rid of perl will reduce dependency chain and shell script can rely on standard UNIX tools rather dedicated programming language.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, this line is simple to replace. But the helper function is a bit more tricky.
I created an specific issue for this task though: #11372

@amaltaro amaltaro merged commit 21220f0 into dmwm:master Nov 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Adapt the shell script to build releases and release note with the new tagging model
3 participants