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
7 changes: 6 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,12 @@ jobs:

- name: Test repository scripts
if: needs.changes.result != 'success' || needs.changes.outputs.scripts == 'true'
run: node --test scripts/*.test.mjs
run: |
node --test scripts/*.test.mjs
bash scripts/tests/convert-heliodor-bench.sh
bash scripts/tests/run-heliodor-bench-results.sh
bash scripts/tests/run-heliodor-bench-gate.sh
python3 -m unittest discover -s .updatecli/tests -v

# A new dependency edge can invalidate the NAPI exclusions or the
# backend and frontend variants that pull requests narrow celox to.
Expand Down
13 changes: 5 additions & 8 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,22 @@ name: CodeQL

# Enable CODEQL_ADVANCED_ENABLED only after disabling GitHub's default setup.
# See CONTRIBUTING.md for the cutover and rollback procedure.
# Code scanning does not gate merges, so it runs on a schedule rather than PRs.
on:
pull_request:
paths:
- ".github/workflows/**"
- ".github/actions/**"
schedule:
- cron: "17 4 * * 0"
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name == 'pull_request' && 'pr' || 'full' }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false

permissions:
contents: read

jobs:
analyze:
if: vars.CODEQL_ADVANCED_ENABLED == 'true' && !startsWith(github.head_ref, 'mergify/merge-queue/')
if: vars.CODEQL_ADVANCED_ENABLED == 'true'
name: Analyze (${{ matrix.language }})
runs-on: ubuntu-latest
timeout-minutes: 45
Expand All @@ -31,7 +28,7 @@ jobs:
fail-fast: false
max-parallel: 2
matrix:
language: ${{ fromJSON(github.event_name == 'pull_request' && '["actions"]' || '["actions", "c-cpp", "javascript-typescript", "python", "rust"]') }}
language: [actions, c-cpp, javascript-typescript, python, rust]
steps:
- uses: actions/checkout@v7
with:
Expand Down
42 changes: 2 additions & 40 deletions .github/workflows/heliodor-bench.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,6 @@
name: Heliodor Benchmark

on:
pull_request:
paths:
- ".github/actions/setup-rust/**"
- ".github/workflows/heliodor-bench.yml"
- ".github/workflows/bench.yml"
- "scripts/benchmark-workflows.test.mjs"
- "scripts/publish-bench.mjs"
- "scripts/convert-heliodor-bench.mjs"
- "scripts/heliodor-revision"
- "scripts/publish-heliodor-bench.mjs"
- "scripts/publish-heliodor-bench.test.mjs"
- "scripts/heliodor-suite.mjs"
- "scripts/heliodor-suite.test.mjs"
- "scripts/run-heliodor-bench.sh"
- "scripts/tests/convert-heliodor-bench.sh"
- "scripts/tests/run-heliodor-bench-results.sh"
- "scripts/tests/run-heliodor-bench-gate.sh"
schedule:
- cron: "37 2 * * *"
workflow_dispatch:
Expand Down Expand Up @@ -57,8 +40,8 @@ env:
# Measurement workflows have independent queues; publishers retry against the
# latest gh-pages tip instead of locking the entire suite behind other benches.
concurrency:
group: ${{ (inputs.suite_test || inputs.suite_runner || inputs.suite_arch) && format('heliodor-suite-{0}-{1}-{2}-{3}', github.ref, inputs.suite_test, inputs.suite_runner, inputs.suite_arch) || inputs.arm64_profile && format('heliodor-arm64-profile-{0}', github.ref) || github.event_name == 'pull_request' && format('heliodor-pr-{0}', github.event.pull_request.number) || format('heliodor-bench-{0}', github.ref) }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
group: ${{ (inputs.suite_test || inputs.suite_runner || inputs.suite_arch) && format('heliodor-suite-{0}-{1}-{2}-{3}', github.ref, inputs.suite_test, inputs.suite_runner, inputs.suite_arch) || inputs.arm64_profile && format('heliodor-arm64-profile-{0}', github.ref) || format('heliodor-bench-{0}', github.ref) }}
cancel-in-progress: false

jobs:
validate-dispatch:
Expand All @@ -80,27 +63,6 @@ jobs:
SUITE_ARCH: ${{ inputs.suite_arch }}
run: node scripts/heliodor-suite.mjs validate

converter-test:
name: Test Heliodor result conversion
if: github.event_name == 'pull_request'
permissions:
contents: read
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7

- uses: actions/setup-node@v7
with:
node-version: 24

- name: Test benchmark conversion fixtures
shell: bash
run: |
node --test scripts/benchmark-workflows.test.mjs scripts/heliodor-suite.test.mjs scripts/publish-heliodor-bench.test.mjs
bash scripts/tests/convert-heliodor-bench.sh
bash scripts/tests/run-heliodor-bench-results.sh
bash scripts/tests/run-heliodor-bench-gate.sh

# The stable daily suite already covers this pinned workload. Develop runs
# its smaller fixed gate daily to check the Veryl HEAD lane without duplicating
# the full suite. Explicit suite selections and profiling remain manual.
Expand Down
97 changes: 63 additions & 34 deletions .github/workflows/lydite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,18 @@ name: lydite
# linted by ci.yml; this workflow owns Lydite tests and conformance gates.

on:
# Select affected lanes on changes; run every lane weekly and on demand.
# PRs select affected lanes; the heavy bridge runs on PRs only for Lydite-owned
# changes. Daily and manual runs enable every lane and report failures.
pull_request:
merge_group:
schedule:
- cron: "41 3 * * 1"
- cron: "41 3 * * *"
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
# A new push must not cancel the daily full run halfway through its corpus.
group: ${{ github.workflow }}-${{ github.ref }}-${{ (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') && 'full' || 'changes' }}
cancel-in-progress: ${{ github.event_name != 'schedule' && github.event_name != 'workflow_dispatch' }}

permissions:
contents: read
Expand Down Expand Up @@ -129,31 +131,8 @@ jobs:
timeout-minutes: 5
run: xvfb-run -a npm test --prefix editor/vscode

# celox-replay and veryl-proof use the in-tree Celox; the narrow veryl gate
# checks lydite's own Veryl lowering against a pinned upstream corpus.
celox-replay:
needs: changes
if: always() && (needs.changes.result != 'success' || needs.changes.outputs.bridge == 'true')
runs-on: ubuntu-26.04
timeout-minutes: 30
steps:
- uses: actions/checkout@v7
with:
persist-credentials: false
- uses: ./.github/actions/setup-rust
with:
components: rustfmt
- name: Reproduce source violations and AXI4-Lite protocol regressions with Celox
run: ./conformance/axi4lite/run_ci.sh "$RUNNER_TEMP/celox-replay"
- name: Upload complete replay evidence
if: always()
uses: actions/upload-artifact@v7
with:
name: celox-replay-${{ github.run_id }}-${{ github.run_attempt }}
path: ${{ runner.temp }}/celox-replay/
if-no-files-found: error
retention-days: 14

# The narrow veryl gate checks lydite's own Veryl lowering against a pinned
# upstream corpus.
veryl-fv:
needs: changes
if: always() && (needs.changes.result != 'success' || needs.changes.outputs.core == 'true')
Expand Down Expand Up @@ -181,42 +160,64 @@ jobs:
if-no-files-found: error
retention-days: 14

veryl-proof-corpus:
# The bridge lanes use the in-tree Celox and share one release build.
bridge:
needs: changes
if: always() && (needs.changes.result != 'success' || needs.changes.outputs.bridge == 'true')
runs-on: ubuntu-26.04
# Cold builds plus the sequential proof/mutation gates can exceed one hour.
timeout-minutes: 120
# Cold builds plus replay and the sequential proof/mutation gates.
timeout-minutes: 150
steps:
- uses: actions/checkout@v7
with:
persist-credentials: false
- uses: ./.github/actions/setup-rust
with:
components: rustfmt
- name: Reproduce source violations and AXI4-Lite protocol regressions with Celox
run: ./conformance/axi4lite/run_ci.sh "$RUNNER_TEMP/celox-replay"
- name: Upload complete replay evidence
if: always()
uses: actions/upload-artifact@v7
with:
name: celox-replay-${{ github.run_id }}-${{ github.run_attempt }}
path: ${{ runner.temp }}/celox-replay/
if-no-files-found: error
retention-days: 14

# Keep collecting proof evidence after a replay failure.
# The conformance gates are pinned to Python 3.12.
- uses: actions/setup-python@v7
if: ${{ !cancelled() }}
with:
python-version: "3.12"
- name: Run every reusable suite case with proof-backed reads
if: ${{ !cancelled() }}
run: ./conformance/veryl-proof/run_ci.sh "$RUNNER_TEMP/veryl-proof"
- name: Verify symbolic Veryl pipeline against ISA and reject RTL mutants
if: ${{ !cancelled() }}
run: ./conformance/veryl-symbolic/run_ci.sh "$RUNNER_TEMP/veryl-symbolic"
- name: Verify typed lemma candidates and proof-use diagnostics
if: ${{ !cancelled() }}
run: python3 -m audit.lemma_candidates.ci --out "$RUNNER_TEMP/lemma-candidates"
- name: Verify selected RV32I architecture, memory, latency and mutations
if: ${{ !cancelled() }}
run: ./conformance/veryl-symbolic/run_rv32i_ci.sh "$RUNNER_TEMP/selected-rv32i"
- name: Verify fixed automatic-proof held-outs and original-formula mutants
if: ${{ !cancelled() }}
run: ./conformance/veryl-symbolic/run_automatic_ci.sh "$RUNNER_TEMP/automatic-proof"
- name: Verify checked equality sharing and retain explicit Unknown diagnostics
if: ${{ !cancelled() }}
run: |
python3 -m unittest audit.equality_sharing.test_generate audit.equality_sharing.test_evidence audit.equality_sharing.test_ci
python3 -m audit.equality_sharing.ci --checker ../target/release/lydite --out "$RUNNER_TEMP/equality-sharing"
- name: Verify whole-word frontier controls and original-formula mutants
if: ${{ !cancelled() }}
run: |
python3 -m unittest audit.word_frontier.test_generate audit.word_frontier.test_ci
python3 -m audit.word_frontier.ci --checker ../target/release/lydite --expected-checker-sha256 "$(sha256sum ../target/release/lydite | cut -d' ' -f1)" --out "$RUNNER_TEMP/word-frontier"
- name: Verify guarded word expansion and reject escaped guards
if: ${{ !cancelled() }}
run: |
cargo test --release --locked -p lydite-solver equality_sharing::tests
python3 -m unittest audit.guarded_expansion.test_generate audit.guarded_expansion.test_ci
Expand All @@ -240,7 +241,7 @@ jobs:

result:
name: Lydite checks
needs: [changes, rust, documentation, editor, celox-replay, veryl-fv, veryl-proof-corpus]
needs: [changes, rust, documentation, editor, veryl-fv, bridge]
if: always()
runs-on: ubuntu-26.04
defaults:
Expand All @@ -256,8 +257,36 @@ jobs:
needs = json.loads(os.environ["NEEDS"])
assert needs["changes"]["result"] == "success", needs
assert all(needs["changes"]["outputs"].get(key) in ("true", "false") for key in ("core", "bridge")), needs
for job, lane in {"rust": None, "documentation": "core", "editor": "core", "celox-replay": "bridge", "veryl-fv": "core", "veryl-proof-corpus": "bridge"}.items():
for job, lane in {"rust": None, "documentation": "core", "editor": "core", "veryl-fv": "core", "bridge": "bridge"}.items():
outputs = needs["changes"]["outputs"]
selected = outputs.get(lane) == "true" if lane else any(outputs.get(key) == "true" for key in ("core", "bridge"))
assert needs[job]["result"] == ("success" if selected else "skipped"), (job, needs[job])
PYCODE

# Report daily/manual runs; the bridge does not gate Celox PRs.
report:
name: Report Lydite validation
needs: [changes, rust, documentation, editor, veryl-fv, bridge, result]
if: ${{ !cancelled() && (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') && (github.ref_name == 'master' || github.ref_name == 'develop') }}
runs-on: ubuntu-26.04
permissions:
contents: read
issues: write
defaults:
run:
working-directory: .
steps:
- uses: actions/checkout@v7
with:
persist-credentials: false
sparse-checkout: scripts

- name: Open, update, or close the Lydite issue
env:
GH_TOKEN: ${{ github.token }}
NEEDS: ${{ toJSON(needs) }}
BRANCH: ${{ github.ref_name }}
SHA: ${{ github.sha }}
RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
REPORT_NAME: Lydite validation
run: node scripts/report-full-ci.mjs
11 changes: 11 additions & 0 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,17 @@ jobs:
- name: Dispatch full CI on develop
run: gh workflow run ci.yml --repo "$GITHUB_REPOSITORY" --ref develop

# lydite.yml schedules the default branch itself; its bridge lanes do not run
# for Celox PRs, so check develop's in-tree Celox daily as well.
queue-lydite-develop:
name: Queue develop Lydite validation
runs-on: ubuntu-latest
env:
GH_TOKEN: ${{ github.token }}
steps:
- name: Dispatch every Lydite lane on develop
run: gh workflow run lydite.yml --repo "$GITHUB_REPOSITORY" --ref develop

# heliodor-bench.yml schedules the stable master lane directly. Dispatch the
# develop ref here for the small pinned/HEAD Linux boot compatibility gates.
queue-heliodor-develop:
Expand Down
14 changes: 4 additions & 10 deletions .github/workflows/update-mbx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,16 @@ on:
schedule:
- cron: "37 5 * * *"
workflow_dispatch:
pull_request:
paths:
- "flake.nix"
- "flake.lock"
- ".github/workflows/update-mbx.yml"
merge_group:

permissions:
contents: read

concurrency:
group: update-mbx-${{ github.event.pull_request.number || github.ref }}
group: update-mbx-${{ github.ref }}
cancel-in-progress: false

jobs:
update:
if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
Expand Down Expand Up @@ -79,13 +72,14 @@ jobs:
`${{ steps.update.outputs.old-version }}` to `${{ steps.update.outputs.new-version }}`.

Validated the locked flake for both Linux architectures and built
and ran mbx on x86_64. PR checks also run mbx on ARM64.
and ran mbx on x86_64. The daily run also builds and runs the
committed mbx on ARM64.
Other flake inputs remain pinned. Package-definition changes may
update the lock even when the mbx version is unchanged.

# Not a merge gate: check the committed lock on both architectures daily.
validate:
name: Validate mbx (${{ matrix.runner }})
if: github.event_name == 'pull_request' || github.event_name == 'merge_group'
strategy:
fail-fast: false
matrix:
Expand Down
40 changes: 0 additions & 40 deletions .github/workflows/updatecli-check.yml

This file was deleted.

5 changes: 3 additions & 2 deletions .updatecli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ export UPDATECLI_GITHUB_ACTOR=...
updatecli pipeline diff --config .updatecli/updatecli.d
```

Pull request validation uses the read-only `GITHUB_TOKEN`. Scheduled and manual
updates mint a short-lived token for the `celox-automation` GitHub App from the
Pull requests run the selector unit tests in the required `Lint & Format`
check. The weekly and manual `updatecli.yml` runs repeat those tests and preview
the policy before applying it. Scheduled and manual updates mint a short-lived token for the `celox-automation` GitHub App from the
existing `RELEASE_APP_ID` variable and `RELEASE_APP_PRIVATE_KEY` secret. Pull
requests created with that installation token trigger the regular CI workflows.
Loading
Loading