A gate that does not depend on its machine, on a runner of its own
Test / gate (push) Canceled after 0s
Test / gate (push) Canceled after 0s
The gate first ran on the server that deploys the site: a slow container with no C compiler and no ICU. Ten tests failed there on correct code, and no Mojo program could be built at all. - The workflows ask for a runner labeled heavy, not the deploy server: the gate builds and runs some 300 Mojo programs and fuzzes. docs/ci.md says how to register one. With none registered a run waits. - The pinned environment has a C compiler on Linux (gcc, with its C library pinned to glibc 2.34): mojo build links with the C compiler it finds, and conda-forge's default links against a C library too old for Mojo's runtime. mojo-local reports a program that could not be linked as that, and does not keep the answer. - The pinned Dafny runs without ICU, and dafny-fetch fails when the Dafny it fetched does not start. - A test's time limit is processor time at the machine's pace (tests/helpers/pace.mjs). - The prover's time on the clock is the caller's: provePseudo and Workspace.proofBudgetMs take it, the Prove tab's 3 seconds stay the default, and the command line, library-check and the tests use none, so their answers are the counted budgets' alone. - The library pointer moves to its workflow change (e5ae090).
This commit is contained in:
31 files changed
+427
-104
No files matched your search
+9
-2
@@ -6,10 +6,14 @@
|
||||
*
|
||||
* pixi run cli check <file> what the language's own reader says
|
||||
* pixi run cli run <file> [--call C] [--input F] run it, print what it prints
|
||||
* pixi run cli prove <file> [--speco F] every obligation: proved, broken or open
|
||||
* pixi run cli prove <file> [--speco F] [--budget-ms N] every obligation: proved, broken or open
|
||||
* pixi run cli fuzz <file> [--seed N] [--budget N] the fuzzer's report per routine
|
||||
* pixi run cli translate <file.pseudo> --to mojo|lingo|matho|speco
|
||||
*
|
||||
* prove has no time limit here unless --budget-ms gives one (milliseconds for each routine): the prover's counted
|
||||
* budgets decide alone, so the answer is the same on every machine. The Prove tab of the app gives each routine 3
|
||||
* seconds as well, and on a slow machine can leave open what this proves; `--budget-ms 3000` asks for what it does.
|
||||
*
|
||||
* The language comes from the extension: .pseudo, .lingo, .matho (or .tex), .speco, .mojo, .asm (or .s). Add --json
|
||||
* for machine-readable output. Exit status: 0 when nothing is wrong, 1 when the command found a problem (an error,
|
||||
* a broken obligation, a failing input, a run that stopped), 2 for a usage error. Build first (`pixi run build`):
|
||||
@@ -23,7 +27,7 @@ const ROOT = fileURLToPath(new URL('..', import.meta.url));
|
||||
const dist = (p) => pathToFileURL(path.join(ROOT, 'dist', p)).href;
|
||||
const usage = (why) => {
|
||||
if (why) console.error(`pplus: ${why}`);
|
||||
console.error('usage: pplus <check|run|prove|fuzz|translate> <file> [--call C] [--input F] [--speco F] [--seed N] [--budget N] [--to LANG] [--json]');
|
||||
console.error('usage: pplus <check|run|prove|fuzz|translate> <file> [--call C] [--input F] [--speco F] [--seed N] [--budget N] [--budget-ms N] [--to LANG] [--json]');
|
||||
process.exit(2);
|
||||
};
|
||||
if (!fs.existsSync(path.join(ROOT, 'dist', 'common', 'workspace.js'))) usage('dist/ is missing; run `pixi run build` first');
|
||||
@@ -66,6 +70,9 @@ switch (cmd) {
|
||||
}
|
||||
case 'prove': {
|
||||
if (lang !== 'pseudo') usage('prove reads a .pseudo file (with --speco for a separate spec)');
|
||||
const clock = opt('budget-ms');
|
||||
if (clock !== undefined && !(Number(clock) > 0)) usage('--budget-ms takes a number of milliseconds above 0');
|
||||
ws.proofBudgetMs = clock === undefined ? Infinity : Number(clock);
|
||||
const p = ws.proof();
|
||||
if (!p) { out({ error: 'the pseudo does not parse' }, ['pplus: the pseudo does not parse; run `pplus check` first']); process.exit(1); }
|
||||
const { report } = p;
|
||||
|
||||
Reference in new issue
Block a user