Repository navigation
test(node-checkout-and-setup): stop requiring the fixture branch to match test-fixture - #49
Open
joshuafernandes wants to merge 1 commit into
Open
joshuafernandes wants to merge 1 commit into
joshuafernandes wants to merge 1 commit into
Conversation
…atch test-fixture The tests that need a ref with a Yarn workspace at its root now use the test-fixtures/node-checkout-and-setup branch as it is. The download test compares with the branch's own files instead of test-fixture/, and the fixture-branch-up-to-date job is removed. Changing test-fixture/ by hand, in a pull request or by Renovate no longer breaks CI until the branch is republished. Closes #46
This branch has not been deployed
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.
Closes #46.
The
node-checkout-and-setuptests neededtest-fixtures/node-checkout-and-setupto matchnode-checkout-and-setup/test-fixture/exactly, so any change to the fixture broke CI onmainand on every pull request until someone republished the branch by hand.Only two places needed them to match: the "Fixture branch is up to date" job, and the step that compares downloaded files with
test-fixture/. Every other job that uses the branch only needs a Yarn workspace at the root of a ref, and the branch is one on its own.Changes
.nvmrc,package.jsonandyarn.lockinstead of readingtest-fixture/. It still checks that both download paths (the public raw URL and the authenticated API) return the right bytes.publish-fixture.sh, the workflow's env comment and the README say the branch is used as it is: republishing is optional, frommain, when the tests should use a newer fixture, and never from a pull request's branch.This covers all three failure modes in #46: Renovate (already ignored since #45), a manual edit that isn't republished, and a pull request that changes the fixture. It needs no write token or ruleset change, and works for pull requests from forks.
Trade-off: the branch can lag behind
test-fixture/. The tests that use it only need a valid workspace, and the jobs that usetest-fixture/directly (prepare-workspace.sh,compute-cache-paths.sh) still test the committed fixture.Testing
2eaedf4):.nvmrc,package.jsonandyarn.lockmatch through both the public raw URL and the authenticated API.publish-fixture.shpassesbash -n.Conflict with #47
#47 deletes this README's Tests section. Whichever merges second has a one-paragraph conflict, resolved by keeping #47's deletion.