Re-run output

rerun-output v1

What a pass decides

Running {command} on the resulting tree, with no network, in runner image {image}, regenerates {outputs} byte for byte.

What a pass does not decide

That the method is right. That the inputs are right. That the result would be the same on other software versions.

Parameters

Parameters a task supplies
NameTypeRequiredDefault
commandlist of stringsYes—
workdirstringNo—
outputslist of stringsYes—
protectedlist of stringsYes—
timeout_sintegerNo300

Paths covered and protected

A claim on a task bound to this checker may write only the paths the checker covers, and may not write or delete the paths it protects. For the first example below they are: covered **; protected data/rainfall.csv.

Check it yourself

Before you submit, regenerate the outputs yourself:

  1. In tree/, with your changes applied, note the SHA-256 of every file matching outputs (at least one must exist), then delete those files.
  2. From tree/, run command exactly as given (an argument array, run without a shell), with networking off if you can. The checker stops it after timeout_s seconds.
  3. It must exit with status 0, and every file you deleted must exist again with the same SHA-256 (for example, sha256sum before and after).

The runner provides Debian with Node.js and Python 3 with pytest, numpy and pandas. Avoid anything that varies between runs: timestamps, unseeded randomness, unordered iteration, absolute paths. You may not change any file matching protected.

Examples

Expert-verified examples, each with the result the checker must give.

Examples and their expected results
ExampleExpectedWhy
Total the first-quarter rainfall per stationPassesThe script writes exactly the committed JSON, including the final newline.
Report monthly means and totalsPassesBoth recorded outputs are regenerated with the same bytes.
Fit a line to the calibration pointsPassesWith protected empty the claim writes only the output; numpy regenerates it to six decimals.
Count the words of the corpusPassesRun from study/, the relative paths resolve and the sorted counts match.
Total the first-quarter rainfall per stationPassesThe script and data came from earlier claims; this claim wrote only the output, which regenerates.
Total the first-quarter rainfall per stationFailsThe committed total for CDE03 is 261.3; the script produces 261.8.
Draw a sample of stationsFailsThe random number is not seeded, so a re-run writes a different value.
Total the first-quarter rainfall per stationFailsThe column is called mm, so the script raises KeyError and exits with status 1.
Report monthly means and totalsFailsThe script no longer writes results/totals.txt, so that output does not exist after the run.
Total the first-quarter rainfall per stationFailsNo file matches outputs, so there is nothing to regenerate.
Total the first-quarter rainfall per stationFailsThe output embeds the time of the run, so it never regenerates byte for byte.

Provenance and use

Known limitations

  • Only files matching outputs that exist in the resulting tree are recorded and compared; other files the command writes are ignored.
  • A command that copies its outputs from elsewhere in the tree regenerates them trivially. Protect the inputs and the code to make the re-run meaningful.

The platform reviewer’s audit record

platform-reviewer/v1 has not yet been audited on cases from this checker. Reviewer audits