Skip to content

Commit 6488db7

Browse files
authored
feat(secure-exec): regenerate as agentos-backed compatibility mirror (#279)
1 parent b7d7be7 commit 6488db7

2,037 files changed

Lines changed: 571 additions & 764814 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.claude/skills/publish-registry/SKILL.md

Lines changed: 0 additions & 36 deletions
This file was deleted.

.claude/skills/release-preview/SKILL.md

Lines changed: 0 additions & 34 deletions
This file was deleted.

.claude/skills/release/SKILL.md

Lines changed: 0 additions & 40 deletions
This file was deleted.

.github/workflows/bench.yml

Lines changed: 0 additions & 113 deletions
This file was deleted.

.github/workflows/ci-nightly.yml

Lines changed: 0 additions & 31 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 4 additions & 118 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,3 @@
1-
# INTENTIONAL: the cache-heavy rust/registry jobs here (wasm-commands, rust-lint,
2-
# rust-test, js-test) run on the agent-os self-hosted builders
3-
# (runs-on: [self-hosted, agentos-builder]), NOT GitHub-hosted runners. The cheap
4-
# job (js-checks — typecheck/boundary/publish tests) stays on GitHub Actions,
5-
# which spins up small/dynamically and doesn't need the warm cache.
6-
# agent-os compiles the secure-exec crates (via the prepare-build clone), so both
7-
# repos share ONE warm secure-exec build cache on those boxes — the cargo
8-
# registry, the rusty_v8 V8 prebuilt, and sccache'd crate objects (shared
9-
# CARGO_HOME + SCCACHE_DIR). secure-exec CI warms the cache agent-os reuses, and
10-
# vice versa. On the self-hosted jobs the persistent on-disk target/ + CARGO_HOME
11-
# + sccache replace the GHA cache steps, which is why they're absent there.
121
name: CI
132

143
on:
@@ -17,57 +6,8 @@ on:
176
push:
187
branches: [main]
198

20-
concurrency:
21-
group: ci-${{ github.workflow }}-${{ github.ref }}
22-
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
23-
249
jobs:
25-
# Guest WASM command binaries are needed by both the cargo service tests and
26-
# the JS turbo tests. Build them once here and hand them to both via an
27-
# artifact so neither pays the cold build twice.
28-
wasm-commands:
29-
runs-on: [self-hosted, agentos-builder]
30-
steps:
31-
- uses: actions/checkout@v4
32-
- uses: pnpm/action-setup@v4
33-
- uses: actions/setup-node@v4
34-
with:
35-
node-version: 22
36-
- uses: dtolnay/rust-toolchain@stable
37-
with:
38-
targets: wasm32-wasip1
39-
- run: pnpm install --frozen-lockfile --filter "@secure-exec/core..."
40-
# Cache the built guest WASM commands. `make -C registry/native wasm` is a
41-
# ~4.5min `cargo build -Z build-std` against a PATCHED std + vendored crates,
42-
# so it recompiles std-from-source every run and the persistent target/
43-
# can't warm it — but its OUTPUT is deterministic from the registry command
44-
# sources. Key on those sources: a command/patch/toolchain change rebuilds,
45-
# an unchanged tree restores in seconds. This is the one spot a GHA cache
46-
# beats the on-disk target (the build is uncacheable; the output isn't).
47-
- uses: actions/cache@v4
48-
id: wasm-cache
49-
with:
50-
path: |
51-
packages/core/commands
52-
registry/native/target/wasm32-wasip1/release/commands
53-
key: wasm-commands-v1-${{ hashFiles('registry/native/crates/**', 'registry/native/patches/**', 'registry/native/scripts/**', 'registry/native/Makefile', 'registry/native/Cargo.toml', 'registry/native/Cargo.lock', 'rust-toolchain.toml') }}
54-
- if: steps.wasm-cache.outputs.cache-hit != 'true'
55-
run: make -C registry/native wasm
56-
- if: steps.wasm-cache.outputs.cache-hit != 'true'
57-
run: node packages/core/scripts/copy-wasm-commands.mjs
58-
- uses: actions/upload-artifact@v4
59-
with:
60-
name: wasm-commands
61-
path: |
62-
packages/core/commands
63-
registry/native/target/wasm32-wasip1/release/commands
64-
retention-days: 1
65-
if-no-files-found: error
66-
67-
# Cheap job (typecheck / boundary checks / publish tests, no heavy cargo
68-
# compile) — runs on GitHub-hosted runners, not the self-hosted pool, which is
69-
# reserved for the cache-heavy rust/registry jobs.
70-
js-checks:
10+
static:
7111
runs-on: ubuntu-latest
7212
steps:
7313
- uses: actions/checkout@v4
@@ -77,60 +17,6 @@ jobs:
7717
node-version: 22
7818
cache: pnpm
7919
- uses: dtolnay/rust-toolchain@stable
80-
- uses: Swatinem/rust-cache@v2
81-
with:
82-
workspaces: . -> target
83-
key: js-checks
84-
- run: npx --yes zx@8 scripts/ci.mjs js-checks
85-
- run: node --test scripts/verify-fixed-versions.test.mjs
86-
- run: pnpm --filter=publish exec tsx src/ci/verify-fixed-versions.ts
87-
88-
rust-lint:
89-
runs-on: [self-hosted, agentos-builder]
90-
steps:
91-
- uses: actions/checkout@v4
92-
- uses: pnpm/action-setup@v4
93-
- uses: actions/setup-node@v4
94-
with:
95-
node-version: 22
96-
- uses: dtolnay/rust-toolchain@stable
97-
with:
98-
components: rustfmt, clippy
99-
- run: pnpm install --frozen-lockfile --filter "@secure-exec/build-tools..."
100-
- run: npx --yes zx@8 scripts/ci.mjs rust-lint
101-
102-
rust-test:
103-
runs-on: [self-hosted, agentos-builder]
104-
needs: wasm-commands
105-
steps:
106-
- uses: actions/checkout@v4
107-
- uses: pnpm/action-setup@v4
108-
- uses: actions/setup-node@v4
109-
with:
110-
node-version: 22
111-
- uses: dtolnay/rust-toolchain@stable
112-
- uses: taiki-e/install-action@v2
113-
with:
114-
tool: nextest
115-
- run: pnpm install --frozen-lockfile --filter "@secure-exec/core..." --filter "@secure-exec/build-tools..."
116-
- uses: actions/download-artifact@v4
117-
with:
118-
name: wasm-commands
119-
- run: npx --yes zx@8 scripts/ci.mjs rust-test
120-
env:
121-
NEXTEST_PROFILE: ci
122-
123-
js-test:
124-
runs-on: [self-hosted, agentos-builder]
125-
needs: wasm-commands
126-
steps:
127-
- uses: actions/checkout@v4
128-
- uses: pnpm/action-setup@v4
129-
- uses: actions/setup-node@v4
130-
with:
131-
node-version: 22
132-
- uses: dtolnay/rust-toolchain@stable
133-
- uses: actions/download-artifact@v4
134-
with:
135-
name: wasm-commands
136-
- run: npx --yes zx@8 scripts/ci.mjs js-test
20+
- run: pnpm install --frozen-lockfile
21+
- run: pnpm check-types
22+
- run: cargo check --workspace

0 commit comments

Comments
 (0)