Skip to content

flux-job: fix spurious warning on guest eventlog follow - #7771

Merged
mergify[bot] merged 6 commits into
flux-framework:masterfrom
garlick:issue#7766
Aug 11, 2026
Merged

flux-job: fix spurious warning on guest eventlog follow#7771
mergify[bot] merged 6 commits into
flux-framework:masterfrom
garlick:issue#7766

Conversation

@garlick

@garlick garlick commented Aug 11, 2026

Copy link
Copy Markdown
Member

This fixes

does some gratuitous cleanup in that code area, and adds missing documentation.

@grondo grondo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM!

@garlick

garlick commented Aug 11, 2026

Copy link
Copy Markdown
Member Author

Thanks! Setting MWP.

Problem: an internal static array adds a NULL sentinel to implement
an iterator.

Use the CCAN ARRAY_SIZE() macro to avoid the need for a sentinel.
Problem: Some flux-job code formatting violates RFC 7.

Break long parameter lists to one per line.
Problem: code that calls the job-list.lookup RPC puts the topic
string in a variable for no particular reason.

Just use the topic string in the RPC call directly, for clarity.
Problem: When the exec eventlog is processed by flux job eventlog --follow,
a spurious "event 'clean' never received" warning message is printed.

Look up the appropriate terminating event depending on which eventlog
is selected.

Fixes flux-framework#7766
Problem: there is no test coverage to show that flux job eventlog -F
terminates without spurious error messages.

Add a couple tests.
Problem: the flux job eventlog subcommand has no documentation.

Add it to the man page.
@garlick

garlick commented Aug 11, 2026

Copy link
Copy Markdown
Member Author

Rebased on current master.

@mergify mergify Bot added the queued label Aug 11, 2026
@mergify

mergify Bot commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

Merge Queue Status

  • Entered queue2026-08-11 18:10 UTC · Rule: default · triggered by rule rebase and merge when passing all checks
  • Checks skipped · PR is already up-to-date
  • Merged2026-08-11 18:10 UTC · at 7660360c73e184e0fda0d7a54c1e7be4407e64fe · merge

This pull request spent 17 seconds in the queue, including 4 seconds running CI.

Required conditions to merge
  • github-review-approved [🛡 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 9596eff into flux-framework:master Aug 11, 2026
36 of 37 checks passed
@codecov

codecov Bot commented Aug 11, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.86%. Comparing base (582a93e) to head (7660360).
⚠️ Report is 8 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #7771      +/-   ##
==========================================
+ Coverage   83.83%   83.86%   +0.02%     
==========================================
  Files         599      599              
  Lines      102318   102321       +3     
==========================================
+ Hits        85776    85808      +32     
+ Misses      16542    16513      -29     
Files with missing lines Coverage Δ
src/cmd/job/eventlog.c 89.89% <100.00%> (+0.16%) ⬆️

... and 15 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@mergify mergify Bot removed the queued label Aug 11, 2026
@garlick
garlick deleted the issue#7766 branch August 11, 2026 18:19
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