-
Notifications
You must be signed in to change notification settings - Fork 107
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
Adds WMCMSSWSubprocess metrics to FJR document #11716
Conversation
Jenkins results:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vkuznet in addition to the comments along the code, can you please provide unit test(s) for these changes? Thanks
@@ -113,7 +112,6 @@ | |||
# 'StageOutCommand': '' | |||
}], | |||
'WMCMSSWSubprocess': {}, | |||
'WMTiming': {}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you removing this because this isn't yet fully functional? If so, then don't you prefer to leave it in while we work on getting this WMTiming metric in the proper fwjr document?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am removing this because it does not belong to this step part of the report and it should be at top level. But so far I do not see any defaults for top level parts in this codebase, and only defaults for step parts.
@@ -1410,6 +1424,17 @@ def getPrepID(self): | |||
""" | |||
return getattr(self.data, 'prep_id', "") | |||
|
|||
def getWMTiming(self): | |||
""" | |||
_getWMTiming_ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please refresh this contribution guidelines: https://github.com/dmwm/WMCore/blob/master/CONTRIBUTING.rst#project-docstrings-best-practices
It seems you also have trailing spaces here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will do, I copied docstring as it is used in other parts in this code. And, new docstring style will differ from other methods just saying.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's fine. At least we will be slowly converging towards one style.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ping
@@ -301,6 +303,18 @@ def getExitCodes(self): | |||
returnCodes.update(self.getStepExitCodes(stepName=stepName)) | |||
return returnCodes | |||
|
|||
def getWMCMSSWSubprocess(self, stepName): | |||
""" | |||
_getWMCMSSWSubprocess_ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same comment as below, please see https://github.com/dmwm/WMCore/blob/master/CONTRIBUTING.rst#project-docstrings-best-practices
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ping
Jenkins results:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vkuznet Valentin, this code looks good to me, despite a few minor comments that have not been addressed from the previous review.
In addition, I would suggest to:
- refactor the initial PR description (IMO, most of that content belongs to the wiki that you created, for the data flow of CMSSW metrics).
- if you are done working on the PR, please remove that label as well (PR: work in progress)
- please provide unit tests for the 2 new getter methods.
@@ -301,6 +303,18 @@ def getExitCodes(self): | |||
returnCodes.update(self.getStepExitCodes(stepName=stepName)) | |||
return returnCodes | |||
|
|||
def getWMCMSSWSubprocess(self, stepName): | |||
""" | |||
_getWMCMSSWSubprocess_ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ping
@@ -1410,6 +1424,17 @@ def getPrepID(self): | |||
""" | |||
return getattr(self.data, 'prep_id', "") | |||
|
|||
def getWMTiming(self): | |||
""" | |||
_getWMTiming_ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ping
Jenkins results:
|
@amaltaro , I updated description of this PR, removed label and added unit tests.
Please review this PR again and let me know if it is ok. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vkuznet changes look good to me, but first please squash these commits accordingly and if needed, amend the commit message as well.
dab6c6d
to
4a12754
Compare
Squash is done |
Jenkins results:
|
Thanks, Valentin. |
Fixes #11660
Complement to #11665
Status
ready
Description
Add
WMCMSSWSubproces
metrics to WMCore FJR stored in WMAgent local CouchDB. Full procedure is described in the following wiki.Is it backward compatible (if not, which system it affects?)
YES
Related PRs
#11692
External dependencies / deployment changes