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

[pulsarbot] Handle bug in "/pulsarbot rerun-failure-checks" that reruns obsolete jobs #33

Merged
merged 1 commit into from
Apr 21, 2022

Conversation

lhotari
Copy link
Member

@lhotari lhotari commented Apr 21, 2022

Motivation

Currently "/pulsarbot rerun-failure-checks" might rerun obsolete jobs. The jobs to rerun are searched by the PR's head commit SHA. If the PR is closed and re-opened or the complete workflow is re-run, the PR head commit SHA doesn't change.
Only the most recent job of each unique workflow should be considered for rerunning.

Modifications

  • return .workflow_id, .created_at, .conclusion, .url, .name fields from API call
  • sort lines and filter out the last line for each workflow_id
  • add a script for testing the script locally

Additional context

dev mailing list thread https://lists.apache.org/thread/n05xp17krb4f3cc0jjkh65ytqk1w6130

@lhotari lhotari added the bug Something isn't working label Apr 21, 2022
@lhotari lhotari self-assigned this Apr 21, 2022
@lhotari lhotari force-pushed the lh-fix-rerunning-obsolete-jobs branch 5 times, most recently from 4a37d8f to df0e973 Compare April 21, 2022 09:34
…n obsolete jobs

- only the most recent job should be considered for failed jobs
@lhotari lhotari force-pushed the lh-fix-rerunning-obsolete-jobs branch from df0e973 to 0bf1733 Compare April 21, 2022 09:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants