Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Factor out some common Complement CI setup commands to a script. #13157

Merged
merged 3 commits into from
Jul 5, 2022

Conversation

reivilibre
Copy link
Contributor

@reivilibre reivilibre commented Jul 1, 2022

This seemed like the least bad way to do it.

A little bit of trickery is included to cleanly create log groups for the setup portions, without also tracing (due to -x) the echo statements for these.

@reivilibre reivilibre requested a review from a team as a code owner July 1, 2022 15:41
@reivilibre reivilibre marked this pull request as draft July 1, 2022 15:42
@reivilibre reivilibre removed the request for review from a team July 1, 2022 15:42
@reivilibre reivilibre force-pushed the rei/complement_run_dedupe branch 2 times, most recently from f04a25b to b23308f Compare July 1, 2022 15:48
@reivilibre reivilibre marked this pull request as ready for review July 1, 2022 16:00
@reivilibre reivilibre requested a review from a team July 1, 2022 16:00
Copy link
Contributor

@squahtx squahtx left a comment

Choose a reason for hiding this comment

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

LGTM if CI passes

Comment on lines +9 to +10
alias block='{ set +x; } 2>/dev/null; func() { echo "::group::$*"; set -x; }; func'
alias endblock='{ set +x; } 2>/dev/null; func() { echo "::endgroup::"; set -x; }; func'
Copy link
Contributor

Choose a reason for hiding this comment

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

Out of curiosity, what happens if we don't set +x here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It leads to extra noise being printed (set +xing here is the entire point of this awkward alias — I don't want to see 'echo "::group::$*"' in the trace output etc)

@reivilibre reivilibre merged commit 68695d8 into develop Jul 5, 2022
@reivilibre reivilibre deleted the rei/complement_run_dedupe branch July 5, 2022 13:24
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants