-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Cirrus: Simplify log collection commands #3308
Cirrus: Simplify log collection commands #3308
Conversation
Changes LGTM |
note: I plan on doing a pass across the entire |
Ah - yes, I see those other instances now. Thanks. |
Ugg, yep, cirrus (I think) YAML parser does really odd/nonstandard things with quotes.
|
In the removed code, the commands were enclosed in single-quotes:
In the added code, no quotes. Should you try adding them back? |
Naa, taking a different approach. It's the quote-handling that's the problem. I've wasted time on this topic before, it's not worth the aggravation... |
86ecad3
to
4640f44
Compare
@edsantiago does this approach seem reasonable? IMHO it rings a bit of overkill, but perhaps is good for future growth and maintenance. The absence of ginkgo node-logs in some tasks is expected (I think) - depends on what the makefile does. |
@cevich yes, this approach makes sense and looks good. But why not take the next step, and just call the script
|
Ack on name change...I always struggle with these. Reason for duplicate calls is because it splits the output up in the WebUI and in the backend storage. Also because Cirrus truncates the output, we want to keep it as short as possible to avoid additional clicks to access it. |
4640f44
to
24459f3
Compare
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.
Mostly LGTM. One bug (unused code), one suggestion.
I hate to suggest making this five duplicated stanzas... but I find myself just now desperate for the output of |
All rooless testing happens from the
Actually, now that you mention it, I wonder if Cirrus's customized parser can handle YAML anchors and aliases? I'll give that a try, but leave |
5afcae8
to
302aba1
Compare
@edsantiago anchors/aliases appear to work! I even left a comment on why rootless testing doesn't use it 😄 |
Excellent! Thank you for looking into it! |
Signed-off-by: Chris Evich <[email protected]>
302aba1
to
4e9f5e5
Compare
Thanks @edsantiago for helping me remember about YAML anchor/alias. I'm happy to see Cirrus-CI's custom parser supports them. If it weren't my last day before vacation, I'd be tempted to open a PR and apply that trick all over 😁 |
(this PR is ready to go) |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cevich, rhatdan The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/lgtm |
Signed-off-by: Chris Evich [email protected]