Skip to content

Conversation

garlick
Copy link
Member

@garlick garlick commented Sep 13, 2025

Problem: flux job cancel[all] have been deprecated in favor of flux cancel [--all] for a long time but still exist, leading to occasional confusion.

Remove those subcommands.

Fixes issue#7034

Copy link
Contributor

@grondo grondo left a comment

Choose a reason for hiding this comment

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

LGTM!

@garlick
Copy link
Member Author

garlick commented Sep 16, 2025

Setting MWP

@grondo
Copy link
Contributor

grondo commented Sep 16, 2025

I have a PR for the flux-pam usage of flux job cancel: flux-framework/flux-pam#11

Currently the pr-validator is failing there, looking into it.

Problem: flux job cancel[all] are being removed but still have tests.

Drop the tests.
Problem: flux job cancel[all] have been deprecated in favor of
flux cancel [--all] for a long time but still exist, leading to
occasional confusion.

Remove those subcommands.

Fixes issue#7034
Problem: 'flux job cancel' was removed but job/cancel.c still
exists, containing the 'kill' and 'raise' subcommands.

Rename the source file to job/kill.c/
@mergify mergify bot merged commit 159c660 into flux-framework:master Sep 17, 2025
35 checks passed
Copy link

codecov bot commented Sep 17, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 84.07%. Comparing base (8c72102) to head (316d221).
⚠️ Report is 5 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #7058      +/-   ##
==========================================
- Coverage   84.08%   84.07%   -0.02%     
==========================================
  Files         549      549              
  Lines       92524    92461      -63     
==========================================
- Hits        77802    77736      -66     
- Misses      14722    14725       +3     
Files with missing lines Coverage Δ
src/cmd/job/kill.c 93.84% <ø> (ø)
src/cmd/job/main.c 84.61% <ø> (ø)

... and 11 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