Skip to content

testsuite: add missing FLUX_TESTS_LOGFILE support#7540

Merged
mergify[bot] merged 1 commit into
flux-framework:masterfrom
grondo:test-logfiles
Apr 15, 2026
Merged

testsuite: add missing FLUX_TESTS_LOGFILE support#7540
mergify[bot] merged 1 commit into
flux-framework:masterfrom
grondo:test-logfiles

Conversation

@grondo

@grondo grondo commented Apr 14, 2026

Copy link
Copy Markdown
Contributor

Problem: Many sharness tests that do not call test_under_flux do not create a debug output file in <test_name>.output because they do not explicitly support appending --logfile to sharness arguments when FLUX_TESTS_LOGFILE is set in the environment.

Support FLUX_TESTS_LOGFILE where necessary across all sharness tests.

Note: in #7538 a test in t2219-job-manager-restart.t failed, but we don't have the detailed logs because of this issue. This PR should fix that for this test and others.

Problem: Many sharness tests that do not call test_under_flux do
not create a debug output file in <test_name>.output because they
do not explicitly support appending --logfile to sharness arguments
when FLUX_TESTS_LOGFILE is set in the environment.

Support FLUX_TESTS_LOGFILE where necessary across all sharness tests.

@garlick garlick left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM!

@grondo

grondo commented Apr 15, 2026

Copy link
Copy Markdown
Contributor Author

Thanks! I'll set MWP.

@mergify

mergify Bot commented Apr 15, 2026

Copy link
Copy Markdown
Contributor

Merge Queue Status

  • Entered queue2026-04-15 00:35 UTC · Rule: default
  • Checks skipped · PR is already up-to-date
  • Merged2026-04-15 00:35 UTC · at 348442497d06f333d4724fb7c573a9b0501ed1d6

This pull request spent 10 seconds in the queue, including 1 second 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 = validate commits
    • check-neutral = validate commits
    • check-skipped = validate commits
  • any of [🛡 GitHub branch protection]:
    • check-success = address-sanitizer check
    • check-neutral = address-sanitizer check
    • check-skipped = address-sanitizer check
  • any of [🛡 GitHub branch protection]:
    • check-success = coverage
    • check-neutral = coverage
    • check-skipped = coverage
  • any of [🛡 GitHub branch protection]:
    • check-success = focal - py3.8
    • check-neutral = focal - py3.8
    • check-skipped = focal - py3.8
  • any of [🛡 GitHub branch protection]:
    • check-success = docs/readthedocs.org:flux-core
    • check-neutral = docs/readthedocs.org:flux-core
    • check-skipped = docs/readthedocs.org:flux-core
  • any of [🛡 GitHub branch protection]:
    • check-success = inception
    • check-neutral = inception
    • check-skipped = inception
  • any of [🛡 GitHub branch protection]:
    • check-success = flux-sched check
    • check-neutral = flux-sched check
    • check-skipped = flux-sched check
  • any of [🛡 GitHub branch protection]:
    • check-success = el8 - system,coverage
    • check-neutral = el8 - system,coverage
    • check-skipped = el8 - system,coverage
  • any of [🛡 GitHub branch protection]:
    • check-success = spelling
    • check-neutral = spelling
    • check-skipped = spelling
  • any of [🛡 GitHub branch protection]:
    • check-success = el8 - ascii
    • check-neutral = el8 - ascii
    • check-skipped = el8 - ascii
  • any of [🛡 GitHub branch protection]:
    • check-success = bookworm - 32 bit
    • check-neutral = bookworm - 32 bit
    • check-skipped = bookworm - 32 bit
  • any of [🛡 GitHub branch protection]:
    • check-success = flux-accounting check
    • check-neutral = flux-accounting check
    • check-skipped = flux-accounting check
  • any of [🛡 GitHub branch protection]:
    • check-success = python linting
    • check-neutral = python linting
    • check-skipped = python linting
  • any of [🛡 GitHub branch protection]:
    • check-success = el9 - test-install
    • check-neutral = el9 - test-install
    • check-skipped = el9 - test-install
  • any of [🛡 GitHub branch protection]:
    • check-success = fedora40 - clang-18
    • check-neutral = fedora40 - clang-18
    • check-skipped = fedora40 - clang-18
  • any of [🛡 GitHub branch protection]:
    • check-success = noble - test-install
    • check-neutral = noble - test-install
    • check-skipped = noble - test-install
  • any of [🛡 GitHub branch protection]:
    • check-success = alpine - test-install
    • check-neutral = alpine - test-install
    • check-skipped = alpine - test-install
  • any of [🛡 GitHub branch protection]:
    • check-success = fedora40 - test-install
    • check-neutral = fedora40 - test-install
    • check-skipped = fedora40 - test-install
  • any of [🛡 GitHub branch protection]:
    • check-success = bookworm - test-install
    • check-neutral = bookworm - test-install
    • check-skipped = bookworm - test-install
  • any of [🛡 GitHub branch protection]:
    • check-success = jammy - test-install
    • check-neutral = jammy - test-install
    • check-skipped = jammy - test-install
  • any of [🛡 GitHub branch protection]:
    • check-success = flux-pam check
    • check-neutral = flux-pam check
    • check-skipped = flux-pam check
  • any of [🛡 GitHub branch protection]:
    • check-success = flux-pmix check
    • check-neutral = flux-pmix check
    • check-skipped = flux-pmix check
  • any of [🛡 GitHub branch protection]:
    • check-success = bookworm - gcc-12,distcheck
    • check-neutral = bookworm - gcc-12,distcheck
    • check-skipped = bookworm - gcc-12,distcheck
  • any of [🛡 GitHub branch protection]:
    • check-success = el10 - test-install
    • check-neutral = el10 - test-install
    • check-skipped = el10 - test-install

@mergify mergify Bot merged commit 8e6d566 into flux-framework:master Apr 15, 2026
36 of 37 checks passed
@mergify mergify Bot removed the queued label Apr 15, 2026
@codecov

codecov Bot commented Apr 15, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.79%. Comparing base (cba9286) to head (3484424).
⚠️ Report is 3 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #7540   +/-   ##
=======================================
  Coverage   83.78%   83.79%           
=======================================
  Files         569      569           
  Lines       95496    95496           
=======================================
+ Hits        80014    80021    +7     
+ Misses      15482    15475    -7     

see 14 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