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

CI: Add workflow_dispatch to workflows that still lack it #1976

Closed
wants to merge 2 commits into from

Conversation

kinkie
Copy link
Contributor

@kinkie kinkie commented Dec 31, 2024

Manually triggering a workflow rerun is handy when troubleshooting. Our
coverity-scan.yaml workflow already has a workflow_dispatch trigger.

@squid-anubis squid-anubis added M-failed-description https://github.com/measurement-factory/anubis#pull-request-labels and removed M-failed-description https://github.com/measurement-factory/anubis#pull-request-labels labels Dec 31, 2024
@kinkie
Copy link
Contributor Author

kinkie commented Dec 31, 2024

@rousskov I suspect that right now our queue is stuck because all eligible PRs are queued to run the checks defined in quick.yaml, however that workflow had been disabled (I don't know by whom or why), so the trigger events passed by without engaging it.
The workflow is meant to be triggered on push or PR, but if I were to push, approvals would be lost and would have to be re-granted. This PR would allow manually running these workflows if we ever were to find ourselves again in this situation, as well as allowing to un-stick it

@rousskov rousskov changed the title CI: add workflow_dispatch trigger to all workflows CI: Add workflow_dispatch to workflows that still lack it Dec 31, 2024
rousskov
rousskov previously approved these changes Dec 31, 2024
Copy link
Contributor

@rousskov rousskov left a comment

Choose a reason for hiding this comment

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

@rousskov I suspect that right now our queue is stuck because all eligible PRs are queued to run the checks defined in quick.yaml, however that workflow had been disabled (I don't know by whom or why)

I have not changed any configuration settings since you have started working on fixing CodeQL (and I would have disclosed those changes if I were to do them). I do not see any signs1 of a disabled workload in this repository right now (and this PR tests did run). Did you re-enable it?

If at all possible, please start sharing any changes to repository configuration, especially if they were not previously discussed. CC: @yadij.

so the trigger events passed by without engaging it. The workflow is meant to be triggered on push or PR, but if I were to push, approvals would be lost and would have to be re-granted. This PR would allow manually running these workflows if we ever were to find ourselves again in this situation, as well as allowing to un-stick it

As you know from recent exchanges, I fought for adding this useful trigger. Thank you for adding it to the remaining workloads!

I have adjusted PR title/description to remove the false implication that all workloads lacked this trigger. I also removed a statement regarding permissions required to use this trigger because, AFAICT, it can be used by non-owners in certain cases (and that is OK!).

Footnotes

  1. FWIW, you can see how a disabled workload is reported at https://github.com/measurement-factory/squid/actions

.github/workflows/quick.yaml Show resolved Hide resolved
.github/workflows/slow.yaml Show resolved Hide resolved
@rousskov rousskov added the S-waiting-for-author author action is expected (and usually required) label Dec 31, 2024
@kinkie
Copy link
Contributor Author

kinkie commented Dec 31, 2024

@rousskov I suspect that right now our queue is stuck because all eligible PRs are queued to run the checks defined in quick.yaml, however that workflow had been disabled (I don't know by whom or why)

I have not changed any configuration settings since you have started working on fixing CodeQL (and I would have disclosed those changes if I were to do them). I do not see any signs1 of a disabled workload in this repository right now (and this PR tests did run). Did you re-enable it?

Yes, I did.

If at all possible, please start sharing any changes to repository configuration, especially if they were not previously discussed. CC: @yadij.

Sure.
So far I have just disabled CodeQL checks, after trying pointlessly to reconfigure them.

so the trigger events passed by without engaging it. The workflow is meant to be triggered on push or PR, but if I were to push, approvals would be lost and would have to be re-granted. This PR would allow manually running these workflows if we ever were to find ourselves again in this situation, as well as allowing to un-stick it

As you know from recent exchanges, I fought for adding this useful trigger. Thank you for adding it to the remaining workloads!

No worries. In fact, in hindsight, I am surprised this is not on by default

I have adjusted PR title/description to remove the false implication that all workloads lacked this trigger. I also removed a statement regarding permissions required to use this trigger because, AFAICT, it can be used by non-owners in certain cases (and that is OK!).

Thanks

Footnotes

  1. FWIW, you can see how a disabled workload is reported at https://github.com/measurement-factory/squid/actions

@kinkie kinkie added M-cleared-for-merge https://github.com/measurement-factory/anubis#pull-request-labels S-could-use-an-approval An approval may speed this PR merger (but is not required) and removed S-waiting-for-author author action is expected (and usually required) labels Dec 31, 2024
rousskov added a commit to measurement-factory/squid that referenced this pull request Dec 31, 2024
@rousskov
Copy link
Contributor

The workflow is meant to be triggered on push or PR, but if I were to push, approvals would be lost

It does not really matter in this case (we have enough folks to quickly re-approve those PRs), but pushing an empty PR commit does not invalidate past PR approvals. GitHub apparently added that behavior in 2023, and I have just successfully tested that with #1966 (commit 4edfc20).

@rousskov
Copy link
Contributor

kinkie added M-cleared-for-merge S-could-use-an-approval and removed S-waiting-for-author labels

@kinkie, would you mind addressing my change requests before merging?

squid-anubis pushed a commit that referenced this pull request Jan 2, 2025
Manually triggering a workflow rerun is handy when troubleshooting. Our
coverity-scan.yaml workflow already has a workflow_dispatch trigger.
@squid-anubis squid-anubis added the M-waiting-staging-checks https://github.com/measurement-factory/anubis#pull-request-labels label Jan 2, 2025
@squid-anubis squid-anubis added M-merged https://github.com/measurement-factory/anubis#pull-request-labels and removed M-waiting-staging-checks https://github.com/measurement-factory/anubis#pull-request-labels M-cleared-for-merge https://github.com/measurement-factory/anubis#pull-request-labels labels Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
M-merged https://github.com/measurement-factory/anubis#pull-request-labels S-could-use-an-approval An approval may speed this PR merger (but is not required)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants