Skip to content

Add support for test arguments to remote test commands - #3552

Merged
toastwaffle merged 5 commits into
thought-machine:masterfrom
chris-franklin:remote-test-args
Jul 23, 2026
Merged

Add support for test arguments to remote test commands#3552
toastwaffle merged 5 commits into
thought-machine:masterfrom
chris-franklin:remote-test-args

Conversation

@chris-franklin

@chris-franklin chris-franklin commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

This adds support for BuildState.TestArgs to remote builds. This includes support for TestFields.ArgsPlaceholder.
It does this by introducing a central function for doing it, which wraps the call to ReplaceTestSequences.

It also updates shell_output.go so that the correct command is shown when using --shell.

The remote test build that was previously failing due to the presence of the placeholder passed when using this change, and using --shell also showed the correct command.

This adds support for `BuildState.TestArgs` to remote builds. This includes
support for `TestFields.ArgsPlaceholder`
@chris-franklin
chris-franklin marked this pull request as ready for review July 22, 2026 17:38
Comment thread src/core/command_replacements_test.go Outdated
Comment thread src/output/shell_output.go Outdated
shouldSandbox := target.Sandbox
if state.NeedTests {
cmd = target.GetTestCommand(state)
cmd, _ = core.TestCommand(state, target)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

please at least log this error

ditto below

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I went for logging here, but in the other places I relay it upwards, and it does seem like that will eventually be logged.

Comment thread src/remote/remote_test.go Outdated
Comment thread src/core/command_replacements_test.go Outdated
Comment thread src/output/shell_output.go
Comment thread src/core/command_replacements.go Outdated
Comment thread src/output/shell_output.go
@toastwaffle
toastwaffle merged commit dbbaba4 into thought-machine:master Jul 23, 2026
12 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