Skip to content

0.11.1: a command is held to what its case has left - #27

Merged
Sunrisepeak merged 3 commits into
mainfrom
case-time
Nov 20, 2026
Merged

Sunrisepeak merged 3 commits into
mainfrom
case-time

Conversation

@Sunrisepeak

Copy link
Copy Markdown
Member

A command an end-to-end case runs keeps its own limit (command::timeout, 60 s by default; mcpp's kit uses 10 min), whatever the case states: a command that hangs in a case of 5 minutes runs on until the runner ends the whole program at its limit, and the case's outputs and its later cases are lost.

  • time_left() states what the running case has left: the earliest end of its own timeout and of each scope's around it, each counted from when it began; nothing when none states one.
  • e2e::run holds a command to it, less a tenth (at most five seconds) the case keeps for its report. The outcome's case_limit and the failure's text (the time its case had left) state why it ended.
  • Tests: lib/tests/children.cpp (a 30 s child in a 5 s case ends under 5 s; a case with no time keeps the command's own limit).
  • docs/writing-tests.md, spec/protocol.md (O5 within a case), CHANGELOG. All packages 0.11.1; the engine changes only the version it states.

mcpp's test kit uses it (mcpp-community/mcpp#984, design 2026-11-20 §5.16 K1).

time_left() states what the running case has left of its timeout and its
scopes'; e2e::run holds a command to it, less a tenth (at most five seconds)
the case keeps for its report, and says so (outcome::case_limit).
@Sunrisepeak
Sunrisepeak merged commit 9d5bc6c into main Nov 20, 2026
9 checks passed
@Sunrisepeak
Sunrisepeak deleted the case-time branch November 20, 2026 20:56
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