Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
17 changes: 0 additions & 17 deletions .github/workflows/bench.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,5 @@
name: Bench

# Manual speed-gate runs that never publish: builds each listed commit's
# Linux x64 binary and dists in turn and runs that commit's verify:bench
# against the pinned reference release, all on one runner, so commits are
# compared on the same hardware; a commit older than verify:bench is measured
# with this workflow's harness. Each commit's receipt is uploaded under
# its position and ref, so a ref may repeat as a drift control. With
# `profile`, each commit's binary keeps its symbols and its large-closure
# load is also profiled, and those reports are uploaded beside its receipt.
# `cpu` and `attempts` start several runners and measure only on those with
# the named CPU, since ubuntu-latest does not choose the processor.

on:
workflow_dispatch:
inputs:
Expand Down Expand Up @@ -104,18 +93,12 @@ jobs:
n=$((n + 1))
echo "::group::$ref"
git checkout --force --quiet "$ref"
# Each ref installs from its own lockfile into empty node_modules:
# bun keeps an earlier ref's packages as "no changes". The reference
# tarballs and cargo targets carry over.
git clean -ffdxq -e .bench -e target
if [ ! -f scripts/bench/run.ts ]; then
# Older than verify:bench: measured with this workflow's harness.
git checkout "$GITHUB_SHA" -- scripts/bench scripts/consumers/measure.ts
fi
bun install
(
# A ref from before the v2 naming retired keeps its crate in
# crates/extract-v2.
crate=packages/extract/crates/extractor
[ -f "$crate/Cargo.toml" ] || crate=packages/extract/crates/extract-v2
cd "$crate"
Expand Down
109 changes: 0 additions & 109 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ on:
default: false

jobs:
# ─── Fast lint (parallel with build-extract) ──────────
lint:
runs-on: ubuntu-latest
steps:
Expand All @@ -42,15 +41,6 @@ jobs:
- name: Lint
run: bunx vp run verify:lint

- name: NAPI loading contract check
run: |
if grep -rn "require('@animus-ui/extract')" packages/_integration/__tests__/; then
echo "ERROR: require('@animus-ui/extract') in _integration tests violates the NAPI loading contract."
echo "Use require('../../extract/extractor.js') instead. See packages/_integration/CLAUDE.md."
exit 1
fi

# ─── Rust unit tests (debug profile, no NAPI binary) ─────
test-rust:
runs-on: ubuntu-latest
steps:
Expand All @@ -73,7 +63,6 @@ jobs:
- name: Rust unit tests
run: bunx vp run verify:unit:rust

# ─── Strict Rust lint (parallel with test-rust) ────────────
clippy:
runs-on: ubuntu-latest
steps:
Expand All @@ -98,7 +87,6 @@ jobs:
- name: Clippy
run: bunx vp run verify:clippy

# ─── Rust dependency hygiene (parallel with test-rust) ───
hygiene-rust:
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -126,7 +114,6 @@ jobs:
- name: Rust dependency hygiene
run: bunx vp run verify:hygiene:rust

# ─── Rust NAPI build matrix (release profile, no tests) ──
build-extract:
strategy:
fail-fast: false
Expand Down Expand Up @@ -171,7 +158,6 @@ jobs:
path: packages/extract/crates/extractor/*.node
if-no-files-found: error

# ─── Full pipeline verification ─────────────────────────
verify:
needs: [build-extract, test-rust]
runs-on: ubuntu-latest
Expand All @@ -187,8 +173,6 @@ jobs:
bun-version-file: .tool-versions

- name: Download extractor linux binary
# @animus-ui/showcase#verify:build runs on the extractor — its binary is
# a hard precondition.
uses: actions/download-artifact@v8
with:
name: napi-extractor-x86_64-unknown-linux-gnu
Expand Down Expand Up @@ -232,19 +216,6 @@ jobs:
bunx vp run @animus-ui/showcase#verify:build
bunx vp run @animus-ui/showcase#verify:assert

- name: Upload lane receipts
uses: actions/upload-artifact@v7
with:
name: receipts-showcase
path: packages/showcase/.receipts/
# .receipts is a dot-directory: upload-artifact excludes hidden
# files by default even when the path names the hidden dir (the
# v0.1.3 receipts outage; also the likely cause of the original
# empty verify-vite artifact).
include-hidden-files: true
if-no-files-found: error

# ─── Next consumer lane (build + assert on every push) ──
verify-next:
needs: [build-extract]
runs-on: ubuntu-latest
Expand Down Expand Up @@ -276,19 +247,6 @@ jobs:
bunx vp run @animus-ui/next-app#verify:assert
bunx vp run @animus-ui/next-app#verify:prefixed

- name: Upload lane receipts
uses: actions/upload-artifact@v7
with:
name: receipts-next
path: e2e/next-app/.receipts/
# .receipts is a dot-directory: upload-artifact excludes hidden
# files by default even when the path names the hidden dir (the
# v0.1.3 receipts outage; also the likely cause of the original
# empty verify-vite artifact).
include-hidden-files: true
if-no-files-found: error

# ─── Vite consumer lane (build + assert on every push) ──
verify-vite:
needs: [build-extract]
runs-on: ubuntu-latest
Expand Down Expand Up @@ -320,27 +278,8 @@ jobs:
bunx vp run @animus-ui/vite-app#verify:assert
bunx vp run @animus-ui/vite-app#verify:prefixed

- name: List lane receipts (diagnosing empty artifact)
# The receipt writes locally and next-app's analog uploads fine;
# this ls decides where the CI-side write goes missing. Flip the
# upload below to if-no-files-found: error once diagnosed.
run: ls -la e2e/vite-app/.receipts/ || echo "receipts dir absent"

- name: Upload lane receipts
uses: actions/upload-artifact@v7
with:
name: receipts-vite
path: e2e/vite-app/.receipts/
# .receipts is a dot-directory: upload-artifact excludes hidden
# files by default even when the path names the hidden dir (the
# v0.1.3 receipts outage; also the likely cause of the original
# empty verify-vite artifact).
include-hidden-files: true

# ─── Supported Worker consumer release gate ────────────
verify-workers:
needs: [build-extract]
# Off by default to save CI minutes: runs only on an explicit dispatch with deploy_workers.
if: github.event_name == 'workflow_dispatch' && inputs.deploy_workers == true
runs-on: ubuntu-latest
steps:
Expand All @@ -365,13 +304,9 @@ jobs:
- name: Build TS
run: bunx vp run build:ts

- name: Verify Worker contracts
run: bunx vp run verify:workers:contracts

- name: Verify supported Workers
run: bunx vp run --fail-if-no-match -F './e2e/*' -F '!@animus-ui/next-app' -F '!animus-packed-app' -F './packages/showcase' verify

# ─── Packed consumer lane (npm staging install on every push) ──
verify-packed:
needs: [build-extract]
runs-on: ubuntu-latest
Expand Down Expand Up @@ -400,23 +335,8 @@ jobs:
- name: Packed consumer lane
run: bunx vp run verify:packed

- name: Upload lane receipts
uses: actions/upload-artifact@v7
with:
name: receipts-packed
path: e2e/packed-app/.staging/receipts/
# .receipts is a dot-directory: upload-artifact excludes hidden
# files by default even when the path names the hidden dir (the
# v0.1.3 receipts outage; also the likely cause of the original
# empty verify-vite artifact).
include-hidden-files: true
if-no-files-found: error

# ─── Speed gate (only where a release publishes) ────────
bench:
needs: [build-extract]
# Paired timing against the pinned last-known-fast release: once per
# release, not on every push, to save CI minutes.
if: >-
(github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')) ||
(github.event_name == 'workflow_dispatch' && inputs.publish_packages == true)
Expand Down Expand Up @@ -448,9 +368,6 @@ jobs:
- name: Fetch the pinned reference release
run: bun scripts/bench/prepare.ts

# A row's ratio moves with the runner's CPU, so a row that fails or is
# unqualified here is measured again on a fresh runner (bench-confirm);
# an invalid row, or a run that does not finish, fails here.
- name: Speed gate
id: gate
run: |
Expand All @@ -467,9 +384,6 @@ jobs:
include-hidden-files: true
if-no-files-found: error

# The rows the speed gate did not pass, measured again on a fresh runner:
# the release proceeds only when each passes here. It runs wherever the
# gate does, and with nothing to confirm, no step runs.
bench-confirm:
needs: [build-extract, bench]
runs-on: ubuntu-latest
Expand Down Expand Up @@ -523,7 +437,6 @@ jobs:
include-hidden-files: true
if-no-files-found: error

# ─── Worker deployment (explicit dispatch only) ──
deploy-workers:
needs:
[
Expand Down Expand Up @@ -574,7 +487,6 @@ jobs:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
run: bash scripts/deploy/workers.sh deploy

# ─── Release (tag push or manual dispatch only) ─────────
release:
needs:
[
Expand Down Expand Up @@ -617,8 +529,6 @@ jobs:
- run: bun install

- name: Verify npm toolchain supports trusted publishing
# npm >= 11.5.1 is the OIDC floor; whoami is meaningless pre-publish
# under OIDC (credentials are minted at publish time).
run: |
node --version
npm --version
Expand All @@ -627,7 +537,6 @@ jobs:
exit 1
fi

# ── Parse version from tag ──
- name: Set version from tag
id: version
run: |
Expand All @@ -645,17 +554,12 @@ jobs:
echo "tag=$TAG" >> "$GITHUB_OUTPUT"
echo "Publishing version: $VERSION (tag: $TAG)"

# ── Set version in all packages ──
- name: Bump versions and resolve workspace deps
run: bash scripts/set-release-version.sh "${{ steps.version.outputs.version }}"

# ── Build TS packages ──
- name: Build
run: bunx vp run build:ts

# ── Download all NAPI binaries ──
# A target missing its extractor binary fails the release job —
# never publish a partial matrix (engine-release-packaging).
- name: Download darwin-arm64 extractor binary
uses: actions/download-artifact@v8
with:
Expand All @@ -674,7 +578,6 @@ jobs:
name: napi-extractor-aarch64-unknown-linux-gnu
path: packages/extract/crates/extractor/

# ── Pack and verify one immutable release bundle ──
- name: Pack immutable release bundle
env:
RELEASE_BUNDLE: ${{ runner.temp }}/animus-release-bundle
Expand All @@ -686,12 +589,6 @@ jobs:
exit 1
fi
for pkg in properties core react effect-ui extract layergate vite-plugin next-plugin cli unplugin; do
# bun pm pack — the SAME packer verify:packed proves on every
# push (packer parity: npm pack shipped two release-only bugs in
# v0.1.2 because the lane packed differently). bun resolves a
# remaining workspace: specifier from the lockfile's version, not
# the release's, so set-release-version.sh above rewrites every
# block first (verify:packed packs this way on every push).
(cd "packages/$pkg" && bun pm pack --destination "$RELEASE_BUNDLE")
done
for artifact in \
Expand Down Expand Up @@ -722,18 +619,12 @@ jobs:
--expect-full-matrix
bash scripts/verify/packed.sh --release-version "$VERSION" --tarballs-dir "$RELEASE_BUNDLE"

# ── Publish the verified bytes in dependency order ──
- name: Publish immutable release bundle
env:
RELEASE_BUNDLE: ${{ runner.temp }}/animus-release-bundle
run: |
VERSION="${{ steps.version.outputs.version }}"
NPM_TAG="${{ steps.version.outputs.tag }}"
# Re-runnable: a version npm already holds with these exact bytes is
# skipped, and a publish that errors after its upload landed counts
# once the registry shows the same bytes. Different bytes fail.
# Either way the release's dist-tag must name this version, or a newer
# one. Trusted publishing cannot move a tag, so a stale one fails.
published_shasum() { npm view "@animus-ui/$1@${VERSION}" dist.shasum 2>/dev/null || true; }
check_tag() {
for attempt in 1 2 3 4 5 6 7 8 9 10; do
Expand Down
23 changes: 5 additions & 18 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,6 @@ tsconfig.tsbuildinfo
# NAPI build artifacts (binary only — index.js and index.d.ts are committed)
*.node

# code-hygiene cascade postmortem audit (truncated per-run)
.hygiene/

# Agents
.claude
# Shared Markdown tracker; this checkout keeps an ignored link.
Expand All @@ -64,22 +61,13 @@ tsconfig.tsbuildinfo

tmp

# Live oxlint test fixtures (scripts/hygiene/delete-unused.test.ts) are
# DELIBERATELY NOT ignored here. `vp lint --no-ignore` disables `.eslintignore`
# / `--ignore-path` / `--ignore-pattern` only — it does NOT disable .gitignore,
# so any fixture path listed here is skipped by the linter ("No files found to
# lint", number_of_files: 0) and the live-integration gate silently inspects
# nothing. The former `.live-test-fixtures-*` entry did exactly that. The tests
# create `livetestfixtures-*` at the repo root and remove them in a `finally`.

# packed consumer lane staging (verify:packed)
e2e/packed-app/.staging/

# per-lane verification receipts (verify:assert:* — increment 06)
# verify:browser-fixtures receipt
.receipts/
# internal notes stay ignored; the consumer contract page SHIPS
# (openspec: standalone-extraction-cli inc 07 — a bare `docs` dir pattern
# made the deliverable un-commitable; children-glob + negation instead)
# Local notes under docs/ stay ignored; the consumer contract page ships.
# A children glob, not a bare `docs` pattern, so the negation can apply.
docs/*
!docs/standalone-extraction.md
# Personal agent configuration is linked from ~/.agents/projects/animus/.
Expand All @@ -91,9 +79,8 @@ docs/*
.collision-report.json
.repowise/

# OpenSpec planning lives in the shared store; only its pointer ships.
/openspec/*
!/openspec/config.yaml
# A failing parity run writes its report here
packages/_parity/last-failure.txt

# local benchmark harness — generated fixture trees, oracles, and results
# stay machine-local (narrow to packages/_bench/generated* if bench source
Expand Down
3 changes: 0 additions & 3 deletions .repowiseIgnore
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# Archived packages retained for reference only.
legacy/

# NAPI-RS generated bindings.
packages/extract/crates/extractor/index.d.ts

Expand Down
Loading
Loading