Skip to content

export FLUX_JOB_RANKS to housekeeping scripts #6728

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

Merged
merged 3 commits into from
Mar 28, 2025

Conversation

grondo
Copy link
Contributor

@grondo grondo commented Mar 24, 2025

This PR addresses #6703 by exporting FLUX_JOB_RANKS to housekeeping scripts. Not much more to it than that.

Copy link
Member

@jameshcorbett jameshcorbett left a comment

Choose a reason for hiding this comment

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

LGTM!

@grondo
Copy link
Contributor Author

grondo commented Mar 28, 2025

Thanks!

grondo added 3 commits March 28, 2025 16:30
Problem: FLUX_JOB_RANKS is exported to prolog and epilog scripts but
not housekeeping.

Add FLUX_JOB_RANKS to the housekeeping script environment.

Fixes flux-framework#6703
Problem: The documentation of the job script environment in
flux-environment(7) documents that `FLUX_JOB_RANKS` is only available
in the prolog and epilog, but it is now exported to housekeeping
scripts as well.

Update the docs to note that `FLUX_JOB_RANKS` is available in all
three script environments: prolog, epilog, and housekeeping.
Problem: The housekeeping tests do not check that FLUX_JOB_RANKS is
set correctly in the script environment.

Add a test to the existing housekeeping environment checks.
@mergify mergify bot merged commit 3fca66e into flux-framework:master Mar 28, 2025
33 checks passed
Copy link

codecov bot commented Jun 26, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 83.81%. Comparing base (0365918) to head (2545553).
Report is 268 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #6728   +/-   ##
=======================================
  Coverage   83.81%   83.81%           
=======================================
  Files         534      534           
  Lines       89279    89288    +9     
=======================================
+ Hits        74828    74840   +12     
+ Misses      14451    14448    -3     
Files with missing lines Coverage Δ
src/modules/job-manager/housekeeping.c 82.89% <100.00%> (+0.37%) ⬆️

... and 9 files with indirect coverage changes

🚀 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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants