-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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 step to place workflow_dispatch inputs in env #31424
ci: Add step to place workflow_dispatch inputs in env #31424
Conversation
/test |
55e606c
to
a256092
Compare
a256092
to
1d10aec
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I only reviewed the two IPsec workflows.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Steps names require change.
1d10aec
to
73a79ac
Compare
73a79ac
to
422af3d
Compare
422af3d
to
5cb9329
Compare
/test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since PR is from a fork added code is not tested properly. But changes are straightforward forward so it should be okay.
b59a5e2
to
383c14e
Compare
Well, my apologies folks. A sanity check was a good idea indeed. After trying out the job in a fork on I ran each modified workflow to verify the job works for each. In these runs, the workflows failed early due to the bad inputs that I provided to the workflow dispatch trigger (ie invalid context-ref) or due to missing variables in my fork. I've double-checked that the workflow failures are unrelated to the changes in this PR.
Thank you @julianwiedmann and @joestringer for pushing back and helping me learn a valuable lesson about testing, I appreciate it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for doing a sanity check there, that gives me a bit more confidence to click the merge button :)
This commit builds off of cilium/cilium#31424 by adding the ability to parse inputs that are echoed in the logs of workflow_dispatch triggered runs. This commit also performs some cleanup based on changes in previous commits. Signed-off-by: Ryan Drew <ryan.drew@isovalent.com>
Adding needs backport here. When we run scheduled workflows off of main through the Ariane Scheduled Workflows workflow, the workflow files from the target branch are used, not the workflow files from |
Please ensure your pull request adheres to the following guidelines:
description and a
Fixes: #XXX
line if the commit addresses a particularGitHub issue.
Fixes: <commit-id>
tag, thenplease add the commit author[s] as reviewer[s] to this issue.
This commit adds a new job to the beginning of workflows that have a workflow_dispatch trigger whose inputs provide important context to the run. The job saves the inputs to the environment so they can be viewed in the logs by users.
A majority of the workflows in the cilium repository have a workflow_dispatch trigger, which is used by users and Ariane to run workflows as needed. These workflows take a variety of inputs that may not always be made available in the logs, as they may not be used in a place that warrants their value being outputted. This obfuscation can make debugging these workflows difficult at times, as these inputs provide important context to the origin of the workflow's trigger.
For instance, the
PR-number
input is used to determine the concurrency group for a workflow run. It is ignored everywhere else. The value of the concurrency group is not available via GitHub's UI or API, therefore this input obfuscated. However, thePR-number
input provides valuable metadata, being used to describe the branch or PR that a workflow was triggered for.This commit modifies workflows which have non-obvious workflow_dispatch input values
Fixes: #31207