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

.github: Fix scheduled end-to-end tests #16274

Merged
merged 1 commit into from May 25, 2021

Conversation

pchaigno
Copy link
Member

@pchaigno pchaigno commented May 21, 2021

Commit 50df544 added a new job in the end-to-end workflows to checkout the tested code and run paths-filter on it. That first job fails when the workflows are scheduled (vs. triggered by PR comment) because we try to grab the pull request URL, which doesn't exist:

curl ${{ github.event.issue.pull_request.url }} > pr.json

results in error:

Run curl  > pr.json
curl: try 'curl --help' or 'curl --manual' for more information

We can avoid this by skipping steps in the first job when triggered by schedule. We can't skip the entire first job because the second job has a dependency on the first and would fail if we skipped the first.

Fix tested at https://github.com/pchaigno/cilium/actions/runs/865244530 by pushing to the default branch of my fork.

Fixes: #16157.

Commit 50df544 added a new job in the end-to-end workflows to checkout
the tested code and run paths-filter on it. That first job fails when
the workflows are scheduled (vs. triggered by PR comment) because we try
to grab the pull request URL, which doesn't exist:

    curl ${{ github.event.issue.pull_request.url }} > pr.json

results in error:

    Run curl  > pr.json
    curl: try 'curl --help' or 'curl --manual' for more information

We can avoid this by skipping steps in the first job when triggered by
schedule. We can't skip the entire first job because the second job has
a dependency on the first and would fail if we skipped the first.

Fixes: 50df544 (".github: Skip unnecessary ci-xxx tests")
Signed-off-by: Paul Chaignon <paul@cilium.io>
@pchaigno pchaigno added kind/bug/CI This is a bug in the testing code. area/CI Continuous Integration testing issue or flake release-note/ci This PR makes changes to the CI. needs-backport/1.10 labels May 21, 2021
@pchaigno pchaigno marked this pull request as ready for review May 21, 2021 21:53
@pchaigno pchaigno requested review from a team as code owners May 21, 2021 21:53
@pchaigno pchaigno requested a review from nbusseneau May 21, 2021 21:53
@pchaigno pchaigno requested a review from aanm May 21, 2021 21:53
@pchaigno pchaigno added the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label May 21, 2021
@twpayne twpayne merged commit 802d254 into cilium:master May 25, 2021
@pchaigno pchaigno deleted the fix-scheduled-e2e-workflows branch May 25, 2021 08:51
@qmonnet
Copy link
Member

qmonnet commented May 26, 2021

Removing the label for backport, the relevant parts of the GitHub actions are not in 1.10.

@pchaigno
Copy link
Member Author

the relevant parts of the GitHub actions are not in 1.10.

They should be added then. There's probably a PR missing its backport label somewhere.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/CI Continuous Integration testing issue or flake kind/bug/CI This is a bug in the testing code. ready-to-merge This PR has passed all tests and received consensus from code owners to merge. release-note/ci This PR makes changes to the CI.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants