You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(ci): add PR build/test gate and repair all tsc -b + lint failures (#115)
* fix(ci): add PR build/test gate and repair all tsc -b + lint failures
The repo had no pull_request CI workflow and main had no branch protection,
so PR #114 merged green while `tsc -b` and lint were red. This adds a CI gate
and fixes every pre-existing and new failure so the gate is green.
Type errors (tsc -b, the real check — bare `tsc --noEmit` is a no-op here
because tsconfig.json only has `references`):
- database.index.test.ts: ordered-select routing tests referenced where/order
columns not in `include`, and a `seed` helper typed `db` as the empty
Database; both fixed.
- TransactionResult.changedComponents: Set<keyof C | string> -> Set<string>.
Component names are always strings; the `keyof C` only widened to
string|number|symbol for generic C, breaking the type-erased
TransactionResult<unknown> boundary the reconciler/strategy is written
against. Cleared the producer-side `as keyof C` workaround casts.
- reconciling applier: store entries as ReconcilingEntry<any,any,any> (the
layer is type-erased over getTransaction's any-ctx transactions).
- create-store.test.ts: guard optional `.health?.current`.
Lint:
- create-database.test.ts: describe each @ts-expect-error directive.
- test-setup.ts: import { webcrypto } instead of require().
CI / tooling:
- .github/workflows/ci.yml: typecheck + lint + test on every PR and push to
main, scoped to @adobe/data (where the regression class occurred).
- packages/data: add `typecheck` (build wasm + tsc -b, correct for the
project-reference build) and `test:ci` (SKIP_PERF=1) scripts.
- vite.config.js / vitest.workspace.ts: exclude *.performance.test.ts when
SKIP_PERF=1 so the gate is deterministic (timing-ratio perf tests are flaky
on shared runners); a normal `pnpm test` still runs them.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* test(ci): RED probe — deliberate type error to verify gate blocks merge
Intentionally broken; reverted in the next commit.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* Revert CI probe — restore green state
Removes the deliberate type error from the previous commit; the gate is
verified to block on red.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* ci: bump actions to v6 (Node 24 runtime) and node-version to 22
Clears the Node.js 20 action-runtime deprecation warning. checkout, setup-node,
and pnpm/action-setup -> v6; project runtime node-version 20 -> 22 (LTS).
Applied to both ci.yml and deploy-docs.yml.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
0 commit comments