Skip to content
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

Use ABORTED from Run.reload #8986

Merged
merged 1 commit into from Mar 3, 2024
Merged

Use ABORTED from Run.reload #8986

merged 1 commit into from Mar 3, 2024

Conversation

jglick
Copy link
Member

@jglick jglick commented Feb 23, 2024

Resolving a comment I made a decade ago (!) in b55c157: if a non-Pipeline build is interrupted by a controller restart, ABORTED status (used for all sorts of sudden interruptions unrelated to the logical build steps) is more natural than FAILURE (a problem in a specific step preventing the build from proceeding). This is also more consistent with Pipeline builds, or node blocks, that fail to resume for various reasons when normally they could.

Testing done

None; apparently this does not have test coverage? Could add some if it seems valuable.

Proposed changelog entries

  • Non-Pipeline builds interrupted by a controller restart will now be marked as aborted rather than failed.

Before the changes are marked as ready-for-merge:

Maintainer checklist

Edit tasklist title
Beta Give feedback Tasklist Maintainer checklist, more options

Delete tasklist

Delete tasklist block?
Are you sure? All relationships in this tasklist will be removed.
  1. There are at least two (2) approvals for the pull request and no outstanding requests for change.
    Options
  2. Conversations in the pull request are over, or it is explicit that a reviewer is not blocking the change.
    Options
  3. Changelog entries in the pull request title and/or Proposed changelog entries are accurate, human-readable, and in the imperative mood.
    Options
  4. Proper changelog labels are set so that the changelog can be generated automatically.
    Options
  5. If the change needs additional upgrade steps from users, the upgrade-guide-needed label is set and there is a Proposed upgrade guidelines section in the pull request title (see example).
    Options
  6. If it would make sense to backport the change to LTS, a Jira issue must exist, be a Bug or Improvement, and be labeled as lts-candidate to be considered (see query).
    Options

Copy link
Contributor

@StefanSpieker StefanSpieker left a comment

Choose a reason for hiding this comment

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

I like that change, I was more than once asked why it says failed instead of aborted in case of controller restarts.

@NotMyFault NotMyFault added the rfe For changelog: Minor enhancement. use `major-rfe` for changes to be highlighted label Feb 27, 2024
Copy link
Member

@timja timja left a comment

Choose a reason for hiding this comment

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

/label ready-for-merge


This PR is now ready for merge, after ~24 hours, we will merge it if there's no negative feedback.

Thanks!

@comment-ops-bot comment-ops-bot bot added the ready-for-merge The PR is ready to go, and it will be merged soon if there is no negative feedback label Mar 2, 2024
@NotMyFault NotMyFault merged commit e82487f into jenkinsci:master Mar 3, 2024
16 checks passed
@jglick jglick deleted the ABORTED branch March 4, 2024 12:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-for-merge The PR is ready to go, and it will be merged soon if there is no negative feedback rfe For changelog: Minor enhancement. use `major-rfe` for changes to be highlighted
Projects
None yet
5 participants