Skip to content

Commit

Permalink
fix(ci): fix release_publish(_dry_run) paramters (#1828)
Browse files Browse the repository at this point in the history
cbaeef2 recently refactored the evergreen configuration file. This subtly introduced some
breakage, because the `env` and `silent` options are not command options, but rather need to
be nested under the `params` key.

I've intentionally left the `silent:` option disabled as this would hide genuinely valuable
debug output otherwise.

This might be a good point to reconsider fixing the evergreen validation warnings that are
displayed in CI; `evergreen validate .evergreen.yml` did catch these issues, but since there
are a large number of existing warnings (around dependencies between tasks), these specific
warnings were drowned out/not visible in the evergreen UI.
  • Loading branch information
addaleax committed Feb 19, 2024
1 parent 4d6df93 commit cbfb77a
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 20 deletions.
20 changes: 10 additions & 10 deletions .evergreen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6561,7 +6561,7 @@ functions:

write_preload_script:
- command: shell.exec
silent: true
# silent: true
type: setup
params:
working_dir: src
Expand Down Expand Up @@ -6590,7 +6590,7 @@ functions:
wait: true
run_pkg_tests_through_ssh:
- command: shell.exec
silent: true
# silent: true
type: setup
params:
working_dir: src
Expand Down Expand Up @@ -6844,13 +6844,13 @@ functions:
file: tmp/expansions.yaml
redacted: true
- command: shell.exec
silent: true
env:
devtoolsbot_npm_token: ${devtoolsbot_npm_token}
node_js_version: ${node_js_version}
# silent: true
params:
working_dir: src
shell: bash
env:
devtoolsbot_npm_token: ${devtoolsbot_npm_token}
node_js_version: ${node_js_version}
script: |
set -e
.evergreen/run-evergreen-release.sh -- --dry-run
Expand All @@ -6862,13 +6862,13 @@ functions:
file: tmp/expansions.yaml
redacted: true
- command: shell.exec
silent: true
env:
devtoolsbot_npm_token: ${devtoolsbot_npm_token}
node_js_version: ${node_js_version}
# silent: true
params:
working_dir: src
shell: bash
env:
devtoolsbot_npm_token: ${devtoolsbot_npm_token}
node_js_version: ${node_js_version}
script: |
set -e
.evergreen/run-evergreen-release.sh
Expand Down
20 changes: 10 additions & 10 deletions .evergreen/evergreen.yml.in
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ functions:

write_preload_script:
- command: shell.exec
silent: true
# silent: true
type: setup
params:
working_dir: src
Expand Down Expand Up @@ -542,7 +542,7 @@ functions:
wait: true
run_pkg_tests_through_ssh:
- command: shell.exec
silent: true
# silent: true
type: setup
params:
working_dir: src
Expand Down Expand Up @@ -796,13 +796,13 @@ functions:
file: tmp/expansions.yaml
redacted: true
- command: shell.exec
silent: true
env:
devtoolsbot_npm_token: ${devtoolsbot_npm_token}
node_js_version: ${node_js_version}
# silent: true
params:
working_dir: src
shell: bash
env:
devtoolsbot_npm_token: ${devtoolsbot_npm_token}
node_js_version: ${node_js_version}
script: |
set -e
.evergreen/run-evergreen-release.sh -- --dry-run
Expand All @@ -814,13 +814,13 @@ functions:
file: tmp/expansions.yaml
redacted: true
- command: shell.exec
silent: true
env:
devtoolsbot_npm_token: ${devtoolsbot_npm_token}
node_js_version: ${node_js_version}
# silent: true
params:
working_dir: src
shell: bash
env:
devtoolsbot_npm_token: ${devtoolsbot_npm_token}
node_js_version: ${node_js_version}
script: |
set -e
.evergreen/run-evergreen-release.sh
Expand Down

0 comments on commit cbfb77a

Please sign in to comment.