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 #8661 changing local account usage to tape recall usage in quota report #8697

Merged

Conversation

aspiringmind-code
Copy link
Contributor

changing local account usage to tape recall usage in quota report
See #8661

@cmsdmwmbot
Copy link

Jenkins results:

  • Python3 Pylint check: failed
    • 2 warnings and errors that must be fixed
    • 1 warnings
    • 8 comments to review
  • Pycodestyle check: succeeded
    • 17 comments to review

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

@belforte
Copy link
Member

nice work to have "discovered" getTapeRecallUsage.

@@ -29,18 +30,11 @@ def readpwd():
def createQuotaReport(rucioClient=None, account=None):
"""
create a dictionary with the quota report to be sent to MONIT
even if we do not report usage at single RSE's now, let's collect that info as well
returns {'rse1':bytes, 'rse':bytes,..., 'totalTB':TBypte}
we do not report usage at single RSE's now, we don't collect that info either
Copy link
Member

Choose a reason for hiding this comment

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

i suggest to remove this comment which was specific of using get_local_account_usage

@belforte
Copy link
Member

please also fix pylint warnings, even if not due to your changes, let's take chances like this to slowly improve code quality. A campaign to fix all code base is too much, but we should aim for 'all checks passed' as much as possible. So we avoid not noticing new problems amid the existing noise.

@cmsdmwmbot
Copy link

Jenkins results:

  • Python3 Pylint check: succeeded
    • 1 warnings
    • 8 comments to review
  • Pycodestyle check: succeeded
    • 17 comments to review

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

@aspiringmind-code aspiringmind-code merged commit b3b26db into dmwm:master Sep 17, 2024
2 checks passed
@aspiringmind-code aspiringmind-code deleted the vchakrav_17/09/24Issue8661 branch September 17, 2024 11:07
@belforte
Copy link
Member

generally speaking it is more correct to wait before merging, or the reviewer to check that changes addressed the comments. It is not a good practice to merge with non-approved reviews.

@aspiringmind-code
Copy link
Contributor Author

@belforte Sorry for the hurry. As the changes requested were not major, I merged without disturbing you again. I will be more thorough going forward :)

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.

3 participants