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

[DNM] add changesets-enforce workflow #8244

Draft
wants to merge 7 commits into
base: develop
Choose a base branch
from

Conversation

angusbayley
Copy link
Contributor

@angusbayley angusbayley commented Oct 29, 2024

DO NOT MERGE - awaiting release strategy. We need to time this with the larger process change

Adds workflow to enforce changesets version bumps at the major or minor level only (patch will cause build failure).

Ticket here

This works on an entire-repo-snapshot basis, so if there are patches in @develop and you've branched off @develop, and your commit does't create an offending changeset, your PR will still fail even though it wasn't your fault (this is currently the case for all tests and code quality checks too - I'm just being explicit). What this does mean is when we merge this all builds will go red until the changeset history is cleared on next release.

Note that the workflow fails with a useful error message:

image

The workflow is async, and typically takes 15-20s to run:

Screenshot 2024-10-31 at 11 47 18

The checkout step was optimised to only pull in what was needed for this workflow (more details). This is a practice we should roll out to the rest of the workflows.

My only concern about this is it's adding yet another workflow at a time where there are too many workflows.

Copy link

vercel bot commented Oct 29, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

5 Skipped Deployments
Name Status Preview Comments Updated (UTC)
ledger-live-docs ⬜️ Ignored (Inspect) Visit Preview Oct 31, 2024 10:59am
ledger-live-github-bot ⬜️ Ignored (Inspect) Visit Preview Oct 31, 2024 10:59am
native-ui-storybook ⬜️ Ignored (Inspect) Visit Preview Oct 31, 2024 10:59am
react-ui-storybook ⬜️ Ignored (Inspect) Visit Preview Oct 31, 2024 10:59am
web-tools ⬜️ Ignored (Inspect) Visit Preview Oct 31, 2024 10:59am

@live-github-bot live-github-bot bot added the automation CI/CD stuff label Oct 29, 2024
@angusbayley angusbayley force-pushed the support/enforce-changesets-no-patch branch 2 times, most recently from f1fbfc5 to ad51cc2 Compare October 29, 2024 17:59
@live-github-bot live-github-bot bot added the common Has changes in live-common label Oct 29, 2024
@angusbayley angusbayley force-pushed the support/enforce-changesets-no-patch branch from ad51cc2 to 6d8eade Compare October 29, 2024 18:00
@live-github-bot live-github-bot bot removed the common Has changes in live-common label Oct 29, 2024
@angusbayley angusbayley force-pushed the support/enforce-changesets-no-patch branch from 6d8eade to e40ea19 Compare October 29, 2024 18:01
@angusbayley angusbayley force-pushed the support/enforce-changesets-no-patch branch from e40ea19 to e303b22 Compare October 29, 2024 18:01
@angusbayley angusbayley force-pushed the support/enforce-changesets-no-patch branch from e303b22 to 06dd4fd Compare October 29, 2024 18:04
@angusbayley angusbayley changed the title build: add changesets-enforce workflow [DNM] add changesets-enforce workflow Oct 29, 2024
@angusbayley angusbayley force-pushed the support/enforce-changesets-no-patch branch 5 times, most recently from 06de82c to 19f407e Compare October 31, 2024 10:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automation CI/CD stuff
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant