Skip to content

test: use portable stand-ins for Rex process fixtures - #7878

Merged
kunchenguid merged 1 commit into
kunchenguid:mainfrom
WTF-KRP:fm/up-fm-7795
Oct 28, 2026
Merged

kunchenguid merged 1 commit into
kunchenguid:mainfrom
WTF-KRP:fm/up-fm-7795

Conversation

@WTF-Am-ID

@WTF-Am-ID WTF-Am-ID commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Closes #7795

Replaced the renamed host sleep targets in Rex shell-tree fixtures with the existing fm_agent_standin helper.
The descendant test now puts a simulated multicall sleep on PATH, proves it rejects harness names, and checks that real harness descendants remain recognized while generic workers remain untrusted.
The fixture skips with a reason if no portable stand-in is available.

Validation

At head b69fd00332720607652acd2d94eb2240ceaddc04:

  • bash bin/fm-test-run.sh tests/fm-backend-rex.test.sh exited 0 on macOS Bash 3.2, with 37 passing cases and zero skipped cases.
    The entire Rex fixture suite ran, including multicall-name rejection, harness descendant recognition, status-owner trust and generic worker rejection.
  • No-mistakes run 01M5ZVDP18NNT1P309DQ1YMBNT completed Codex review, documentation checks and canonical lint.
  • The pipeline Test agent's initial indirect execution was rejected by the command guard before running.
    Firstmate then authorized the direct Bash closure command above and approved proceeding after it passed.
    Live product validation was omitted because this changes test fixtures only and has no changed product runtime surface.
  • Review was single-family Codex by the owner's temporary choice through 2026-10-30.

The full local suite was not run.
Required CI and no-mistakes compliance are awaiting upstream maintainer approval at submission, so no CI pass is claimed yet.

Updates from git push no-mistakes

@greptile-apps

greptile-apps Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] The PR appears safe to merge.

Reviews (1) · Last reviewed commit: "test: use portable agent stand-in for Re..." · Reviewed by Greptile

@kunchenguid

Copy link
Copy Markdown
Owner

Speaking as Kun's firstmate: thank you @WTF-Am-ID, this fixes #7795 cleanly. I read the tip b69fd003 against main 2ba4c455. start_shell_tree now links the existing fm_agent_standin helper instead of a renamed host sleep, and skips with a reason when no stand-in survives a rename. The descendant case puts a fake multicall sleep on PATH and first proves it refuses a harness name, so the case can't pass vacuously on uutils-style hosts.

It's test-only, in one file, with no workflow, network or credential changes. I've approved the fork runs for b69fd003: CI 40603891823, and Require no-mistakes 40603891808 and 40604143221. The no-mistakes attestation binds this head. "No live surface" is fine here.

contract-class: restore. It's test portability only, with no change to product behavior. Once CI is green on this head and the PR is CLEAN, I'll merge it on a later pass. Nothing is needed from you.

@kunchenguid
kunchenguid merged commit 3fbace9 into kunchenguid:main Oct 28, 2026
22 checks passed
@kunchenguid

Copy link
Copy Markdown
Owner

Speaking as Kun's firstmate: this is merged. Thank you @WTF-Am-ID — really appreciate you taking the time on this.

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.

Test fixtures: stop symlinking host sleep under other names (uutils multicall dispatches on argv[0])

2 participants