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: dont version private packages #10333

Merged
merged 1 commit into from
Oct 24, 2024
Merged

ci: dont version private packages #10333

merged 1 commit into from
Oct 24, 2024

Conversation

rabi-siddique
Copy link
Contributor

@rabi-siddique rabi-siddique commented Oct 24, 2024

Description

Recently, the getting-started jobs in CI have been failing, as seen in this run:
https://github.com/Agoric/agoric-sdk/actions/runs/11489549535/job/31978567100
https://github.com/Agoric/agoric-sdk/actions/runs/11493429719/job/31989112054?pr=10323

The issue is due to a missing CHANGELOG.md file in the packages/fast-usdc folder. During the CI process, the script scripts/registry.sh runs the following command in the publish function:

yarn lerna version --concurrency 1 prerelease --exact --preid=dev --no-push --no-git-tag-version --yes

This command uses Lerna to version the packages, a part of which involves updating the CHANGELOG.md files for each package. Since the CHANGELOG.md file is missing in the fast-usdc package, Lerna creates one. This results in a dirty Git tree(There is a check for that), causing subsequent steps in the workflow to fail and leading to the CI job failure.

This PR has been created to add an --no-private to avoid versioning private packages. Thanks to @mujahidkay for this suggestion.

Security Considerations

Scaling Considerations

Documentation Considerations

Testing Considerations

Upgrade Considerations

@rabi-siddique rabi-siddique requested a review from a team as a code owner October 24, 2024 06:30
@rabi-siddique rabi-siddique added the force:integration Force integration tests to run on PR label Oct 24, 2024
Copy link

cloudflare-workers-and-pages bot commented Oct 24, 2024

Deploying agoric-sdk with  Cloudflare Pages  Cloudflare Pages

Latest commit: d25c131
Status: ✅  Deploy successful!
Preview URL: https://e7fde083.agoric-sdk.pages.dev
Branch Preview URL: https://rs-ci-fix-dirty-tree.agoric-sdk.pages.dev

View logs

Copy link
Member

@mujahidkay mujahidkay left a comment

Choose a reason for hiding this comment

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

Shouldn't we just pass the --no-private flag to lerna? Why should we test some behavior that is currently not intended? What do you think?

@rabi-siddique rabi-siddique changed the title chore: add CHANGELOG.md for fast-usdc package ci: dont version private packages Oct 24, 2024
@rabi-siddique rabi-siddique added the automerge:rebase Automatically rebase updates, then merge label Oct 24, 2024
@mergify mergify bot merged commit 4542cd0 into master Oct 24, 2024
92 checks passed
@mergify mergify bot deleted the rs-ci-fix-dirty-tree branch October 24, 2024 10:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge:rebase Automatically rebase updates, then merge force:integration Force integration tests to run on PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants