From 77a039844976a77c2b803268e4a39b6820c4a74b Mon Sep 17 00:00:00 2001 From: Luis <42945842+ldiaz94@users.noreply.github.com> Date: Mon, 26 Oct 2026 16:32:53 +0000 Subject: [PATCH] HANDOVER.md and TESTING-PLAN.md gone: the handover is long past, the testing plan built --- diff --git a/HANDOVER.md b/HANDOVER.md deleted file mode 100644 index 762043b..0000000 --- a/HANDOVER.md +++ /dev/null @@ -1,57 +0,0 @@ -# Handover - -## Website source integration, 2026-10-19 - -`make site` now adds ladle's source browser, history, release pages -and a dumb-HTTP clone store under `/source/`. The existing Cloudflare -deploy command stays `npx wrangler deploy`; its custom build hook runs -`make site-source` before uploading. The source output is ignored, -avoiding a Git store that contains copies of its own earlier builds. -The compressed static ladle executable is pinned at 509b9d3 with its -checksum and build instructions in `site/tools/`. - -`site/releases` records the existing v0.18.1, v0.19.0 and v0.20.0 -website distributions at the commits below. Both site builders read -it, so a plain build keeps v0.20.0 as the latest download. All -original compiler archives and their published checksums keep their -bytes. Each supported version also has a source archive; the three -untagged versions have notes under `site/release-notes/` explaining -their status. No compiler release or tag was created here. - -The root `_headers` carries scoped `/source/` rules, including the -canonical release-page URLs Cloudflare serves. Other pages keep their -existing policy; `/download/latest` keeps its redirect. `site/README.md` -gives the full build and verification procedure. The bundled builder -needs only Python 3 and git on x86-64 Linux. A shallow deployment -checkout fetches the full history and tags from its own origin. - -Checks before pushing: `make check` (1,012 checks), `make site`, six -Git and checksum checks in `site/check.py`, and Wrangler's actual -custom build in a deploy dry run. The existing report PDFs were -reused; Pandoc 3.8 rebuilds the HTML report as before. Live deployment -and HTTP download/clone verification follow the push to main. - -## Releases, 2026-10-19 - -The tags v0.18.1, v0.19.0, v0.20.0 and v0.21.0 are pushed, oldest -first, each annotated with what `raz --version` prints at its commit. -The session that pushed them couldn't see the repository through `gh`, -so it didn't see CI's runs or releases. Check each release, and its -tarball's SHA-256 against the website's, which `make dist` made the -same, byte for byte: - - gh run list -R ldiaz94/raz - gh release download vX.Y.Z -R ldiaz94/raz -p '*.tar.gz' - sha256sum raz-X.Y.Z-linux-x86_64.tar.gz - cat site/public/download/raz-X.Y.Z-linux-x86_64.tar.gz.sha256 - -`BOOT` names v0.20.0 (`bfa954d2...`); if CI's v0.20.0 differs, the -website's copy is wrong and must be replaced by CI's, and `BOOT` with -it. A run that failed because the release before it wasn't out yet -is run again from the Actions tab. Delete this section once all four -are checked. - -## What comes next - -Not started; each the owner's call. `PLAN.md` says what is left before -1.0. diff --git a/TESTING-PLAN.md b/TESTING-PLAN.md deleted file mode 100644 index c282c08..0000000 --- a/TESTING-PLAN.md +++ /dev/null @@ -1,103 +0,0 @@ -# Testing: Rand, Check, Prop and raztest - -A plan for testing raz programs: three library modules and a tool, all -shipped with raz, so that a public project needs nothing past raz, make -and sh to use them. Each step is a commit of its own, useful alone; -after each, stop for review. - -## Why here - -- Every program has the library, and a program's make already builds - `tools/Pretty.raz` for `fmt`; `raztest` is found the same way. -- Today ~180 `check`/`expect` helpers are written by hand across ~/r, - four projects carry a PRNG of their own (rjson, pict, sauce, tasta), - and each Makefile hand-rolls its test loop and summary. - -## The pieces - -| Piece | Where | Size | What | -|---|---|---|---| -| `Rand` | `lib/Rand.raz` | ~40 | a seeded generator, splitmix64 | -| `Check` | `lib/Check.raz` | ~80 | assertions, failures on stderr, status by `Rt.atExit` | -| `Prop` | `lib/Prop.raz` | ~300 | properties and fuzzing over recorded choices, with shrinking | -| `raztest` | `tools/Test.raz` | ~700 | finds, builds and runs tests; colour, reports, watch | - -**Rand.** `init(r, seed)`, `next(r): U64`, `below(r, n)` (no bias), -`range(r, lo, hi)`, `seed(): U64` (fresh, from `Sys.random`, to print -and replay). No reals until a user needs them. - -**Check.** `ok(cond, what)`, `str(what, got, want)` (escaped), -`int(what, got, want)`, `mute(on)` and `mutedFailures()` for Prop. A failure is a block on -standard error: - - FAIL what - got: "..." - want: "..." - -and a program with failures ends with `Check: F of N failed` and status -1, by a procedure registered with `Rt.atExit` (which may call -`Rt.exit` itself), so there is no `done` to forget. A passing run says -nothing. The status and this text are the whole contract with -`raztest`; a bare `./Mod` or a make loop works as before. - -**Prop.** A property is `proc(var s: Prop.Source)` that draws values -(`int(s, lo, hi)`, `bool(s)`, `bytes(s, max, buf)`, `pick(s, n)`) and -checks them with `Check`. A case is the bytes it drew (as Hypothesis -does), so shrinking works on those bytes (cut chunks, zero, lower) and -replays the property: no shrinker per type, no closures. A number is 8 -bytes, big-endian, lowered as a whole; `bytes` puts before each byte -one that may end them, so that they shrink one by one. A property -reading only `bytes` is a byte fuzzer. While searching, `Check` is -muted; the smallest failing case is run again aloud and saved to -`test/seeds/`; saved seeds are replayed first, every run. -`PROP_SEED` replays a run's fresh cases, `PROP_CASES` sets how many -(100), `PROP_TIME=60` fuzzes for a minute, `PROP_DIR` moves the seeds; -a case that crashes is saved at exit. - -**raztest.** Finds modules with `proc main*` in `src/` and `test/*.raz` -(`-I`, default `src`); builds with `-Werror`; runs them, `-j n`, a -timeout each, `-r pattern`; times each; shows a test's output only when -it fails; colour on a terminal unless `CI` or `NO_COLOR`; a summary and -the status. `--tap`, `--junit file` (a module is a case, its `FAIL` -blocks the failure). `-w` reruns every test when a `.raz` beside the -tests or in `-I` changes (raz builds fast; import tracking isn't worth -its lines), by polling file times (Sys has no inotify: a gap). `--seed`, `--fuzz 60s` -set `PROP_*`. Left out: `.cn`, sh and pty tests, which stay in make. A -Makefile uses `raztest` when it's there and its own loop when not. - -## Steps - -1. `Rand`, with its self-test. - Done: `lib/Rand.raz`, splitmix64. -2. `Check`; the library's self-tests use it. - Done: `lib/Check.raz`. -3. `raztest`: finding, building, running, `-j`, timeouts, colour, - summary; `test/check.sh`'s library loop uses it. `TOOLS` gains - `Test`; `make install` puts `raztest` on PATH; `doc/raztest.1`. - Done: `tools/Test.raz`. -4. `raztest --tap`, `--junit`. - Done. -5. `raztest -w`. - Done. -6. `Prop`, with its self-test. - Done: `lib/Prop.raz`. -7. Volume 2: `Rand`, `Check` and `Prop` go into `doc/raz-lib.md` as - standard library (not core: `conform/` is untouched), with whole - examples, once the first users have settled them; one report - version. `STANDARDS.md` says how a module tests itself with them. - Done: report 2026-10.36, `doc/raz-lib.md`, `STANDARDS.md`. -8. robbie: `robbie -w`, in its own repository. - -After the release that brings them: rjson, pict and sauce take `Rand` -and `Prop` (rjson's `Random.raz`, JSONTestSuite as seeds; pict's fuzz; -sauce's `Fuzz.raz` draws), and projects take `Check` and `raztest` as -their files are touched, with no sweep. `desktop.7` names `raztest` -once it is installed. - -## Left out - -Coverage-guided fuzzing (the compiler would have to count branches); -tests in doc comments (no library comment holds a whole example; the -report's and the tutorial's are already run); a shared pty harness -(belongs with rtui or rterm); `Check` naming the failing line (`Rt` -knows places but exports none: a gap).