IAPL rename: gate checks, and two breaks they found on an unedited 1.16.7 site
- pnpm legacy:site (scripts/legacy-site-check.mjs): the reference site of v1.16.7, unedited, installed against this build — old commands, doctor without errors, import map unchanged, tsc, builds with webpack and Turbopack - test/legacyNameForms.test.ts: the remaining spellings with 'ipal' as a closed list; a new one fails - found by legacy:site and fixed: 'ipal-tokens --check' called a tokens.css written before 1.17.0 out of date (its header names the command); the doctor's env-example rule did not accept IPAL_* in .env.example - the doctor's seed rules catch IPAL_SEED_ALLOW_FULL=1 as before - PROGRAMISTA: the new release check Co-Authored-By: Claude Fable 5.2 <[email protected]>
This commit is contained in:
co-authored by
Claude Fable 5.2
parent
b91984fbcd
commit
926ba4a67e
@@ -775,6 +775,13 @@ done until the reference site uses it. Before `npm version`:
|
||||
`pnpm test:e2e` (Playwright's global setup runs `e2e/create-test-admin.ts` first: test admins reset, stored 2FA
|
||||
attempt counts cleared, so the result does not depend on what ran before; the fresh-site spec on an EMPTY
|
||||
database: `E2E_SKIP_ADMIN_SETUP=1`).
|
||||
- [ ] **`pnpm legacy:site` green — required through 1.x.** The reference site as it was at `v1.16.7` (the last
|
||||
release before the rename to IAPL: `ipalKit()`, `ipal-tokens`, `ipal-doctor.json`, `ipal-*` skills), unpacked
|
||||
and installed against this build without one edit: the old commands run, the doctor reports no error, the
|
||||
committed import map and `tokens.css` are still current, `tsc` passes, and it builds with webpack and with
|
||||
Turbopack. This is the proof that an existing site upgrades with no change (`scripts/legacy-site-check.mjs`;
|
||||
no database needed). With it: `test/legacyNames.test.ts` (every old name) and `test/legacyNameForms.test.ts`
|
||||
(no new name is born with the old spelling).
|
||||
- [ ] **`pnpm e2e:built` green — required, no release without it.** It builds the reference site with webpack AND with
|
||||
Turbopack (with the late-staff fixture, `E2E_LATE_STAFF=1`) and runs, on each built site: the account rules of
|
||||
staff collections the project or a later plugin adds (`e2e/late-staff.spec.ts`), and "no package manifest among
|
||||
@@ -807,6 +814,7 @@ The site uses the plugin as `file:..` with `dependenciesMeta.injected`, so the p
|
||||
| package contract | `test/exports.test.ts` | every `@intecion/ipal-kit/…` path from the docs exists in `exports` |
|
||||
| docs ↔ code | `test/docsConsistency.test.ts` | names imported in the docs exist in the entry points / `lib/content`; every public export is described in the docs |
|
||||
| e2e | `pnpm test:e2e` (Playwright) | `pnpm test` = `test:int` + `test:e2e` |
|
||||
| a site from before the rename | `pnpm legacy:site` (`scripts/legacy-site-check.mjs`); `test/legacyNames.test.ts`, `test/legacyNameForms.test.ts` | the `v1.16.7` reference site, unedited, on this build: old commands, doctor, import map, types, both bundlers; every old name still works; no new `ipal` name |
|
||||
| built site, both bundlers | `pnpm e2e:built` (`scripts/e2e-built.mjs`, the reference site) | what only a production bundle shows: nothing decided by a function's name, nothing private among the public files (§8.1) |
|
||||
|
||||
Rules: **every fixed bug = a regression test** (check that it fails on the old code);
|
||||
|
||||
Reference in New Issue
Block a user