GitHub
Skip to content

Trust

How fleetjobs decides whether to believe a result from a remote host or run the command again here, and what the trust table keeps.

A host can pass what should fail, or fail what should pass, because it lacks a tool or a file. Running every remote result again here would cost a slot each time. fleetjobs keeps a trust table and reruns only the results that look suspect.

Remote resultWhat happens
Fails, and the output shows an environment errorRuns here again, as class confirm
Fails, and this command has disagreed with this machine beforeRuns here again, as class confirm
Fails for any other reasonThe remote exit stands
PassesStands, except about 2% of passes, when this machine is idle: those run here too, as class sample

A rerun goes ahead of the queue. When the local result and the remote result differ in pass or fail, that is a disagreement. The local result counts, the command's entry gets a disagreement, and the command is scheduled here only for the next 24 hours.

In the bash heavy's log, 490 remote failures were rerun here: 417 failed again, so 85% of those reruns only repeated the failure. The 73 that passed are the cases the environment and disagreement rules keep.

trust.json in the store maps a key to an entry. The key is the root commit of the repository and the first three words of the command, so pnpm test run src/a.test.ts and pnpm test run src/b.test.ts share an entry.

{
  "3f2a9c1 pnpm test run": {
    "remotePass": 41,
    "remoteFail": 2,
    "disagreements": 1,
    "localOnlyUntil": 1796600000
  }
}
json

localOnlyUntil is in seconds since 1970 and is absent until a disagreement. Delete a key to forget it, or delete the file to start over. Updates run under the store lock, so several supervisors lose no counts.