Repository navigation
fix(auto-merge): wait for a new PR's checks, and test this repo's copy of the action - #130
Open
shimoncohen wants to merge 2 commits into
Open
shimoncohen wants to merge 2 commits into
shimoncohen wants to merge 2 commits into
Conversation
…ng them gh pr checks --watch exits 1 with "no checks reported" when called before a just-opened PR's checks exist, so the action failed on PRs opened in the same job. The e2e test hit this: the PR was created at 18:02:14 and its checks started at 18:02:18. The action now polls for up to a minute until checks appear; other gh errors still fail at once.
Without a path, the test-site checkout replaced this repo in the workspace, so ./actions/auto-merge resolved to the stale copy that test-site carries and the job never tested this repo's action. The empty commit and create-pull-request now use test-site/, which also replaces the repository input create-pull-request does not define.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
The auto-merge action fails on a PR opened in the same job, and its e2e test never tested this repo's copy of the action.
gh pr checks --watchbefore a new PR's checks exist, and gh exits 1 with "no checks reported". It now polls for up to a minute until the PR has checks. Any othergherror still fails at once, and a PR that never gets checks fails as before.path, so it replaced this repo in the workspace../actions/auto-mergethen ran test-site's stale copy of the action. test-site now goes intest-site/. That also replaces therepositoryinput thatcreate-pull-requestdoesn't define, so this covers what ci: drop the repository input create-pull-request does not define #129 does.Tests:
test-action-with-labelspasses, and it merged its test PR (MapColonies/test-site#158). The first run on this PR failed only because one of test-site's own checks hit a transient error loading a helm repo index ("empty index.yaml file"); rerunning that check and then the e2e job passed. actionlint reports no errors on the workflow.