ci(check): check out the event sha into a per-job directory #47
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/eco-83-check-checkout-isolation"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Found by: ECO-83 card (remaining consumers still clone into the shared src path). Same class as ECO-79.
What changed
.forgejo/workflows/check.yml: the checkout step no longer runsrm -rf src && mkdir srcand clones the branch name into the shared relative path. It uses the inline bootstrap of bread-ecosystemscripts/ci-checkout.sh(see itsdocs/ci-checkout.md), the same as bread'scheck.yml:GITHUB_SHAis a full 40-hex commit idmktemp -da per-job directory underRUNNER_TEMPBREAD_CI_JOB_DIRthroughGITHUB_ENVgit clone --no-checkout, detaches atGITHUB_SHA, and verifies HEADEvery later
srcreference in a run block now reads from the per-job directory. A finalif: always()stepclean owned checkoutremoves only that directory, and only underRUNNER_TEMP.Also runs fmt via ci/build.sh and test --release.
Unchanged: the
ci/bread-ecosystem.revpin (it predates the helper, and the card does not ask for a bump), the dev-mode resolution, lint-pins, the build and test commands, and all triggers.Deviation from the card
The card asks for a pinned helper fetch with a committed SHA-256. This PR uses the inline bootstrap, the same as bread's
check.yml, because the pinned rev does not containci-checkout.sh. Moving to a pinned fetch is a follow-up.How verified
yaml.safe_loadparses the file.bash -npasses for everyrun:block.cd src,src/,rm -rf src,mkdir src,--root src, orgit clone --branchin run blocks. Matches are comments only.GITHUB_SHAis rejected.Not run
check.ymlon the self-hosted runner. Its result on the pushed head is recorded on the PR.Refs ECO-83
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.