-
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
chore(ci): deck integration tests fail CI on test failure #13475
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
github-actions
bot
added
the
chore
Not part of the core functionality of kong, but still needed
label
Aug 8, 2024
github-actions
bot
added
core/admin-api
cherry-pick kong-ee
schedule this PR for cherry-picking to kong/kong-ee
labels
Aug 8, 2024
samugi
force-pushed
the
fix/deck-integration-tests-dismiss-review
branch
2 times, most recently
from
August 14, 2024 07:12
0c5a8a3
to
43604b8
Compare
samugi
force-pushed
the
fix/deck-integration-tests-dismiss-review
branch
from
August 16, 2024 14:29
f2fffbf
to
ada229e
Compare
samugi
changed the title
fix(ci): deck integration tests dismiss review
chore(ci): deck integration tests fail CI on test failure
Aug 16, 2024
when deck integration tests fail, a request for changes was created in the PR. This was often ignored: let's fail CI instead.
samugi
force-pushed
the
fix/deck-integration-tests-dismiss-review
branch
from
August 16, 2024 14:34
ada229e
to
97c42fe
Compare
samugi
force-pushed
the
fix/deck-integration-tests-dismiss-review
branch
from
August 16, 2024 14:52
0f80744
to
97c42fe
Compare
bungle
approved these changes
Aug 20, 2024
nowNick
approved these changes
Aug 20, 2024
Cherry-pick failed for Please cherry-pick the changes locally. git remote add upstream https://github.com/kong/kong-ee
git fetch upstream master
git worktree add -d .worktree/cherry-pick-13475-to-master-to-upstream upstream/master
cd .worktree/cherry-pick-13475-to-master-to-upstream
git checkout -b cherry-pick-13475-to-master-to-upstream
ancref=$(git merge-base e61c4dd77d64d75b91f5dd03c17ffe55586bbdaa 97c42fea45b0104891184b32a54900bb29b6a37e)
git cherry-pick -x $ancref..97c42fea45b0104891184b32a54900bb29b6a37e |
github-actions
bot
added
the
incomplete-cherry-pick
A cherry-pick was incomplete and needs manual intervention
label
Aug 20, 2024
samugi
removed
the
incomplete-cherry-pick
A cherry-pick was incomplete and needs manual intervention
label
Aug 20, 2024
/prdiff #13606 |
📝 Diff from #13606Click to expand--- /dev/fd/63 2024-09-06 14:25:00.557064487 +0000
+++ /dev/fd/62 2024-09-06 14:25:00.557064487 +0000
@@ -0,0 +1,38 @@
+--- a/.github/workflows/deck-integration.yml # [PR: 13475]
++++ b/.github/workflows/deck-integration.yml # [PR: 13475]
+- continue-on-error: true
+-
+- - name: Find review if exists
+- id: find-review
+- uses: actions/github-script@v7
+- with:
+- result-encoding: json
+- retries: 3
+- script: |
+- const reviews = await github.paginate(github.rest.pulls.listReviews, {
+- owner: context.repo.owner,
+- repo: context.repo.repo,
+- pull_number: context.issue.number,
+- });
+-
+- const botReview = reviews.reverse().find(review => {
+- return review.user.login === "github-actions[bot]" && review.body.includes("decK integration tests");
+- });
+-
+- if (botReview && botReview.state === "CHANGES_REQUESTED") {
+- return { "review_id": botReview.id };
+- } else {
+- return { "review_id": "" };
+- }
+-
+- - name: Request changes if failures are detected
+- if: ${{ fromJson(steps.find-review.outputs.result).review_id == '' && steps.deck_tests.outcome != 'success' }}
+- uses: actions/github-script@v7
+- with:
+- script: |
+- github.rest.pulls.createReview({
+- owner: context.repo.owner,
+- repo: context.repo.repo,
+- pull_number: context.issue.number,
+- event: 'REQUEST_CHANGES',
+- body: `## decK integration tests
@@ -1,0 +40,2 @@
+:warning: failure detected. Please check [the workflow logs](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) for more details.`
+- }) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
cherry-pick kong-ee
schedule this PR for cherry-picking to kong/kong-ee
chore
Not part of the core functionality of kong, but still needed
size/M
skip-changelog
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
when deck integration tests fail, a request for changes was created in the PR. This was often ignored: let's fail CI instead.
Checklist
changelog/unreleased/kong
orskip-changelog
label added on PR if changelog is unnecessary. README.mdIssue reference
KAG-5058