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

Fix last digit wrap in customDID sequence #11948

Merged
merged 2 commits into from
Mar 26, 2024

Conversation

vkuznet
Copy link
Contributor

@vkuznet vkuznet commented Mar 26, 2024

Fixes #11736

Status

ready

Description

I found that current algorithm in customDID function creates wrong sequence number when last digit is more than 10 and lasts with number 9, i.e. 19, 1119, 29, etc. This leads to non-sequential sequence number wraps, e.g. (taken from cmsweb-testbed):

    {
      "containerFraction": 1.0,
      "customDID": "/hasan-test10-Neutrino_E-10_gun/Run3Summer21PrePremix-120X_mcRun3_2021_realistic_v6-v2/PREMIX-V19",
      "updateTime": 1709642777,
      "DN": ""
    },
    {
      "containerFraction": 1.0,
      "customDID": "/hasan-test10-Neutrino_E-10_gun/Run3Summer21PrePremix-120X_mcRun3_2021_realistic_v6-v2/PREMIX-V110",
      "updateTime": 1709643280,
      "DN": "xxx"
    },

Please see that transition record went from -V19 to -V110. This PR fixes this issue.

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

YES

Related PRs

External dependencies / deployment changes

@cmsdmwmbot
Copy link

Jenkins results:

  • Python3 Unit tests: failed
    • 1 new failures
    • 1 tests no longer failing
  • Python3 Pylint check: succeeded
    • 7 warnings
    • 3 comments to review
  • Pylint py3k check: succeeded
  • Pycodestyle check: succeeded
    • 1 comments to review

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

@amaltaro
Copy link
Contributor

Please test V99 and V100 as well

@vkuznet
Copy link
Contributor Author

vkuznet commented Mar 26, 2024

Please test V99 and V100 as well

I added new unit test for this use-case too, it runs fine in my local area, but jenkins are triggered again.

@cmsdmwmbot
Copy link

Jenkins results:

  • Python3 Unit tests: failed
    • 1 new failures
    • 1 changes in unstable tests
  • Python3 Pylint check: succeeded
    • 7 warnings
    • 3 comments to review
  • Pylint py3k check: succeeded
  • Pycodestyle check: succeeded
    • 2 comments to review

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

Copy link
Contributor

@amaltaro amaltaro left a comment

Choose a reason for hiding this comment

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

Looks good to me, please squash commits accordingly.

@vkuznet
Copy link
Contributor Author

vkuznet commented Mar 26, 2024

commits are squashed

@cmsdmwmbot
Copy link

Jenkins results:

  • Python3 Unit tests: succeeded
    • 1 tests no longer failing
    • 1 changes in unstable tests
  • Python3 Pylint check: succeeded
    • 7 warnings
    • 3 comments to review
  • Pylint py3k check: succeeded
  • Pycodestyle check: succeeded
    • 1 comments to review

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

@amaltaro
Copy link
Contributor

Thanks Valentin!

@amaltaro amaltaro merged commit db3b432 into dmwm:master Mar 26, 2024
3 of 4 checks passed
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.

Integrate all the partial pileup features together and run final pre-production tests
3 participants