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
@@ -11,6 +11,7 @@ import {
|
||||
} from '../dist/engines/pseudo/logic.js';
|
||||
import { verify } from '../dist/engines/pseudo/vcgen.js';
|
||||
import { studyOf } from '../dist/services/pseudo.js';
|
||||
import { NO_CLOCK } from './helpers/pace.mjs';
|
||||
|
||||
const x = sym('X', 'int'); const y = sym('Y', 'int'); const z = sym('Z', 'int');
|
||||
const i = sym('I', 'int'); const j = sym('J', 'int');
|
||||
@@ -141,7 +142,7 @@ test('the solver never proves a formula that a small assignment breaks (random l
|
||||
const statuses = (src) => {
|
||||
const st = studyOf(src);
|
||||
assert.ok(st.ok, 'the program parses');
|
||||
return verify(st.program.program, { budgetMs: 3000 }).units.flatMap((u) => u.obligations.map((o) => `${o.kind}@${o.line}:${o.status}`));
|
||||
return verify(st.program.program, NO_CLOCK).units.flatMap((u) => u.obligations.map((o) => `${o.kind}@${o.line}:${o.status}`));
|
||||
};
|
||||
|
||||
test('vcgen: a counting loop with its invariant proves its ENSURE and every index', () => {
|
||||
@@ -195,7 +196,7 @@ test('vcgen: FILL and RANDINT ask whether their arguments are allowed', () => {
|
||||
|
||||
test('vcgen: integer arithmetic carries the note on what "proved" assumes about whole numbers', () => {
|
||||
const st = studyOf(['FUNCTION INC(N : INTEGER) RETURNS INTEGER', ' ENSURE RESULT > N', ' RETURN N + 1', 'ENDFUNCTION'].join('\n'));
|
||||
const u = verify(st.program.program, {}).units.find((x) => x.name === 'INC');
|
||||
const u = verify(st.program.program, NO_CLOCK).units.find((x) => x.name === 'INC');
|
||||
assert.ok(u.obligations.every((o) => o.status === 'proved'));
|
||||
assert.ok(u.notes.some((nt) => nt.kind === 'int-model'), 'the int-model note is missing');
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user