Wave 71/509: kernel-cases: a thread off its hole or shaft size is refused (and 3 more)
4 commits, squashed; the originals stay reachable from tag archive/merge-main-develop. - 35ebc816b jyviko: kernel-cases: a missing capability's message is the case's own text - 248fee75b jyviko: ladder: every ladder run measures one case at a time - e1575385b Brennen Herbruck: kernel-cases: a thread off its hole or shaft size is refused - d7381a1fa bherbruck: kernel-cases: threads fit a hole or shaft off the thread's size again Co-authored-by: Brennen Herbruck <brennen.herbruck@gmail.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DtL5M41G8Nua7HvuFPZkmJ
This commit is contained in:
@@ -88,7 +88,7 @@ fn check_case(dir: &str) -> Value {
|
||||
// case so the gap is visible, never run against a stand-in.
|
||||
if let Some(missing) = want["missing"].as_str() {
|
||||
out["status"] = json!("unsupported");
|
||||
out["error"] = json!(format!("not supported yet: {missing}"));
|
||||
out["error"] = json!(missing);
|
||||
return out;
|
||||
}
|
||||
let commands = match scratch(&area, &name).and_then(|o| read_json(&format!("{dir}/recipe.json")).and_then(|r| script(dir, &o, &r))) {
|
||||
|
||||
@@ -107,7 +107,7 @@ cargo xtask kernel-cases --ladder --kernel both --cli target/release/solidcraft-
|
||||
cargo xtask kernel-cases --ladder --kernel both --cli target/release/solidcraft-cli --record "why"
|
||||
```
|
||||
|
||||
`--record` measures one case at a time, rewrites the golden and sorts each tier by the first
|
||||
Ladder runs measure one case at a time (unless `--jobs`); `--record` rewrites the golden and sorts each tier by the first
|
||||
kernel's time, fastest first; commit both files. The report, `docs/kernel-ladder.md`, gives per
|
||||
tier and kernel the counts per status and the **frontier**: the first case in ladder order the
|
||||
kernel fails.
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
//! areas). Each case is a test like any rig case, graded against its own `expected.json`. On top,
|
||||
//! `tests/kernel-cases/ladder/golden.json` records per case and kernel the status, the commands'
|
||||
//! time and what the kernel made (counts, volume, area): the run compares with it and flags
|
||||
//! slowdowns and changes. `--record REASON` re-measures the golden (one case at a time unless
|
||||
//! `--jobs` says otherwise, so the times are not shared with other cases) and re-sorts each tier
|
||||
//! slowdowns and changes; cases run one at a time unless `--jobs` says otherwise, so the times are
|
||||
//! not shared with other cases. `--record REASON` re-measures the golden and re-sorts each tier
|
||||
//! by the first kernel's time, fastest first; both files are committed.
|
||||
//!
|
||||
//! The report, `docs/kernel-ladder.md`, gives per tier and kernel the counts per status and the
|
||||
@@ -264,7 +264,9 @@ pub fn run(rest: &[&str]) -> Result<(), String> {
|
||||
Some(Some(r)) => Some(r.to_string()),
|
||||
};
|
||||
let mut o = options(rest)?;
|
||||
if reason.is_some() && !rest.contains(&"--jobs") {
|
||||
// Times are compared with the golden: cases run one at a time unless --jobs says otherwise,
|
||||
// so they don't share the machine with each other.
|
||||
if !rest.contains(&"--jobs") {
|
||||
o.jobs = 1;
|
||||
}
|
||||
let manifest = read(&manifest_path());
|
||||
|
||||
+2
-2
@@ -54,8 +54,8 @@ commands:
|
||||
every result as JSON too)
|
||||
--ladder [--record REASON]: the complexity ladder instead
|
||||
(tests/kernel-cases/ladder/ladder.json, tiers in order), graded and compared
|
||||
with its timing golden, into docs/kernel-ladder.md; --record re-measures the
|
||||
golden one case at a time and re-sorts each tier by time
|
||||
with its timing golden (one case at a time unless --jobs), into
|
||||
docs/kernel-ladder.md; --record re-measures the golden and re-sorts each tier by time
|
||||
action-matrix [--bless] [--results FILE] [--from DIR]
|
||||
try every ordinary action on every face, edge, vertex and body of the design
|
||||
corpus and compare with tests/action_matrix/baseline.json (--bless rewrites it;
|
||||
|
||||
Reference in New Issue
Block a user