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

Support SiteList change in ReqMgr - aggregate all PRs #12148

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

todor-ivanov
Copy link
Contributor

Fixes #12037

Status

In development

Description

SUPERSEDES: #12146

With the current change we allow SiteLists related actions for statuses: staging, acquired, running-open in ReqMgr2

Before making a call to central services for changing any of the request parameters, an additional step is executed to
to check which are the allowed parameter modifications for the given status and if the so provided new values from the rest call actually differ from the workflow parameters already defined in central couchdb.

With the current change we no longer ignore all the rest of the request arguments provided with the REST call in the cases of a change of the Request priority. See: #8457 (comment)

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

YES

Related PRs

This PR provides a cherry-pick of 3 pull requests that have been recently reverted. Changes have been originally provided by:
#12077
#12108
#12111

And on top of them the following one should be rebased:
#12120

External dependencies / deployment changes

None

Add proper checks for allowed request properties changes && Stop reducing request_args only to RequestPriority for noStatusTransition actions

Extend allowed arguments including stat_keys and RequestStatus && Call the relevant modifiers from _handleNoStatusUpdate

Fix missing RequestName from request_args on mutipple calls of validate_request_update_args

Add proper log messages for Sitelists changes

Remove redundant validation calls && Update reqdb couch with single action && Move reduceReport to Utils.

Typo

Remove forgotten commented lines of code

Review comments

Source files pylint fixes

Review comments
Unit tests

Unit tests pylint fixes

Unit tests - remove tests for reduceReport
@todor-ivanov todor-ivanov changed the title Feature sete whitelist support change in reqmgr2 aggregate all p rs fix 12307 Support SiteList change in ReqMgr - aggregate all PRs Oct 17, 2024
@cmsdmwmbot
Copy link

Jenkins results:

  • Python3 Unit tests: failed
    • 1 new failures
    • 1 tests added
    • 2 changes in unstable tests
  • Python3 Pylint check: failed
    • 3 warnings and errors that must be fixed
    • 15 warnings
    • 180 comments to review
  • Pylint py3k check: succeeded
  • Pycodestyle check: succeeded
    • 10 comments to review

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

@cmsdmwmbot
Copy link

Can one of the admins verify this patch?

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.

Support change to SiteWhitelist/SiteBlacklist in ReqMgr2 for active workflows
2 participants