Skip to content

TOOLS-4238 Start moving inline shell to scripts and use env vars to pass expansions#1024

Merged
autarch merged 1 commit into
masterfrom
07-09-tools-4238_move_some_inline_shell_to_a_script_and_use_env_vars_to_pass_expansions
Jul 16, 2026
Merged

TOOLS-4238 Start moving inline shell to scripts and use env vars to pass expansions#1024
autarch merged 1 commit into
masterfrom
07-09-tools-4238_move_some_inline_shell_to_a_script_and_use_env_vars_to_pass_expansions

Conversation

@autarch

@autarch autarch commented Jul 9, 2026

Copy link
Copy Markdown
Collaborator

This is the first of a series of PRs to change how we execute shell code in the Evergreen config. The ultimate goal is to remove the _set_shell-env expansion. This wil be replaced by the env key for each comand. We will turn expansions into env vars this way.

This first PR only updates the "run make target" function as an example.

@autarch
autarch force-pushed the 07-09-tools-4238_move_some_inline_shell_to_a_script_and_use_env_vars_to_pass_expansions branch 3 times, most recently from 77e55ae to e2a94da Compare July 14, 2026 15:42
@autarch
autarch force-pushed the 07-09-tools-4238_move_some_inline_shell_to_a_script_and_use_env_vars_to_pass_expansions branch 3 times, most recently from d6e7eec to f8aa3f5 Compare July 15, 2026 16:22
@autarch
autarch requested a review from mmcclimon July 15, 2026 18:14
@autarch
autarch marked this pull request as ready for review July 15, 2026 18:14
@autarch
autarch requested a review from a team as a code owner July 15, 2026 18:14
@autarch autarch changed the title TOOLS-4238 Move some inline shell to a script and use env vars to pass expansions TOOLS-4238 Start moving inline shell to a script and use env vars to pass expansions Jul 15, 2026
@autarch autarch changed the title TOOLS-4238 Start moving inline shell to a script and use env vars to pass expansions TOOLS-4238 Start moving inline shell to scripts and use env vars to pass expansions Jul 15, 2026

@mmcclimon mmcclimon left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh sure, LGTM % the thing that's probably meant for a later PR.

Comment thread common.yml
set -o pipefail
set -o verbose

${_set_shell_env}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems like a mistake (in this PR).

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But yet all tests passed?!

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, I see. This code doesn't need anything from _set_shell_env, so it just works.

@autarch
autarch force-pushed the 07-09-tools-4238_move_some_inline_shell_to_a_script_and_use_env_vars_to_pass_expansions branch from f8aa3f5 to 5052203 Compare July 15, 2026 19:07
@autarch
autarch force-pushed the 07-09-tools-4238_move_some_inline_shell_to_a_script_and_use_env_vars_to_pass_expansions branch from 5052203 to 5ed58be Compare July 16, 2026 17:56
@autarch
autarch force-pushed the 07-09-tools-4238_move_some_inline_shell_to_a_script_and_use_env_vars_to_pass_expansions branch from 5ed58be to 7f26771 Compare July 16, 2026 17:56

autarch commented Jul 16, 2026

Copy link
Copy Markdown
Collaborator Author

Merge activity

  • Jul 16, 5:57 PM UTC: A user started a stack merge that includes this pull request via Graphite.
  • Jul 16, 5:57 PM UTC: @autarch merged this pull request with Graphite.

@autarch
autarch merged commit f816096 into master Jul 16, 2026
6 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants