fix(#10379): fix scalability workflow not triggering for beta tags#10513
fix(#10379): fix scalability workflow not triggering for beta tags#10513ncaldera wants to merge 4 commits intomedic:masterfrom
Conversation
jkuester
left a comment
There was a problem hiding this comment.
Sorry for the delayed review here over the new year! 😓
One thing that I still a bit confused about is why this workflow is currently not getting automatically triggered at all.... 🤔 As I note below, the workflow_run.tags config seems to not be supported. Perhaps that is just making the workflow_run config be totally ignored. 🤷
One downside to continuing to keep the workflow_run config (without tags) even with the enhanced job-level filter is that it means this workflow will continue to be "run" each time Build and test completes (for all branches, PRs, etc). However, the job should not be run because of the filter. Not sure if there is any downside to triggering an "emtpy" workflow that runs no jobs. It does seem like the only feasible way to only run the workflow for beta tags is to revert the recent changes which added the workflow_run config and go back to a more simple tag filter.
The downside of that is there is no way wait for the "Build and test" workflow to complete before running these scalability tests. @dianabarsan since you were the one who made the last round of changes here, do you have an opinion on which of these you prefer:
- Use the current
workflow_runapproach with the enhanced job filter. The "Scalability workflow" will be triggered each time the "Build and test" workflow completes, but the job will only run automatically for beta tags. - Roll back to the previous config where the "Scalability workflow" is triggered directly when beta tags are pushed (without waiting for the "Build and test" workflow).
| tags: | ||
| - "*-beta.*" |
There was a problem hiding this comment.
I think we need to remove this config since it is not supported. It seems like you can filter based on branches, but not tags.
|
|
||
| jobs: | ||
| build: | ||
| if: contains(github.event.workflow_run.head_branch, 'beta') |
There was a problem hiding this comment.
I think we are missing a couple of things here.
- I think we still want to allow for manually triggering the workflow (via
workflow_dispatch). - We really should only run this job if the "Build and test" workflow actually completed successfully. Otherwise there is not much point in trying to trigger this after the "Build and test" workflow finishes.
- This would still trigger the workflow run for any branch with a name that contains "beta" (and not just tags).
According to Copilot, something like this might work:
if: github.event_name == 'workflow_dispatch' ||
(
github.event.workflow_run.conclusion == 'success' &&
startsWith(github.event.workflow_run.head_branch, 'refs/tags/') &&
contains(github.event.workflow_run.head_branch, 'beta')
)|
Thanks for the tag @jkuester . On the other issue of |
@dianabarsan the only alternative I found is |
|
That's unfortunate. #2 meant we needed to add a continuous check for the images to get published, and that made this job start and wait for 6 hours if a build failed. I really didn't like that. |
|
👍 I am good with just a manual trigger. @ncaldera can you update the workflow to just remove the new
|
|
This PR is now marked "stale" after 30 days without activity. It will be closed automatically in 10 days unless you add a comment, push new changes or remove the "stale" label. |
Description
This PR addresses issue #10379. The scalability workflow was intended to run automatically when beta tags are pushed, but it wasn’t triggering as expected. This was caused by the use of unsupported filters under workflow_run, which prevented GitHub Actions from recognizing beta tag events. This PR updates the workflow to use a supported trigger/filtering mechanism so that scalability tests correctly run for tagged beta builds. I updated .github/workflows/scalability.yml to use a supported filtering mechanism for beta tags that ensures that the scalability workflow runs after Build and test completes when the triggering ref matches the beta tag format.
Code review checklist
License
The software is provided under AGPL-3.0. Contributions to this project are accepted under the same license.