ekp/.phrase/phases/phase-kp-overhaul-20260726/change_test_isolation_20260728.md
Kinneyzhang fd1210e557 fix: close repository audit findings
Complete task002 through task016 across cache correctness, editor lifecycle, C boundaries, build and release governance, dictionary provenance, performance, interactive workflows, tests, documentation, and final cleanup.
2026-07-28 22:43:10 +08:00

1.1 KiB

Change Log: ERT State and Order Isolation 2026-07-28

task006

  • Modifytests/ekp-tests.el

    • Dynamically scoped and restored all isolated EKP tunables.
    • Replaced the mislabeled internal predicate assertion with a public parshape dispatch test and added a fixture-restoration control.
  • Add/Modify — test runners and .github/workflows/ci.yml

    • Added seeded permutation and fresh-process-per-test runners using public ERT APIs.
    • Added the reproducible permuted-order lane to CI.
  • Modify — changelog, developer, audit, phase, and postmortem records

    • Documented the commands, invariant, evidence, and issue004 closure.

Validation

  • Focused red: isolated C-loaded parshape test 0/1.
  • Focused green: public dispatch, fixture restoration, and C-parameter cases 3/3; isolated parshape 1/1.
  • Reproducibly permuted full ERT: 108/108.
  • Every ERT in a fresh Emacs process: 108/108.

Behavior and Risk

  • Production code and public API are unchanged.
  • CI gains one full ERT invocation on Emacs 30.1.
  • The slower fresh-process runner is an explicit local/release diagnostic, not part of every CI job.