Skip to content

DEBUG: temporary ARG_MAX tracing for #70085 investigation (do not merge) - #70182

Closed
twangboy wants to merge 2 commits into
saltstack:3008.xfrom
twangboy:debug/61338-argmax-trace
Closed

DEBUG: temporary ARG_MAX tracing for #70085 investigation (do not merge)#70182
twangboy wants to merge 2 commits into
saltstack:3008.xfrom
twangboy:debug/61338-argmax-trace

Conversation

@twangboy

Copy link
Copy Markdown
Contributor

Scratch/throwaway draft PR to capture the real argv size of the failing salt-ssh state.apply command on Photon OS / Arm64 CI runners (see #70085). Adds a temporary stderr print in Shell._run_cmd(). Will be closed once the debug log is captured — not intended to be reviewed or merged.

Shell.send() built the scp command as an unquoted f-string, so any
space in the local or remote path (e.g. a master cachedir/root_dir
containing a space) caused shlex.split() to break it into bogus
extra arguments and fail the transfer. This affected every send()
caller: thin/relenv tarball deploy, ext_mods tarball, pre-flight
script, shim transfer, and the relenv minion-config transfer.

Quote local and host:remote with shlex.quote() in Shell.send(), and
apply the same treatment to the related unquoted "test -d"/"test -f"
remote checks in Single.check_thin_dir() and Single.cmd_block().

Add a unit test covering the command string built by Shell.send(),
and an integration test that overrides a roster's thin_dir with a
space-containing path and drives a real salt-ssh deploy against it.

Fixes saltstack#61338
@twangboy twangboy added the test:full Run the full test suite label Aug 29, 2026
@twangboy

Copy link
Copy Markdown
Contributor Author

Closing — this was a throwaway debug PR to trace an ARG_MAX regression for #70085's investigation. Root cause found: a pre-existing pillar/opts accumulation bug in the relenv nested-wrapper code from #69886, unrelated to #70085's actual diff. See #70085 for the writeup.

@twangboy twangboy closed this Aug 29, 2026
@twangboy
twangboy deleted the debug/61338-argmax-trace branch August 29, 2026 02:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test:full Run the full test suite

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant