Skip to content

doc: add man page for clear-usage command, update docs with related information#814

Merged
mergify[bot] merged 4 commits intoflux-framework:masterfrom
cmoussa1:add.clear-usage.docs
Feb 12, 2026
Merged

doc: add man page for clear-usage command, update docs with related information#814
mergify[bot] merged 4 commits intoflux-framework:masterfrom
cmoussa1:add.clear-usage.docs

Conversation

@cmoussa1
Copy link
Member

Problem

There is no man(1) page for the clear-usage command.


This PR adds one. I've also snuck in a couple other commits to a) add a test to check that clear-usage is not accessible by all users, b), update the add-bank(1) and edit-bank(1) pages with the new --ignore-older-than optional argument, and c), add a section on clear-usage and why it might be beneficial to run.

Problem: There is no test in t1026-flux-account-perms.t that makes sure
that the "clear-usage" command is not accessible by all users.

Add a test.
Problem: The add-bank(1) and edit-bank(1) pages are not updated with the
new --ignore-older-than optional argument.

Update the man(1) pages with the new optional argument.
Problem: There is no man(1) page for the clear-usage command.

Add one.
Problem: There is no mention of the clear-usage command and its
potential benefit anywhere in the "Components" section of the
flux-accounting documentation.

Add a small section to the Job Usage Calculation page in the
flux-accounting documentation about resetting the usage for a bank and
its potential benefit.
@cmoussa1 cmoussa1 added documentation improvements or additions to documentation improvement upgrades to an already existing feature labels Feb 11, 2026
@cmoussa1 cmoussa1 requested a review from wihobbs February 11, 2026 21:17

An associated priority to be applied to jobs submitted under this bank.

.. option:: --ignore-older-than
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
.. option:: --ignore-older-than
.. option:: --ignore-older-than=SECONDS|DATETIME

:program:`flux account edit-bank` allows for the modifications of certain
fields for a given bank. The list of modifiable fields are as follows:

.. option:: --parent-bank
Copy link
Member

Choose a reason for hiding this comment

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

These three options are repeated across two commands. Are they repeated other places too? You might save yourself some copy/paste (and potential errors down the line) by having a file like doc/man1/common/bank-common-params.rst that you can drop in here. See flux-run(1) for an example.

Copy link
Member Author

Choose a reason for hiding this comment

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

No, those are the only places where they are listed, but this is a good suggestion. I should probably look into this, because there are plenty of options that are shared across the add-* and edit-* commands.

@mergify mergify bot added the queued label Feb 12, 2026
@mergify mergify bot merged commit f5e6cc5 into flux-framework:master Feb 12, 2026
24 of 26 checks passed
@mergify
Copy link
Contributor

mergify bot commented Feb 12, 2026

Merge Queue Status

Rule: default


  • Entered queue2026-02-12 16:46 UTC
  • Checks passed · in-place
  • Merged2026-02-12 16:46 UTC · at 5a870c4685304c326d112f013a87ddfdccc6d119

This pull request spent 6 seconds in the queue, with no time running CI.

Required conditions to merge
  • #approved-reviews-by >= 1 [🛡 GitHub branch protection]
  • #changes-requested-reviews-by = 0 [🛡 GitHub branch protection]
  • any of [🛡 GitHub branch protection]:
    • check-success = coverage
    • check-neutral = coverage
    • check-skipped = coverage
  • any of [🛡 GitHub branch protection]:
    • check-success = el8 - distcheck
    • check-neutral = el8 - distcheck
    • check-skipped = el8 - distcheck
  • any of [🛡 GitHub branch protection]:
    • check-success = el8 - py3.6
    • check-neutral = el8 - py3.6
    • check-skipped = el8 - py3.6
  • any of [🛡 GitHub branch protection]:
    • check-success = jammy - py3.6
    • check-neutral = jammy - py3.6
    • check-skipped = jammy - py3.6
  • any of [🛡 GitHub branch protection]:
    • check-success = spelling
    • check-neutral = spelling
    • check-skipped = spelling
  • any of [🛡 GitHub branch protection]:
    • check-success = python format
    • check-neutral = python format
    • check-skipped = python format
  • any of [🛡 GitHub branch protection]:
    • check-success = python lint
    • check-neutral = python lint
    • check-skipped = python lint
  • any of [🛡 GitHub branch protection]:
    • check-success = validate commits
    • check-neutral = validate commits
    • check-skipped = validate commits

@mergify mergify bot removed the queued label Feb 12, 2026
@codecov
Copy link

codecov bot commented Feb 12, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 82.93%. Comparing base (74da2be) to head (5a870c4).
⚠️ Report is 5 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #814   +/-   ##
=======================================
  Coverage   82.93%   82.93%           
=======================================
  Files          27       27           
  Lines        2479     2479           
=======================================
  Hits         2056     2056           
  Misses        423      423           
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation improvements or additions to documentation improvement upgrades to an already existing feature merge-when-passing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants