Skip to content

Check identical tmux screens against the jobs’ output and exit codes - #208

Merged
tony merged 1 commit into
masterfrom
program-output-evidence
Dec 6, 2026
Merged

tony merged 1 commit into
masterfrom
program-output-evidence

Conversation

@tony

@tony tony commented Dec 5, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Two jobs receive different input in their own tmux pane. Each briefly prints a different progress message, then overwrites it with done. Lua’s visible-text wait succeeds for both. The jobs exit with status 0 and 7.

The test compares the Program result with three independent observations. A native tmux control client reads the output bytes, capture-pane reads the screen, and the child records the input it received and its exit status. The test checks that both complete screens match and that only the fixture session survives.

Test plan

  • Run luajit scripts/check/check.lua integration program_contract against the updated Program contract in Concept: Tell whether a build passed after its pane closes #154. The suite passed with Lua 5.1.5 and Neovim 0.10.0 on tmux 3.3a, and Lua 5.5.1 and Neovim 0.12.5 on tmux 3.4 and 3.8.
  • Substitute exit 0 for job B. Both hosts report expected exit 7, got 0 after their output and screen comparisons pass.
  • The earlier local integration tree passed format, lint, LuaLS diagnostics, reference export and editor completion.
  • The full outer check on that tree passed with the companion fixes applied, including the installed examples.

Built on #154. Closes #150.

why:
A tmux pane can finish on the same screen for two jobs with different
output and exit statuses. Consumers depend on each result separately.

what:
- Send a token to each job and verify its receipt outside the pane.
- Compare the Program result with a tmux control client, capture-pane
  and the exit code recorded by the child.
@tony
tony force-pushed the concept-program-exit branch from d66efdc to f0681c8 Compare December 6, 2026 14:35
@tony
tony force-pushed the program-output-evidence branch from e5cf392 to 828fce5 Compare December 6, 2026 14:35
@tony
tony deployed to docs-preview December 6, 2026 14:44 — with GitHub Actions Active
@tony
tony changed the base branch from concept-program-exit to master December 6, 2026 14:53
@tony
tony merged commit c5e2735 into master Dec 6, 2026
15 checks passed
@tony
tony deleted the program-output-evidence branch December 6, 2026 14:53

This branch was successfully deployed

1 active deployment
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.

Add a FIRE test for captured output and job exit in Lua

1 participant