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
3 changes: 2 additions & 1 deletion .github/workflows/advisory.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Advisory scan

on:
workflow_call:
schedule:
# Advisories are published independently of our commits, so scan daily.
- cron: "17 6 * * *"
Expand All @@ -14,7 +15,7 @@ permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.event.pull_request.number || github.sha }}
group: ${{ github.workflow }}-advisory-${{ github.event_name == 'pull_request' && github.event.pull_request.number || github.sha }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

jobs:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/application-vaults.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
name: Application vaults

on:
workflow_call:
push:
branches: [main]
pull_request:
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.event.pull_request.number || github.sha }}-${{ github.event_name }}
group: ${{ github.workflow }}-application-vaults-${{ github.event_name == 'pull_request' && github.event.pull_request.number || github.sha }}-${{ github.event_name }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

permissions:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/browser-model.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Browser model

on:
workflow_call:
workflow_dispatch:
pull_request:
paths:
Expand Down Expand Up @@ -40,7 +41,7 @@ permissions:
contents: read

concurrency:
group: browser-model-${{ github.event_name == 'pull_request' && github.event.pull_request.number || github.sha }}
group: ${{ github.workflow }}-browser-model-${{ github.event_name == 'pull_request' && github.event.pull_request.number || github.sha }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

jobs:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/browser-v1-1.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Browser CNN and Workspace vaults

on:
workflow_call:
pull_request:
paths:
- 'crates/**'
Expand Down Expand Up @@ -30,7 +31,7 @@ permissions:
contents: read

concurrency:
group: browser-v1-1-${{ github.event_name == 'pull_request' && github.event.pull_request.number || github.sha }}
group: ${{ github.workflow }}-browser-v1-1-${{ github.event_name == 'pull_request' && github.event.pull_request.number || github.sha }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

jobs:
Expand Down
11 changes: 8 additions & 3 deletions .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
name: Changelog

on:
merge_group:
types: [checks_requested]
pull_request:
types: [opened, synchronize, reopened, edited, labeled, unlabeled, ready_for_review]

permissions:
contents: read

concurrency:
group: changelog-${{ github.event.pull_request.number }}
cancel-in-progress: true
group: changelog-${{ github.event_name }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

jobs:
changelog:
Expand All @@ -19,14 +21,17 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
ref: ${{ github.event.pull_request.head.sha || github.sha }}
fetch-depth: 0
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Test changelog policy
run: python scripts/test-changelog.py
# Queue admission already requires this policy on each constituent PR.
# A merge_group has no single PR body/labels to pass to the checker.
- name: Check PR entry or explicit exemption
if: github.event_name == 'pull_request'
env:
CHANGELOG_BASE: ${{ github.event.pull_request.base.sha }}
run: python scripts/check-changelog.py --event "$GITHUB_EVENT_PATH"
3 changes: 2 additions & 1 deletion .github/workflows/credential-stores.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
name: Native credential stores

on:
workflow_call:
push:
branches: [main]
pull_request:
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.event.pull_request.number || github.sha }}-${{ github.event_name }}
group: ${{ github.workflow }}-credential-stores-${{ github.event_name == 'pull_request' && github.event.pull_request.number || github.sha }}-${{ github.event_name }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

permissions:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/devcontainer.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Development container

on:
workflow_call:
pull_request:
paths:
- ".cursor/Dockerfile"
Expand Down Expand Up @@ -33,7 +34,7 @@ permissions:
packages: read

concurrency:
group: devcontainer-${{ github.event_name == 'pull_request' && github.event.pull_request.number || github.sha }}
group: ${{ github.workflow }}-devcontainer-${{ github.event_name == 'pull_request' && github.event.pull_request.number || github.sha }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

jobs:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/dfv-check.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
name: Verification CLI

on:
workflow_call:
push:
branches: [main, "release/**"]
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.event.pull_request.number || github.sha }}
group: ${{ github.workflow }}-dfv-check-${{ github.event_name == 'pull_request' && github.event.pull_request.number || github.sha }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

jobs:
Expand All @@ -33,6 +34,7 @@ jobs:
done <<< "$files"
fi
fi
if [[ "$GITHUB_EVENT_NAME" == merge_group ]]; then code=true; fi
echo "code=$code" >> "$GITHUB_OUTPUT"
- if: steps.scope.outputs.code == 'true'
id: rust-version
Expand Down
28 changes: 16 additions & 12 deletions .github/workflows/dfv-models.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Model verification

on:
workflow_call:
pull_request:
paths:
- 'crates/core/src/models/**'
Expand All @@ -21,7 +22,7 @@ permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.event.pull_request.number || github.sha }}
group: ${{ github.workflow }}-dfv-models-${{ github.event_name == 'pull_request' && github.event.pull_request.number || github.sha }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

jobs:
Expand Down Expand Up @@ -241,30 +242,33 @@ jobs:
- name: Run model eval
run: cargo dfv eval --models --json

- name: Set up Node for nightly parity
if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
- name: Set up Node for full parity
if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' || github.event_name == 'merge_group'
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc

- name: Build Node binding for parity
if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' || github.event_name == 'merge_group'
run: cargo dfv build --sdk node

- name: Install WASM tooling for nightly parity
if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
- name: Install WASM tooling for full parity
if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' || github.event_name == 'merge_group'
run: cargo install wasm-bindgen-cli --version "$(./scripts/pin.sh wasm-bindgen)" --locked

- name: Build WASM binding for parity
if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' || github.event_name == 'merge_group'
run: cargo dfv build --sdk wasm

- name: Install Chromium dependencies for nightly parity
if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
run: npx --prefix bindings/wasm playwright install --with-deps chromium
- name: Install and launch pinned Chromium for full parity
if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' || github.event_name == 'merge_group'
working-directory: bindings/wasm
run: |
node node_modules/playwright/cli.js install chromium
node --input-type=module -e 'import { chromium } from "playwright"; const browser = await chromium.launch(); await browser.close();'

- name: Full live parity check (nightly/manual only)
if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
- name: Full live parity check (nightly/manual/queue)
if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' || github.event_name == 'merge_group'
run: cargo dfv parity --live --full --json

- if: always()
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/fogvault-integration.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Core and FogVault integration

on:
workflow_call:
push:
branches: [main]
pull_request:
Expand All @@ -9,7 +10,7 @@ on:
# PRs, main pushes and manual runs retain separate scopes. No path filters leave
# required checks waiting forever when a change only affects documentation.
concurrency:
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.event.pull_request.number || github.sha }}-${{ github.event_name }}
group: ${{ github.workflow }}-fogvault-integration-${{ github.event_name == 'pull_request' && github.event.pull_request.number || github.sha }}-${{ github.event_name }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

permissions:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/fogvault-native-languages.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Core and FogVault native language packages

on:
workflow_call:
push:
branches: [main]
pull_request:
Expand All @@ -9,7 +10,7 @@ on:
# Every PR receives explicit results, including docs-only changes. Superseded PR
# runs are cancelled; main pushes and manual runs retain their own scopes.
concurrency:
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.event.pull_request.number || github.sha }}-${{ github.event_name }}
group: ${{ github.workflow }}-fogvault-native-languages-${{ github.event_name == 'pull_request' && github.event.pull_request.number || github.sha }}-${{ github.event_name }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

permissions:
Expand Down
13 changes: 9 additions & 4 deletions .github/workflows/fuzz.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Fuzz

on:
workflow_call:
workflow_dispatch:
# Pull requests only build the targets. A fuzz run is nightly work.
pull_request:
Expand All @@ -12,12 +13,12 @@ permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.event.pull_request.number || github.ref }}
group: ${{ github.workflow }}-fuzz-${{ github.event_name == 'pull_request' && github.event.pull_request.number || github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

jobs:
build:
if: github.event_name == 'pull_request'
if: github.event_name == 'pull_request' || github.event_name == 'merge_group'
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
Expand All @@ -33,13 +34,17 @@ jobs:
BASE: ${{ github.event.pull_request.base.sha }}
run: |
code=true
files="$(git diff --name-only "$BASE" "$GITHUB_SHA")"
files=""
if [[ "$GITHUB_EVENT_NAME" == pull_request ]]; then
files="$(git diff --name-only "$BASE" "$GITHUB_SHA")"
fi
if [[ -n "$files" ]]; then
code=false
while IFS= read -r file; do
case "$file" in docs/*|*.md|*.mdx) ;; *) code=true ;; esac
done <<< "$files"
fi
if [[ "$GITHUB_EVENT_NAME" == merge_group ]]; then code=true; fi
echo "code=$code" >> "$GITHUB_OUTPUT"
- if: steps.scope.outputs.code == 'true'
uses: dtolnay/rust-toolchain@nightly
Expand Down Expand Up @@ -70,7 +75,7 @@ jobs:
with:
workspaces: crates/core/fuzz
- name: Install cargo-fuzz
run: cargo install cargo-fuzz --locked --version 0.13.2
run: cargo +nightly install cargo-fuzz --locked --version 0.13.2
- name: Fuzz ${{ matrix.target }} for 60s
# `-max_total_time` is the budget; libFuzzer exits non-zero with the crash
# in `artifacts/<target>/`. Seeds are committed, so a fresh target starts
Expand Down
Loading
Loading