ci(restore-node): avoid clobbering #endo-branch:
setup
#8155
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.
#not-endo-branch: markm-options-harmony
closes: #8148
Description
As described in #8148 (comment) , fix two problems with the
.github/actions/restore-node
composite CI action that interacted badly with the#endo-branch:
PR setting.Background: the
#endo-branch: XXX
comment in a PR description will causerestore-node
to override package references inyarn.lock
with packages built from theXXX
branch of https://github.com/endojs/endoThe compounding problems:
restore-node
patchedpackage.json
and then, after runningyarn install
, restored it andyarn.lock
. This meant any subsequent installs would overwrite packages installed by the override with the repository default versions.restore-node
also usedclean: 'false'
instead ofclean: false
. The string'false'
is truthy, so that causedtest-cosmic-swingset
's use ofbin/agd
to detect changes in installation timestamps and thereby rerunyarn install
, provoking the above problem.Security Considerations
n/a
Scaling Considerations
Slightly speeds up
test-cosmic-swingset
.Documentation Considerations
n/a
Testing Considerations
Tested by examining the output of
#endo-branch: markm-options-harmony
's run oftest-cosmic-swingset
.Upgrade Considerations
n/a