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

Implement async build creation process #562

Merged

Conversation

ghengeveld
Copy link
Member

@ghengeveld ghengeveld commented Apr 22, 2022

This updates the CLI to use the new three-step build creation process: announceBuild ➡️ publishBuild ➡️ verifyBuild

Also this adds mergeCommit to the build info.

Relies on https://github.com/chromaui/chromatic/pull/6005
and https://github.com/chromaui/chromatic/pull/6162

@linear
Copy link

linear bot commented Apr 22, 2022

CH-1759 Update CLI to use new build creation API

Introduce new "initialize build" step.

Deal with partial build data.

Drop "retryable" build mechanism.

@ghengeveld ghengeveld force-pushed the ghengeveld/ch-1759-update-cli-to-use-new-build-creation-api branch from 2886b53 to ac199d3 Compare April 22, 2022 11:25
@ghengeveld
Copy link
Member Author

ghengeveld commented Apr 22, 2022

Published as chromatic@canary for testing.

Copy link
Member

@tmeasday tmeasday left a comment

Choose a reason for hiding this comment

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

Seems great!

bin-src/tasks/initialize.ts Show resolved Hide resolved
@ghengeveld
Copy link
Member Author

I'm calling this done but holding off the merge until we ship the backend changes.

@tmeasday
Copy link
Member

tmeasday commented May 4, 2022

@ghengeveld I tested this on a git repo with no origin setup and it errored with:

Field "slug" of required type "String!" was not provided.

@ghengeveld
Copy link
Member Author

ghengeveld commented May 20, 2022

@ghengeveld I tested this on a git repo with no origin setup and it errored with:

Field "slug" of required type "String!" was not provided.

Opened a PR to address this here: https://github.com/chromaui/chromatic/pull/6162

@ghengeveld ghengeveld changed the base branch from main to next May 24, 2022 17:02
@ghengeveld ghengeveld merged commit 7751506 into next May 25, 2022
@ghengeveld ghengeveld deleted the ghengeveld/ch-1759-update-cli-to-use-new-build-creation-api branch May 25, 2022 05:14
@ghengeveld ghengeveld mentioned this pull request May 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants