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

Add a bail-out flag to only changed #340

Closed
tmeasday opened this issue May 14, 2021 · 7 comments · Fixed by #355
Closed

Add a bail-out flag to only changed #340

tmeasday opened this issue May 14, 2021 · 7 comments · Fixed by #355
Labels
customer reported Tracking: This issue was reported through customer support enhancement Classification: New feature or request tiny Estimate: <= 2 hours

Comments

@tmeasday
Copy link
Member

tmeasday commented May 14, 2021

We need a way to flag to --only-change a glob of files that should trigger a bailout, something like --skip-only-changed-for="**/*.mjml".

┆Issue is synchronized with this Asana task by Unito

@tmeasday tmeasday added enhancement Classification: New feature or request customer reported Tracking: This issue was reported through customer support tiny Estimate: <= 2 hours labels May 14, 2021
@tmeasday tmeasday added this to the Q2 Improvements milestone May 20, 2021
@zol
Copy link
Member

zol commented May 21, 2021

Yeah this is important to add and document before we ship this feature to everyone because I know from talking to people firsthand that there are all sorts of quirky build time hacks floating around out there.

I'd like to think of a better name though, skip-only-changed has a confusing double negative in it.

@gert or @tmeasday what does the [branch] parameter to --only-changed do exactly and could that be used separately to --only-changed?

@tmeasday
Copy link
Member Author

We are thinking we will call this --externals

@zol
Copy link
Member

zol commented May 28, 2021

By 'this' do you mean instead of --skip-only-changed? What is the [branch] parameter for? I'm wondering whether this could be broken out as an independent parameter and then the argument to --only-changed could be the externals list.

@ghengeveld
Copy link
Member

Implemented here: #355

@tmeasday
Copy link
Member Author

tmeasday commented May 31, 2021

The [branch] parameter is for saying "only do --only-changed if we are on this branch". It is a standard pattern we have in the CLI, for instance for --auto-accept-changes=master.

I'm wondering whether this could be broken out as an independent parameter and then the argument to --only-changed could be the externals list

To me that would be confusing though. If I read --only-changed=*.sass I would read that to mean "only run chromatic when sass files have changed", which isn't quite what we mean. We mean "run every chromatic test when sass files have changed, otherwise only run the changed files".

Also @ghengeveld mentioned the possibility of the externals list having meaning outside of the --only-changed feature.

@zol
Copy link
Member

zol commented Jun 1, 2021

Sgtm, let's go with --externals

@tmeasday
Copy link
Member Author

tmeasday commented Jun 2, 2021

Heh, already done: #355

@sync-by-unito sync-by-unito bot unassigned zol Jun 2, 2021
@tmeasday tmeasday removed this from the Q2 Improvements milestone Jun 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
customer reported Tracking: This issue was reported through customer support enhancement Classification: New feature or request tiny Estimate: <= 2 hours
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants