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 github workflow for verify examples #27371

Merged
merged 3 commits into from
May 25, 2023
Merged

Conversation

phlax
Copy link
Member

@phlax phlax commented May 12, 2023

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:]

@phlax phlax changed the title ci: Add github workflow for verify examples [WIP] ci: Add github workflow for verify examples May 12, 2023
@phlax phlax marked this pull request as draft May 12, 2023 09:08
@phlax phlax force-pushed the gh-verify-wf branch 2 times, most recently from f6b4bf0 to 42a38f4 Compare May 12, 2023 10:00
@phlax phlax changed the title [WIP] ci: Add github workflow for verify examples ci: Add github workflow for verify examples May 12, 2023
@phlax phlax marked this pull request as ready for review May 12, 2023 10:00
@phlax
Copy link
Member Author

phlax commented May 12, 2023

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

@phlax
Copy link
Member Author

phlax commented May 12, 2023

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

@phlax phlax force-pushed the gh-verify-wf branch 2 times, most recently from 544a323 to 47bad97 Compare May 12, 2023 11:36
@phlax phlax changed the title ci: Add github workflow for verify examples [WIP] ci: Add github workflow for verify examples May 12, 2023
@phlax
Copy link
Member Author

phlax commented May 12, 2023

added the implementation azp side, which will require a bit of testing

@phlax phlax marked this pull request as draft May 12, 2023 11:40
@phlax phlax force-pushed the gh-verify-wf branch 2 times, most recently from f1162e8 to 561fa82 Compare May 12, 2023 12:40
@phlax
Copy link
Member Author

phlax commented May 12, 2023

that seems to have worked

image

@phlax phlax force-pushed the gh-verify-wf branch 3 times, most recently from cb92e16 to 1a8d34b Compare May 12, 2023 13:56
ci/trigger_github.sh Outdated Show resolved Hide resolved
@phlax phlax force-pushed the gh-verify-wf branch 3 times, most recently from 2d67937 to 11ffc68 Compare May 15, 2023 10:21
@phlax phlax changed the title [WIP] ci: Add github workflow for verify examples ci: Add github workflow for verify examples May 15, 2023
@phlax
Copy link
Member Author

phlax commented May 15, 2023

this requires a bit of setup before it can land

/wait

@phlax phlax marked this pull request as ready for review May 15, 2023 10:58
@phlax phlax force-pushed the gh-verify-wf branch 5 times, most recently from c7bd38e to ae662b0 Compare May 25, 2023 07:45
.azure-pipelines/pipelines.yml Outdated Show resolved Hide resolved
ci/do_ci.sh Outdated Show resolved Hide resolved
Copy link
Member

@wbpcode wbpcode left a comment

Choose a reason for hiding this comment

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

some initial comments.

.github/workflows/envoy-verify.yml Outdated Show resolved Hide resolved
ci/do_ci.sh Outdated Show resolved Hide resolved
Signed-off-by: Ryan Northey <ryan@synca.io>
Signed-off-by: Ryan Northey <ryan@synca.io>
@phlax phlax removed the deps Approval required for changes to Envoy's external dependencies label May 25, 2023
Signed-off-by: Ryan Northey <ryan@synca.io>
@repokitteh-read-only repokitteh-read-only bot added the deps Approval required for changes to Envoy's external dependencies label May 25, 2023
@phlax phlax changed the title [WIP] ci: Add github workflow for verify examples ci: Add github workflow for verify examples May 25, 2023
@phlax phlax marked this pull request as ready for review May 25, 2023 09:28
@phlax
Copy link
Member Author

phlax commented May 25, 2023

@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)

@phlax phlax enabled auto-merge (squash) May 25, 2023 10:09
@phlax phlax removed the deps Approval required for changes to Envoy's external dependencies label May 25, 2023
@phlax phlax disabled auto-merge May 25, 2023 10:13
Copy link
Member

@wbpcode wbpcode left a 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 }}
Copy link
Member

@wbpcode wbpcode May 25, 2023

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?

Copy link
Member Author

@phlax phlax May 25, 2023

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)

Copy link
Member Author

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

@repokitteh-read-only repokitteh-read-only bot added the deps Approval required for changes to Envoy's external dependencies label May 25, 2023
@phlax
Copy link
Member Author

phlax commented May 25, 2023

pushing this past the issue that its expecting its own workflow ...

@phlax phlax merged commit c629258 into envoyproxy:main May 25, 2023
phlax added a commit to phlax/envoy that referenced this pull request Jun 2, 2023
Signed-off-by: Ryan Northey <ryan@synca.io>

Signed-off-by: phlax <phlax@users.noreply.github.com>
phlax added a commit that referenced this pull request Jun 5, 2023
Signed-off-by: Ryan Northey <ryan@synca.io>

Signed-off-by: phlax <phlax@users.noreply.github.com>
reskin89 pushed a commit to reskin89/envoy that referenced this pull request Jul 11, 2023
Signed-off-by: Ryan Northey <ryan@synca.io>
Signed-off-by: Ryan Eskin <ryan.eskin89@protonmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deps Approval required for changes to Envoy's external dependencies
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants