Skip to content

fix: make agent scripts easier to troubleshoot #2922

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 9 commits into from
Jul 13, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Merge branch 'main' into cj/gh-1544/agent-script-wait
  • Loading branch information
johnstcn authored Jul 13, 2022
commit 9f90ee39f0538ad9f59fa81796b700307511820a
2 changes: 1 addition & 1 deletion provisionersdk/scripts/bootstrap_darwin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -eux pipefail
# This is to allow folks to exec into a failed workspace and poke around to
# troubleshoot.
waitonexit() {
echo '=== Agent script exited with non-zero code. Sleeping 24h to preserve logs...'
echo "=== Agent script exited with non-zero code. Sleeping 24h to preserve logs..."
sleep 86400
}
trap waitonexit EXIT
Expand Down
2 changes: 1 addition & 1 deletion provisionersdk/scripts/bootstrap_linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -eux pipefail
# This is to allow folks to exec into a failed workspace and poke around to
# troubleshoot.
waitonexit() {
echo '=== Agent script exited with non-zero code. Sleeping 24h to preserve logs...'
echo "=== Agent script exited with non-zero code. Sleeping 24h to preserve logs..."
sleep 86400
}
trap waitonexit EXIT
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.