Skip to content
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

ci(restore-node): preserve package.json timestamp #9237

Merged
merged 1 commit into from
Apr 19, 2024

Conversation

michaelfig
Copy link
Member

@michaelfig michaelfig commented Apr 15, 2024

closes: #9232
refs: #6432

Description

The restore-node Github action was updating the timestamp on package.json if there was an #endo-branch: XXX setting on the PR. This caused agd-builder.sh to rebuild the cached build artifacts unnecessarily, including using incorrect @endo/* package versions (the ones in the PR's package.jsons, not the ones from branch XXX).

Now the package.json is copied (preserving its timestamp), and moved back into place after installing any replaced packages.

Security Considerations

n/a

Scaling Considerations

With this PR, shorter CI runs.

Documentation Considerations

n/a

Testing Considerations

n/a

Upgrade Considerations

n/a

@michaelfig michaelfig added the tooling repo-wide infrastructure label Apr 15, 2024
@michaelfig michaelfig self-assigned this Apr 15, 2024
@michaelfig michaelfig changed the title ci(agd-builder): fix double-install problem ci(restore-node): preserve package.json timestamp Apr 15, 2024
Copy link

cloudflare-workers-and-pages bot commented Apr 15, 2024

Deploying agoric-sdk with  Cloudflare Pages  Cloudflare Pages

Latest commit: ab663fe
Status: ✅  Deploy successful!
Preview URL: https://2a5b55ec.agoric-sdk.pages.dev
Branch Preview URL: https://mfig-9232-keep-package-json.agoric-sdk.pages.dev

View logs

@michaelfig michaelfig force-pushed the mfig-9232-keep-package-json-timestamp branch from 5715243 to 3ba7b93 Compare April 15, 2024 20:36
@michaelfig michaelfig requested review from kriskowal and erights April 16, 2024 03:47
@michaelfig michaelfig marked this pull request as ready for review April 16, 2024 03:47
Copy link
Member

@erights erights left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@michaelfig michaelfig added the automerge:no-update (expert!) Automatically merge without updates label Apr 16, 2024
@erights
Copy link
Member

erights commented Apr 16, 2024

@michaelfig , do you understand the CI failures?

@michaelfig
Copy link
Member Author

@michaelfig , do you understand the CI failures?

I have some ideas. It doesn't help that the Endo/Agoric canary CI on master appears to be breaking, too. I'll look at it when I can.

@michaelfig michaelfig force-pushed the mfig-9232-keep-package-json-timestamp branch from 3ba7b93 to 05db999 Compare April 18, 2024 18:23
@michaelfig michaelfig force-pushed the mfig-9232-keep-package-json-timestamp branch from 05db999 to ab663fe Compare April 19, 2024 01:46
@mergify mergify bot merged commit a55bc1e into master Apr 19, 2024
67 checks passed
@mergify mergify bot deleted the mfig-9232-keep-package-json-timestamp branch April 19, 2024 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge:no-update (expert!) Automatically merge without updates tooling repo-wide infrastructure
Projects
None yet
Development

Successfully merging this pull request may close these issues.

#endo-branch: mechanism incomplete or broken
2 participants