SPB Git

Repository Public

checklist.md 11.3 KB 173 lines markdown

1# Release checklist23The quality gates of a release, in the order they are run, each with the command that proves it.4A gate is passed when the command exits 0 and prints the stated evidence; a statement in a document5is not evidence. All commands are run from the repository root.67Details of the last three stages: [signing](signing.md), [notarization](notarization.md),8[distribution](distribution.md). Test strategy: [testing](../development/testing.md). Build9requirements: [setup](../development/setup.md).1011<!-- diagram: checklist-gates -->12```mermaid13flowchart LR14    A["1 Source<br/>clean and scanned"] --> B["2 Tests<br/>all packages"]15    B --> C["3 Strings and docs<br/>consistent"]16    C --> D["4 Release build<br/>signed and verified"]17    D --> E["5 Notarized<br/>and stapled"]18    E --> F["6 Artifacts<br/>checked"]19    F --> G["7 Publication<br/>owner only"]20```2122SVG fallback: ![Order of the release gates](../assets/diagrams/checklist-gates.svg)2324Gates 1 to 4 run offline (after the one-time DuckDB download) and change nothing outside `build/`,25`dist/` and `docs/reports/`. Gate 5 uploads the application to Apple. Gate 7 is never automated.2627## 1. Source2829- [ ] **Working tree is what will be released.**30  `git status --short` prints nothing (or only files deliberately left out), and31  `git log --oneline -1` is the intended commit.32- [ ] **No secrets in tracked or untracked, non-ignored files.**33  `Scripts/secret-scan.sh` → `secret scan: clean (<n> files)`, exit 0.34  The patterns cover private-key blocks, AWS/Anthropic/OpenAI/GitHub/Slack token shapes, generic35  `password|secret|api_key|token = <16+ chars>` assignments and36  `notarytool store-credentials … --password`; it also fails on `.p8`, `.p12`, `.pem`,37  `.mobileprovision`, `.cer`, `.keychain` and `.env` files. Test fixtures, `.xcstrings` catalogs and38  documentation lines containing "example" or "placeholder" are excluded. It is a pattern scan, not39  a proof of absence.40- [ ] **Version is set.** `grep -E "MARKETING_VERSION|CURRENT_PROJECT_VERSION" project.yml`41  shows the version and build number to release.42- [ ] **The project file matches `project.yml`.** `Scripts/build.sh generate` → `ORIXSheet.xcodeproj43  generated` (also runs `Scripts/fetch-duckdb.sh`, which verifies the pinned SHA-256 when it downloads).4445## 2. Tests4647- [ ] **Every package test suite passes.**48  `Scripts/test-all.sh` (or `Scripts/build.sh test`) → last line `TOTAL … 0 failed package(s)`,49  exit 0; the machine-readable result is written to `docs/reports/tests.json`50  (`"failedPackages": 0`). Per-package logs are in `build/test-logs/<Package>.log`. A package is51  counted as failed if its log lacks a "passed" summary line or contains `error: ` or `signal code`.52  The on-device model evaluation is opt-in (`ORIX_AI_EVAL=1`) and is not part of this run.53  Recorded run: 22 packages, 1,270 test functions, `"failedPackages": 0` (2026-11-21T08:47:01Z).54- [ ] **Counts are taken from the file, not from memory.** Quote test numbers only from55  `docs/reports/tests.json` of this run.56- [ ] **Optional, env-gated suites that the default run skips** (run when the area changed):57  `cd Packages/SheetIntelligence && ORIX_AI_EVAL=1 swift test` (model evaluation, minutes long, needs58  the on-device model, rewrites `EVALUATION.md`); `ORIX_DATA_LARGE_TESTS`, `ORIX_BENCH` (see [testing](../development/testing.md) and59  [performance](../development/performance.md) for what each enables).60- [ ] **App integration tests.**61  `xcodebuild test -project ORIXSheet.xcodeproj -scheme ORIXSheet -destination 'platform=macOS,arch=arm64'`62  → `** TEST SUCCEEDED **`. Recorded run of the `ORIXSheetTests` target (`App/Tests`): 9 tests,63  0 failures (`docs/reports/app-tests.json`, 2026-11-21T08:48:35Z). One of the nine asserts that the64  menu bar has no duplicate key equivalent.65- [ ] **Debug app builds.** `Scripts/build.sh debug` → `** BUILD SUCCEEDED **` and no `error:` line.66  (The script filters warnings out of its output.)6768## 3. Strings and documentation6970- [ ] **String catalogs of the shared UI and the app are complete and regenerated.**71  `python3 Scripts/localize.py --check` → one `(checked)` line per catalog, exit 0. It fails on a72  key without translation, mismatched format specifiers, a stale catalog or an interpolated key.73  Observed on 2026-11-21 after the template chooser and the new Settings privacy text were added:74  `sheetui: 346 keys` (checked), `app: 218 keys`, **`9 problem(s)`, exit 1** — eight keys of75  `App/Sources/TemplateChooser.swift` and `App/Sources/AppSettings.swift` have no fr-CA translation76  and `App/Resources/Localizable.xcstrings` is out of date. This gate is not passed until77  `Scripts/localize.py` is run with the missing translations added.78- [ ] **Feature packages' catalogs.** Each feature package has its own string tool79  (`Packages/FeatureCharts/Scripts/strings.py`, `Packages/FeatureAnalysis/Scripts/strings.py --all`,80  tools under `Packages/FeatureAudit/Tools`, `FeatureIntelligence/Tools`, `FeatureAutomation/Tools`).81  The Charts and Analysis tools exit 1 on a missing or mismatched translation, but they also82  **rewrite** their catalog; there is no verify-only mode. Run them, then check that83  `git status --short` shows no change.84- [ ] **Documentation links and images resolve.** `python3 Scripts/check-docs.py` → `0 problem(s)`.85- [ ] **Every diagram has an up-to-date SVG fallback.**86  `python3 docs/assets/diagrams/make_diagrams.py --check` → no `stale:` or `error:` line, exit 0.87- [ ] **Documents quote measured values only.** Benchmarks referenced by the documents exist in88  `docs/benchmarks/` and in the package `BENCHMARKS.md` files with their machine, build and date.8990## 4. Release build and signature9192- [ ] **Signed universal build.** `Scripts/sign.sh` (or `Scripts/build.sh release`) → ends with93  `RESULT: dist/ORIX Sheet.app is built and signed.` The script itself enforces, and prints:94  - `codesign --verify --deep --strict` passes;95  - architectures `x86_64 arm64`;96  - authority `Developer ID Application: …`, a `Timestamp=` line, `flags=0x10000(runtime)`;97  - no `get-task-allow` entitlement;98  - every Mach-O in the bundle signed by team `3YM54G49SN` with the hardened runtime;99  - the embedded tool answers: a line `-- embedded CLI: orix-sheet <version> (…)`.100- [ ] **Independent re-check of the bundle** (does not rebuild):101102  ```bash103  codesign --verify --deep --strict --verbose=2 "dist/ORIX Sheet.app"104  codesign -dvv "dist/ORIX Sheet.app" 2>&1 | grep -E "Authority|TeamIdentifier|Timestamp|flags"105  codesign -d --entitlements - --xml "dist/ORIX Sheet.app"      # expect an empty <dict/>106  ```107- [ ] **The bundle contains what the current project links.**108  `ls "dist/ORIX Sheet.app/Contents/Frameworks"` lists `libduckdb.dylib`, and109  `codesign -dvv "dist/ORIX Sheet.app/Contents/Frameworks/libduckdb.dylib" 2>&1 | grep TeamIdentifier`110  prints `3YM54G49SN`.111- [ ] **The command-line tool is embedded, signed and runs.**112  `"dist/ORIX Sheet.app/Contents/MacOS/orix-sheet" version` prints the version line, and113  `codesign -dvv "dist/ORIX Sheet.app/Contents/MacOS/orix-sheet" 2>&1 | grep -E "TeamIdentifier|flags"`114  prints `3YM54G49SN` and `flags=0x10000(runtime)`. Scheduled workflows depend on this file115  ([automation](../architecture/automation.md)).116- [ ] **The signed app launches and opens a document.** Launch `dist/ORIX Sheet.app` by hand; the117  launch arguments used for automated screenshots (`-ORIXOpen <file> -ORIXShot <png>`) are described118  in [setup](../development/setup.md). No script asserts this for the Release bundle.119120## 5. Notarization (uploads to Apple; owner's credentials)121122- [ ] **App and DMG accepted and stapled.** `Scripts/notarize.sh` → exit 0 and123  `RESULT: dist/ORIX Sheet.app and dist/ORIXSheet-<version>.dmg are notarized by Apple and stapled.`124  Exit 2 = app not accepted, exit 3 = DMG not accepted; logs in `build/notary/`.125- [ ] **Tickets validate.**126  `xcrun stapler validate "dist/ORIX Sheet.app"` and127  `xcrun stapler validate dist/ORIXSheet-<version>.dmg` → `The validate action worked!`128- [ ] **Gatekeeper accepts both.**129130  ```bash131  spctl --assess --type execute --verbose=2 "dist/ORIX Sheet.app"132  spctl --assess --type open --context context:primary-signature --verbose=2 dist/ORIXSheet-<version>.dmg133  ```134  → `accepted`, `source=Notarized Developer ID`.135136## 6. Artifacts137138- [ ] **Checksums match.** `cd dist && shasum -a 256 -c ORIXSheet-<version>.sha256` → `OK` twice.139- [ ] **The DMG has the designed layout** (background, app at the left, Applications link at the140  right). If `package.sh` printed `create-dmg unavailable or failed: building a plain disk image`,141  the fallback image was produced: decide whether that is acceptable. Checked by opening the DMG.142- [ ] **The DMG is signed.** `codesign -dvv dist/ORIXSheet-<version>.dmg 2>&1 | grep Authority`.143- [ ] **First-launch test from a download** on a Mac other than the build machine (quarantine set144  by the browser): the app opens without a Gatekeeper warning beyond the standard "downloaded from145  the Internet" confirmation. Manual; see `RELEASE-REPORT.md` for whether it was done.146- [ ] **Manual accessibility pass, if claimed.** `docs/development/accessibility.md` lists what was147  not verified (VoiceOver was not listened to, display options not switched on during a run). Do148  not describe these as verified unless they have been.149150## 7. Publication (owner's authorization required)151152- [ ] `Scripts/secret-scan.sh` run again immediately before pushing.153- [ ] `git push origin main` to the private repository (`gitsrv:srv/git-private/orix-sheet.git`).154- [ ] Tag, release notes and any download location: decided and performed by the owner. Nothing in155  the repository automates them; see [distribution](distribution.md).156157## Gates observed on 2026-11-21158159| Gate | Command | Result |160|---|---|---|161| Package tests | `Scripts/test-all.sh` | 22 packages, 1,270 test functions, 0 failed packages (`docs/reports/tests.json`, 2026-11-21T08:47:01Z) |162| App integration tests | `xcodebuild test -project ORIXSheet.xcodeproj -scheme ORIXSheet -destination 'platform=macOS,arch=arm64'` | 9 tests, 0 failures (`docs/reports/app-tests.json`, 2026-11-21T08:48:35Z) |163| Signed universal build | `Scripts/sign.sh`, then `codesign -dvv "dist/ORIX Sheet.app"` and `codesign --verify --deep --strict` | Developer ID Application, team `3YM54G49SN`, `flags=0x10000(runtime)`, `x86_64 arm64`, timestamp Nov 21, 2026 at 3:50:32 AM, empty entitlements (no `get-task-allow`), verification passes |164| Bundle content | `ls`, `codesign -dvv`, `lipo -archs` on the nested files | `Contents/MacOS/orix-sheet` and `Contents/Frameworks/libduckdb.dylib` present, universal, signed by the same team with the hardened runtime |165| Secret scan | `Scripts/secret-scan.sh` | `secret scan: clean (1071 files)`, exit 0 |166| String catalogs | `python3 Scripts/localize.py --check` | **fails**: `sheetui: 346 keys` checked, `app: 218 keys`, 9 problems (8 missing fr-CA translations, app catalog out of date), exit 1 |167| Documentation | `python3 Scripts/check-docs.py`, `python3 docs/assets/diagrams/make_diagrams.py --check` | run after the documentation refresh; see the tools' output |168| Notarization, stapling, checksums, Gatekeeper | `Scripts/notarize.sh` and the commands of gates 5 and 6 | see `RELEASE-REPORT.md` |169170Source: `docs/reports/tests.json`, `docs/reports/app-tests.json`, and read-only inspection of171`dist/ORIX Sheet.app`, `Scripts/secret-scan.sh` and `Scripts/localize.py --check` run on 2026-11-21172after the release commit `1a190fd`.173
Files main
Menu

Theme