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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 7 additions & 8 deletions .github/actions/checks-lane/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@ runs:
using: composite
steps:
- uses: cachix/install-nix-action@13d8dd58da0234aa297dedd986986ccb8e7f3e24 # v31.11.1
if: inputs.lane == 'plan' || inputs.lane == 'timings' || inputs.lane == 'build'
if: inputs.lane == 'plan' || inputs.lane == 'timings' || inputs.lane == 'build' || inputs.lane == 'lint' || inputs.lane == 'typecheck' || inputs.lane == 'test'
with:
extra_nix_config: |
extra-substituters = https://nix.systemfsoftware.com
extra-trusted-public-keys = nix-cache-1:wXA8I4DayNW9q6enUyQA/P/nT38pGSTLt374t3gsn7M=
- name: The test-timings planner from the flake
if: inputs.lane == 'plan' || inputs.lane == 'timings'
shell: bash -e {0}
Expand All @@ -26,18 +30,13 @@ runs:
shell: bash -e {0}
run: echo "$(nix build --no-link --print-out-paths .#attw)/bin" >> "$GITHUB_PATH"

- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
if: inputs.lane == 'lint' || inputs.lane == 'typecheck' || inputs.lane == 'build' || inputs.lane == 'test'
with:
name: sfs-deps
path: .sfs-deps
- uses: pnpm/action-setup@ea17c68df8912ef543352723c149a84f56e3d413 # v6.1.0
if: inputs.lane == 'plan' || inputs.lane == 'lint' || inputs.lane == 'typecheck' || inputs.lane == 'build' || inputs.lane == 'test'
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
if: inputs.lane == 'plan' || inputs.lane == 'lint' || inputs.lane == 'typecheck' || inputs.lane == 'build' || inputs.lane == 'test'
with:
node-version: 24
- name: Install from the lockfile and the flake's tarballs
- name: Install from the lockfile; the dev shell copies in the producer tarballs
if: inputs.lane == 'lint' || inputs.lane == 'typecheck' || inputs.lane == 'build' || inputs.lane == 'test'
shell: bash -e {0}
run: pnpm install --frozen-lockfile
run: nix develop --command pnpm install --frozen-lockfile
6 changes: 3 additions & 3 deletions .github/workflows/changeset-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ permissions:

jobs:
check:
uses: systemfsoftware/pnpm-release-management/.github/workflows/changeset-check.yml@b9b4a1d48cc16241b33f9afd8ab99b82b05ce04f
uses: systemfsoftware/pnpm-release-management/.github/workflows/changeset-check.yml@741c8c4334c261058dd4a3b2976c9f2e3796d523
with:
# The lockfile installs `file:.sfs-deps` tarballs, which the dev shell
# copies in from this repository's flake.
# The lockfile installs `file:.deps` tarballs, which the dev shell copies in
# from this repository's flake.
devshell: true
45 changes: 9 additions & 36 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,37 +15,13 @@ concurrency:
cancel-in-progress: true

jobs:
# The @systemfsoftware tarballs the lockfile installs from, built by this
# repository's flake from its pinned systemfsoftware and stryker-js-effect
# commits. The tarballs are architecture-independent, so one build serves
# every job below.
sfs-deps:
name: systemfsoftware tarballs from the flake
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: cachix/install-nix-action@13d8dd58da0234aa297dedd986986ccb8e7f3e24 # v31.11.1
- name: Build the tarballs the lockfile names
run: cp -rL "$(nix build --no-link --print-out-paths .#sfs-deps)" .sfs-deps
- name: The lockfile's recorded integrities match the flake's tarballs
run: nix build --no-link .#checks.x86_64-linux.consumer-store
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: sfs-deps
path: .sfs-deps/
retention-days: 1
include-hidden-files: true
if-no-files-found: error

# Lint, typecheck, build with attw, and the test jobs the planner packs from
# recorded timings. Each phase runs .github/actions/checks-lane.
checks:
needs: sfs-deps
permissions:
contents: read
actions: read
uses: systemfsoftware/systemfsoftware/.github/workflows/reusable-checks.yml@732f66a0c85819b2005f9e0930a595bc4de91ee1
uses: systemfsoftware/systemfsoftware/.github/workflows/reusable-checks.yml@b146694efe1139948c03bd9e9e366c725252c0d1
with:
lanes: '[{"id": "lint", "name": "lint", "timeout-minutes": 10, "run": "pnpm lint"}, {"id": "typecheck", "name": "typecheck", "timeout-minutes": 10, "run": "pnpm typecheck"}, {"id": "build", "name": "build · attw", "timeout-minutes": 10, "run": "pnpm build && pnpm --filter @systemfsoftware/api-extractor attw"}]'
timeout-minutes: 10
Expand All @@ -54,7 +30,6 @@ jobs:

host-bytes:
name: Output bytes on ${{ matrix.arch }}
needs: sfs-deps
strategy:
matrix:
include:
Expand All @@ -66,18 +41,16 @@ jobs:
timeout-minutes: 10
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
name: sfs-deps
path: .sfs-deps
- uses: pnpm/action-setup@ea17c68df8912ef543352723c149a84f56e3d413 # v6.1.0
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
- uses: cachix/install-nix-action@13d8dd58da0234aa297dedd986986ccb8e7f3e24 # v31.11.1
with:
node-version: 24
cache: pnpm
- run: pnpm install --frozen-lockfile
extra_nix_config: |
extra-substituters = https://nix.systemfsoftware.com
extra-trusted-public-keys = nix-cache-1:wXA8I4DayNW9q6enUyQA/P/nT38pGSTLt374t3gsn7M=
# The dev shell copies the producer tarballs into .deps/ before pnpm runs.
- name: Install from the lockfile and the producer tarballs
run: nix develop --command pnpm install --frozen-lockfile
- name: Serialise a fixed-seed sample of models and verdicts
run: node --conditions=@systemfsoftware/source apps/api-extractor-e2e/host-digest.ts > host-output.bin
run: nix develop --command node --conditions=@systemfsoftware/source apps/api-extractor-e2e/host-digest.ts > host-output.bin
- run: sha256sum host-output.bin && uname -m
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
Expand Down
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ node_modules/
dist/
coverage/
*.tsbuildinfo
# systemfsoftware tarballs the lockfile installs from: `nix build .#sfs-deps`, copied here
.sfs-deps/
# producer tarballs the lockfile installs from, copied in by the dev shell
.deps/
.cache/
.turbo/
.release/
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ verdict. Requirements and decisions: `docs/plans/2026-10-10-1146-feat-effect-api

## Commands

Run inside the dev shell (`nix develop --command …`), which copies `.sfs-deps/`:
Run inside the dev shell (`nix develop --command …`), which copies the producer tarballs into `.deps/`:

```sh
pnpm run bootstrap # sandboxed pnpm install --frozen-lockfile
Expand Down
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ The design and its requirements live in
| Front-ends (isolated-declarations fast path, TypeScript 7 compiler fallback, model builder, analysis messages) | in this repository |
| `.api.md` report with a differential test against `@microsoft/api-extractor` 7.59.1 | planned |
| Benchmark, CLI, changeset-bump check | planned |
| systemfsoftware and stryker-js-effect packages from the flake (`.sfs-deps`) | in this repository |
| systemfsoftware and stryker-js-effect packages from nix.systemfsoftware.com, copied into `.deps/` by the dev shell | in this repository |
| Lint, typecheck, build and test on systemfsoftware's reusable checks; tsdown, vitest and lint presets | in this repository |
| Releases: changesets and GitHub Releases through pnpm-release-management | in this repository |
| Mutation testing on `main` | waits on systemfsoftware's reusable mutation workflow (#710) |
Expand Down Expand Up @@ -159,10 +159,9 @@ nix develop --command pnpm --filter api-extractor-profile profile <systemfsoftwa

## Development

The `@systemfsoftware/*` packages install from tarballs that this repository's flake
builds from pinned systemfsoftware and stryker-js-effect commits, never from a registry.
The dev shell copies them into `.sfs-deps/`; `bootstrap` installs inside the
pnpm-release-management sandbox:
nix.systemfsoftware.com is the package registry for `@systemfsoftware` packages. This repository
takes them from its flake inputs, pinned to producer commits: the dev shell copies them
into `.deps/`, and `bootstrap` installs inside the pnpm-release-management sandbox:

```sh
nix develop --command pnpm run bootstrap
Expand Down
Loading
Loading