-
Notifications
You must be signed in to change notification settings - Fork 238
ci: fix frequent nightly build failure in CI determining latest_edge_version #2298
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
Changes from all commits
e6535f5
7f4d731
db28ce1
cb313a2
5e4b467
703ebf7
ed925f2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -134,7 +134,8 @@ else | |
| fi | ||
|
|
||
| # Turn on xtrace output only after processing args. | ||
| set -x | ||
| export PS4='${BASH_SOURCE}:${LINENO}: ${FUNCNAME[0]:+${FUNCNAME[0]}(): }' | ||
| set -o xtrace | ||
|
|
||
|
|
||
| # ---- For nightly and rc builds, determine if there is a point in testing. | ||
|
|
@@ -144,8 +145,9 @@ if [[ $BUILD_TYPE != "release" && $FORCE != "true" ]]; then | |
| # | ||
| # Note: We are relying on new releases being added to the top of index.tab, | ||
| # which currently seems to be the case. | ||
| latest_edge_version=$(curl -sS ${NVM_NODEJS_ORG_MIRROR}/index.tab \ | ||
| | (grep "^v${NODE_VERSION}" || true) | awk '{print $1}' | head -1) | ||
| index_tab_content=$(curl -sS "${NVM_NODEJS_ORG_MIRROR}/index.tab" \ | ||
| | (grep "^v${NODE_VERSION}" || true) | awk '{print $1}') | ||
| latest_edge_version=$(echo "$index_tab_content" | head -1) | ||
| if [[ -z "$latest_edge_version" ]]; then | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I see here we've broken up the previous one liner into two lines. I also am not sure why this second version works more consistently and the first version does not, but this does not appear to do any harm so 👍
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Details are in comments on #2296
So the current solution is an unsatisfying answer that seems to work for now. |
||
| skip "No ${BUILD_TYPE} build of Node v${NODE_VERSION} was found. Skipping tests." | ||
| fi | ||
|
|
||
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 here we're setting PS4 in order to change the
-x/-xtraceprompt/prefix.