-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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 github workflow for verify examples #27371
Conversation
f6b4bf0
to
42a38f4
Compare
This works in my testing (https://github.com/phlax/envoy/actions/runs/4957479555/jobs/8869203763) I think it will need a couple more iterations, but would be good to land so we can start testing it properly |
also worth mentioning is that the couple of times ive ran it, it seems to be a minute or 2 quicker than running in azp, i guess better connectivity - ~same machines |
544a323
to
47bad97
Compare
added the implementation azp side, which will require a bit of testing |
f1162e8
to
561fa82
Compare
cb92e16
to
1a8d34b
Compare
2d67937
to
11ffc68
Compare
this requires a bit of setup before it can land /wait |
c7bd38e
to
ae662b0
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.
some initial comments.
Signed-off-by: Ryan Northey <ryan@synca.io>
Signed-off-by: Ryan Northey <ryan@synca.io>
@wbpcode i think this will fail CI as it expects the workflow that it sets up - once you lgtm, i will do any infra setup, and then push through on the basis that it should start working once it lands (and will follow up if necessary) |
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.
LGTM. With last question. It the answer is yes, then lets move to the next step directly.
authToken: ${{ secrets.GITHUB_TOKEN }} | ||
context: ${{ inputs.workflowName }} | ||
state: 'pending' | ||
sha: ${{ inputs.sha }} |
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.
last quesion, seems we use the inputs.sha
of envoy-verify.yml here directly, is it ok?
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.
to associate with the PR it needs to to use the actual head ref
you can see the (current) one for this pr eg with:
$ git ls-remote upstream | grep 27371/ | grep head
c159a092033b26b4b2a5adf2cc97b1b5798af43c refs/pull/27371/head
this is what is being passed
(above assumes you have upstream
set to envoy repo)
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.
seems i didnt understand correctly and the question is more one of workflow.inputs
i think the workflowName
is only necessary due to it being different in the workflow_call
- but otherwise it gets the same inputs
pushing this past the issue that its expecting its own workflow ... |
Signed-off-by: Ryan Northey <ryan@synca.io> Signed-off-by: phlax <phlax@users.noreply.github.com>
Signed-off-by: Ryan Northey <ryan@synca.io> Signed-off-by: phlax <phlax@users.noreply.github.com>
Signed-off-by: Ryan Northey <ryan@synca.io> Signed-off-by: Ryan Eskin <ryan.eskin89@protonmail.com>
This provides an initial implementation of a github workflow for examples verification
It will require some hookup in azp to make it work
Commit Message:
Additional Description:
Risk Level:
Testing:
Docs Changes:
Release Notes:
Platform Specific Features:
[Optional Runtime guard:]
[Optional Fixes #Issue]
[Optional Fixes commit #PR or SHA]
[Optional Deprecated:]
[Optional API Considerations:]