Skip to content
Open
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
38 changes: 38 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Dependabot configuration (M021E).
#
# Nothing here auto-merges, and there is no auto-merge workflow in
# `.github/workflows/`. A dependency PR is a proposal: it must pass the full
# `verify` matrix, the boundary lanes, and the `dependency-policy` advisory
# gate, and it is reviewed like any other change. The transport artifacts
# pinned in the root `Cargo.toml` are bumped only through a plan with a closure
# record (see `docs/release-process.md`), so a Dependabot PR that touches one
# of them is a prompt for that process, not an instruction to merge.
version: 2
updates:
- package-ecosystem: github-actions
directory: /
schedule:
interval: weekly
# One grouped PR per week keeps SHA-pin churn reviewable as a single diff.
groups:
github-actions:
patterns: ["*"]
open-pull-requests-limit: 3
commit-message:
prefix: "ci"

- package-ecosystem: cargo
directory: /
schedule:
interval: weekly
# Only patch updates are grouped. Grouping minor/major bumps would produce
# exactly the broad lockfile update M020 forbids and could move a
# transport pin without a plan; those arrive as individual PRs instead.
# The open-PR limit bounds the churn either way.
groups:
cargo-patch:
patterns: ["*"]
update-types: ["patch"]
open-pull-requests-limit: 5
commit-message:
prefix: "deps"
73 changes: 56 additions & 17 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,22 @@
name: CI

# Third-party actions are pinned to immutable commit SHAs; the trailing comment
# names the release the SHA was resolved from. `dtolnay/rust-toolchain`
# publishes no releases, so its SHA is the reviewed tip of the `stable` branch
# and the toolchain itself is selected by the `toolchain` input (the action
# defaults to `stable` when the input is omitted).
on:
push:
pull_request:
schedule:
# Weekly advisory refresh (M021E): a new RUSTSEC entry fails the
# `dependency-policy` job even when the tree has not changed.
- cron: '17 5 * * 1'

# Least privilege: every job reads the repository and nothing else. No job
# needs a write scope, an Actions secret, or an OIDC token.
permissions:
contents: read

jobs:
verify:
Expand All @@ -18,8 +32,8 @@ jobs:
toolchain: "1.89.0"
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
- uses: dtolnay/rust-toolchain@39008827e6b4319a349e9a42dfc90579dd25f1ca # stable
with:
toolchain: ${{ matrix.toolchain }}
components: rustfmt, clippy
Expand Down Expand Up @@ -48,14 +62,14 @@ jobs:
toolchain: stable
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
- uses: dtolnay/rust-toolchain@39008827e6b4319a349e9a42dfc90579dd25f1ca # stable
with:
toolchain: ${{ matrix.toolchain }}
- uses: actions/setup-python@v5
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
with:
python-version: ${{ matrix.python }}
- uses: astral-sh/setup-uv@v6
- uses: astral-sh/setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e # v6.8.0
with:
version: '0.8.22'
- run: uv run --directory crates/eggreplay-python --with maturin==1.14.1 --with pytest==8.4.2 --with pytest-asyncio==1.2.0 --with pytest-xdist==3.8.0 maturin develop
Expand Down Expand Up @@ -105,17 +119,17 @@ jobs:
python-abi3-cross-version:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: actions/setup-python@v5
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
- uses: dtolnay/rust-toolchain@39008827e6b4319a349e9a42dfc90579dd25f1ca # stable
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
with:
python-version: '3.11'
- uses: astral-sh/setup-uv@v6
- uses: astral-sh/setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e # v6.8.0
with:
version: '0.8.22'
- name: Build abi3 wheel under CPython 3.11
run: uv run --directory crates/eggreplay-python --python 3.11 --with maturin==1.14.1 maturin build --locked --out $GITHUB_WORKSPACE/target/python-wheels
- uses: actions/setup-python@v5
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
with:
python-version: '3.14'
- name: Install the same wheel under CPython 3.14
Expand All @@ -126,8 +140,8 @@ jobs:
dependency-boundary:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
- uses: dtolnay/rust-toolchain@39008827e6b4319a349e9a42dfc90579dd25f1ca # stable
with:
toolchain: stable
# Core/store must not pull transport runtimes.
Expand Down Expand Up @@ -162,8 +176,8 @@ jobs:
# pipe/`&&`/`||` chains portable across runners.
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
- uses: dtolnay/rust-toolchain@39008827e6b4319a349e9a42dfc90579dd25f1ca # stable
with:
toolchain: stable
- name: Ordinary profiles exclude the EggServe Core multiprotocol closure
Expand Down Expand Up @@ -366,6 +380,31 @@ jobs:
fi
echo "inbound H2 and the gRPC view are both opt-in"

dependency-policy:
# M021E supply-chain gate: advisories and yanked crates, licenses,
# duplicate crates (reported, not banned), and crate sources. Deliberately
# separate from `dependency-boundary`/`protocol-boundary`, which assert
# transport and capability boundaries rather than dependency policy. The
# weekly `schedule` trigger makes a new advisory fail an unchanged tree;
# the known exceptions are reasoned entries in `deny.toml`.
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
- uses: dtolnay/rust-toolchain@39008827e6b4319a349e9a42dfc90579dd25f1ca # stable
with:
toolchain: stable
- name: Install pinned cargo-deny
# A tool update must be a reviewed change: no floating install and no
# `@latest` action. 0.20.2 is the version the policy in `deny.toml`
# was validated against.
run: cargo install cargo-deny --locked --version 0.20.2
- name: Dependency policy (advisories, bans, licenses, sources)
# `deny.toml` sets `all-features = true`, so this covers the widest
# workspace graph without repeating the flag here.
run: cargo deny check advisories bans licenses sources

interception:
# M013F qualification lane: deterministic local CA/CONNECT/MITM coverage
# that the ordinary all-features matrix also runs, pinned here so the
Expand All @@ -377,8 +416,8 @@ jobs:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
- uses: dtolnay/rust-toolchain@39008827e6b4319a349e9a42dfc90579dd25f1ca # stable
with:
components: rustfmt, clippy
# Minimum-feature graphs: default builds stay interception-free (tree
Expand Down
48 changes: 48 additions & 0 deletions .github/workflows/fuzz.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Fuzz smoke

# Bounded parser fuzzing (M021C harnesses, M021E lane). This is deliberately
# NOT a pull-request gate: a nightly toolchain and sanitizer build are too slow
# and too variable to block every change. A crash uploads its reproducer and
# fails the job, so a green scheduled run is evidence, not a proof of absence.

on:
workflow_dispatch:
schedule:
# Weekly, off the main CI schedule.
- cron: '41 4 * * 2'

permissions:
contents: read

jobs:
fuzz:
name: fuzz (${{ matrix.target }})
runs-on: ubuntu-latest
permissions:
contents: read
strategy:
fail-fast: false
matrix:
target: [har_import, session_open, websocket_transcript]
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
- uses: dtolnay/rust-toolchain@39008827e6b4319a349e9a42dfc90579dd25f1ca # stable
with:
toolchain: nightly
- name: Install pinned cargo-fuzz
# A tool update is a reviewed change, matching the dependency-policy
# job's pinned `cargo-deny`.
run: cargo install cargo-fuzz --locked --version 0.13.2
- name: Fuzz ${{ matrix.target }} for 60 seconds
working-directory: fuzz
run: cargo fuzz run ${{ matrix.target }} -- -max_total_time=60 -max_len=4096
- name: Upload corpus and crash artifacts
if: always()
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: fuzz-${{ matrix.target }}
path: |
fuzz/corpus/${{ matrix.target }}
fuzz/artifacts/${{ matrix.target }}
if-no-files-found: ignore
retention-days: 14
30 changes: 17 additions & 13 deletions .github/workflows/python-wheels.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: Python wheel qualification

# Third-party actions are pinned to immutable commit SHAs; the trailing comment
# names the release the SHA was resolved from. `dtolnay/rust-toolchain`
# publishes no releases, so its SHA is the reviewed tip of the `stable` branch
# (the action installs `stable` when the `toolchain` input is omitted).
on:
workflow_dispatch:
push:
Expand Down Expand Up @@ -40,12 +44,12 @@ jobs:
platform_tag: win_amd64
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: actions/setup-python@v5
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
- uses: dtolnay/rust-toolchain@39008827e6b4319a349e9a42dfc90579dd25f1ca # stable
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
with:
python-version: '3.11'
- uses: astral-sh/setup-uv@v6
- uses: astral-sh/setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e # v6.8.0
with:
version: '0.8.22'
- name: Verify native runner architecture
Expand All @@ -58,7 +62,7 @@ jobs:
run: python tools/python/clean_wheel_smoke.py --wheel crates/eggreplay-python/target/python-release/${{ matrix.target }} --smoke-script tools/python/wheel_smoke.py
- name: Record artifact hash
run: python tools/python/write_artifact_manifest.py crates/eggreplay-python/target/python-release/${{ matrix.target }} --pattern '*.whl'
- uses: actions/upload-artifact@v4
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: eggreplay-${{ matrix.target }}
path: crates/eggreplay-python/target/python-release/${{ matrix.target }}
Expand All @@ -68,12 +72,12 @@ jobs:
source-distribution:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: actions/setup-python@v5
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
- uses: dtolnay/rust-toolchain@39008827e6b4319a349e9a42dfc90579dd25f1ca # stable
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
with:
python-version: '3.11'
- uses: astral-sh/setup-uv@v6
- uses: astral-sh/setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e # v6.8.0
with:
version: '0.8.22'
- name: Build source distribution and wheel from the sdist
Expand All @@ -82,7 +86,7 @@ jobs:
run: python tools/python/inspect_sdist.py crates/eggreplay-python/target/python-sdist-verify/*.tar.gz
- name: Record source archive hash
run: python tools/python/write_artifact_manifest.py crates/eggreplay-python/target/python-sdist-verify --pattern '*.tar.gz'
- uses: actions/upload-artifact@v4
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: eggreplay-sdist
path: |
Expand All @@ -99,11 +103,11 @@ jobs:
matrix:
python: ['3.11', '3.12', '3.13', '3.14']
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
with:
python-version: ${{ matrix.python }}
- uses: actions/download-artifact@v4
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
with:
name: eggreplay-manylinux-x86_64
path: target/python-wheel-smoke
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/target/
*.eggr/
*.har
.venv/
__pycache__/
.pytest_cache/
Expand Down
Loading
Loading