-
Notifications
You must be signed in to change notification settings - Fork 129
[CI] Review output in CI builds #2639
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
38e398b
Add more collapsed sections in CI output
mrodm 3c71322
Update collapsed section titles
mrodm 5f91789
Avoid running stack dump and down if stack is not started
mrodm c774108
Test failure
mrodm 18e885f
Ensure failed group is opened - Buildkite output
mrodm 2c8c36f
Run stack down command in any case to shutdown all containers
mrodm 269a449
Run dump and ensure it does not exit build to continue cleanup process
mrodm 75831b4
Rephrase group title
mrodm a5ca34a
Remove set x flag in build zip scripts
mrodm 7bf29af
Change to uppercase
mrodm df812de
yq is not required in Serverless builds
mrodm 93e4ff1
Add comment
mrodm a314998
Install elastic-package just once in Serverless
mrodm 569ca1c
Show just one message to upload safe logs
mrodm 5ba8b0f
Fix lint error
mrodm dce92ea
Ensure all steps in pre-exit are executed
mrodm 2bfa9d8
Move definition of SERVERLESS variable to pipeline
mrodm 823cc6f
Fix condition pre-exit hook
mrodm 2a241b5
Run dump and stack down commands if stack has been created
mrodm c5d81fa
Remove debug in pre-exit
mrodm 85a83ca
Add check about serverless and targets
mrodm 9a048e1
Revert refactor upload safe logs
mrodm 192ba69
Test with set -x flag
mrodm 91303e9
Test adding a subshell for testtype func
mrodm 7174187
Use subshell and add more collapsed groups in build-install scripts
mrodm 9b035ed
Ignore errors dumping logs in cleanup
mrodm de15917
Add set +x in a subshell to get stack arguments
mrodm c990503
Add collapsed groups
mrodm 6e33bd7
Move set flags
mrodm 80b23a6
Apply missing set +x to get test type
mrodm File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Remove set x flag in build zip scripts
- Loading branch information
commit a5ca34afd75e1d47feacb98211bf69967b46fc71
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| #!/bin/bash | ||
|
|
||
| set -euxo pipefail | ||
| set -euo pipefail | ||
|
|
||
| cleanup() { | ||
| local r=$? | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Removed
set -xfromscripts/test-build*.shshell scripts.It looks to me that it is not needed at least in these targets.
I'm not totally sure if this flag should be kept in the other scripts (e.g.
scripts/test-check-packages.sh).WDYT ? Should we remove
set -xin all these scripts ?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.
Umm, I find these useful when debugging, there would be some way to optionally add them?
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 issue in these scripts is that there are some commands that are inside nested loops or nested ifs. That causes that
set -xadds three dashes to show the command executed and Buildkite interprets that as a Collapsed group.I've applied a workaround where it was affected via running the commands in a sub-shell and disabling that flag
set +x. After that command,it continues with the previous value (set -x`).