-
Notifications
You must be signed in to change notification settings - Fork 102
[ci.yaml] Support branch regexes #1468
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.yaml] Support branch regexes #1468
Conversation
CI_YAML.md
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the escaped backslashes make me sad
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| - flutter-\\d+.\\d+-candidate.\\d+ | |
| - flutter-\\d+\.\\d+-candidate\.\\d+ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lol, my version was still wrong
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suggest pulling this into a helper method, both to help debugging when inevitably we fail here, and so we can unit test it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also note turning 'master' into a regex means it will match 'my-feature-branch-off-of-master'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of adding this to the ci.yaml, I'll add it in the validation here. It'll assume this is supposed to be a full line match (so prefix with $ and suffix with ^)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this also be added to the integration tests? free form regular expressions are error prone.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added! However, it relies on their being a git executable on path. For now, I'll leave this in the Cocoon tree.
I sent flutter/engine#29820 to get the test passing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see, so we have to land the engine PR first?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes
christopherfujino
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, obviously pending CI going green.
I also approved the engine PR
|
This pull request is not suitable for automatic merging in its current state.
|
This reverts commit 4954801756992a86310272b020397ced634dbfb2.
8b485d8 to
e38347d
Compare
|
This pull request is not suitable for automatic merging in its current state.
|
|
Should we wait to land this change until monday? |
|
That's fair. I thought we froze the cloud build deploys. I'll land this Monday |
This makes the release process easier. Instead of adding the candidate branch each time to the ci.yaml, we can insert the regex from this test and forget about the step.
Fixes flutter/flutter#84356
Pre-launch Checklist
///).