Skip to content

Remove remote mktemp dependency from report#8

Merged
J3m5 merged 1 commit into
mainfrom
fix/report-without-remote-mktemp
Jul 20, 2026
Merged

Remove remote mktemp dependency from report#8
J3m5 merged 1 commit into
mainfrom
fix/report-without-remote-mktemp

Conversation

@J3m5

@J3m5 J3m5 commented Jul 20, 2026

Copy link
Copy Markdown
Collaborator

Why

The read-only report used mktemp on the remote host even though the portable capability contract requires only sh, tar, cp, mkdir, and rm. A host accepted by doctor could therefore fail at report time.

What changed

  • build the remote include list with POSIX shell positional parameters
  • stream existing scopes directly through GNU tar
  • preserve an empty-archive path through /dev/null
  • add unit and SSH E2E regressions with remote mktemp unavailable

Validation

  • mise run fix: 138 tests plus all static checks
  • mise run test:e2e: 16/16 on GNU tar 1.34 and 16/16 on GNU tar 1.35
  • mise run test:e2e:pex: 16/16 on the packaged PEX with GNU tar 1.35

Build the remote include list with POSIX shell positional parameters so report stays within its declared portable command profile.

Cover the generated script and run the SSH report E2E with mktemp removed from the managed host.
@J3m5
J3m5 merged commit e48a795 into main Jul 20, 2026
4 checks passed
@J3m5
J3m5 deleted the fix/report-without-remote-mktemp branch July 20, 2026 10:29
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.

1 participant