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(getting-started): mitigate registry/yarn flake #9799

Merged
merged 4 commits into from
Aug 5, 2024

Conversation

michaelfig
Copy link
Member

@michaelfig michaelfig commented Jul 29, 2024

closes: #9325, closes: #9710

Description

This is a minor fix to make sure the registry/yarn getting-started CI test doesn't fail. It embraces the current situation that agoric install $DISTTAG is not currently usable within the default Agoric/dapp-offer-up because of the long list of packageJson.resolutions dapp-offer-up uses.

Thus, getting-started.js has AGORIC_INSTALL_DISTTAG set to false. This ensures that agoric install $DISTTAG does not execute. It is replaced by simply yarn install.

Copy link

cloudflare-workers-and-pages bot commented Jul 29, 2024

Deploying agoric-sdk with  Cloudflare Pages  Cloudflare Pages

Latest commit: 110326f
Status: ✅  Deploy successful!
Preview URL: https://cc4ca059.agoric-sdk.pages.dev
Branch Preview URL: https://mfig-deflake-getting-started.agoric-sdk.pages.dev

View logs

@michaelfig michaelfig added the force:integration Force integration tests to run on PR label Jul 29, 2024
@michaelfig michaelfig self-assigned this Jul 29, 2024
@michaelfig michaelfig force-pushed the mfig-deflake-getting-started branch 4 times, most recently from 7d7a3cd to f621ac0 Compare July 31, 2024 21:45
@michaelfig michaelfig requested review from kriskowal and dckc July 31, 2024 21:50
Copy link
Member

@dckc dckc left a comment

Choose a reason for hiding this comment

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

notes on current draft...

* @param {string} url
* @returns {Promise<bigint>}
*/
const getLatestBlockHeight = url =>
Copy link
Member

Choose a reason for hiding this comment

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

I wonder how many implementations we have of this by now :)

Copy link
Member Author

Choose a reason for hiding this comment

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

It occured to me: I should probably do a pure JS implementation available via the agoric wait-for-block command to subsume the functionality of the waitForBlock shell function and the various polling loops we have in Makefiles, etc.

Comment on lines +17 to +19
// TODO: Set this to `true` when `agoric install $DISTTAG` properly updates the
// getting-started workflow's dependencies to current `@endo/*` and Agoric SDK
// from the local registry.
Copy link
Member

Choose a reason for hiding this comment

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

seems like this should reference an issue.

I don't see one that's quite on target; closest I find is #8621

Copy link
Member Author

Choose a reason for hiding this comment

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

I'll try to add to that issue or create a new one to include as a reference in the TODO.

@michaelfig michaelfig added the automerge:no-update (expert!) Automatically merge without updates label Aug 5, 2024
@michaelfig michaelfig force-pushed the mfig-deflake-getting-started branch from f621ac0 to 4942874 Compare August 5, 2024 20:21
@michaelfig michaelfig marked this pull request as ready for review August 5, 2024 20:21
@michaelfig michaelfig force-pushed the mfig-deflake-getting-started branch from 4942874 to 110326f Compare August 5, 2024 20:56
@mergify mergify bot merged commit fc07a0f into master Aug 5, 2024
79 checks passed
@mergify mergify bot deleted the mfig-deflake-getting-started branch August 5, 2024 21:28
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 force:integration Force integration tests to run on PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Possible race in integration testing Flake: Getting Started (registry/yarn)
3 participants