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

Construct the PU location via rucio considering MSTransferor locks #9930

Merged
merged 2 commits into from
Sep 23, 2020

Conversation

amaltaro
Copy link
Contributor

@amaltaro amaltaro commented Sep 22, 2020

Fixes #9894

Status

ready

Description

Previous logic in WMAgent for resolving the pileup location (the pileupconf.json construction) was simply relying on the current block location, without considering who locked the data.

This PR changes that functionality to something similar to what is done at WorkQueue level, such that we only use data that has been locked by MSTransferor.

I also have two somehow unrelated changes here:

  • FileList will contain a flat list of file names (instead of {"logical_file_name": })
  • FileList is no longer sorted. I couldn't see any reason to sort it. Besides, at SetupCMSSWPSet level we shuffle all those files..

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

no, between old and new agents. But this isn't a valid use case.

Related PRs

none

External dependencies / deployment changes

none

@cmsdmwmbot
Copy link

Jenkins results:

  • Unit tests: failed
    • 2 new failures
    • 1 changes in unstable tests
  • Pylint check: failed
    • 6 warnings and errors that must be fixed
    • 12 warnings
    • 33 comments to review
  • Pycodestyle check: succeeded
    • 6 comments to review
  • Python3 compatibility checks: succeeded

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

@cmsdmwmbot
Copy link

Jenkins results:

  • Unit tests: failed
    • 1 new failures
    • 3 tests added
    • 1 changes in unstable tests
  • Pylint check: failed
    • 8 warnings and errors that must be fixed
    • 13 warnings
    • 45 comments to review
  • Pycodestyle check: succeeded
    • 18 comments to review
  • Python3 compatibility checks: succeeded

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

@cmsdmwmbot
Copy link

Jenkins results:

  • Unit tests: succeeded
    • 2 tests added
    • 1 changes in unstable tests
  • Pylint check: failed
    • 9 warnings and errors that must be fixed
    • 13 warnings
    • 41 comments to review
  • Pycodestyle check: succeeded
    • 7 comments to review
  • Python3 compatibility checks: succeeded

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

@amaltaro
Copy link
Contributor Author

@belforte Stefano, I should have implemented it yesterday. But in case it's not too late, I have made 2 useful utilitarian functions in the Rucio wrapper module. Check this PR out if you want.

@belforte
Copy link
Member

thanks Alan. Not too late. I will adopt dmwm/CRABServer#6165

@amaltaro
Copy link
Contributor Author

@khurtado FYI, this PR will slightly change the format of our pileupconf.json data structure (FileList will be a flat list, instead of a list of dicts).

@amaltaro
Copy link
Contributor Author

Unit test tests most of this functionality, a real test is still required though, once we have more data in Rucio int database

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update PileupFetcher to use Rucio to build the list of replicas and block location
3 participants