Nothing checked what the program is built from. `just deny` now does, in the lint part of `just check` and weekly in scheduled.yml (an advisory is published when it is, not when we push), from one file, deny.toml: - advisories: no crate in the lock file with a known vulnerability (RustSec), none yanked; an unmaintained crate is refused when it is one of our own direct dependencies. Two advisories are lived with, each with its reason and date: the quick-xml 0.38 that typst's citation reader brings, which no XML from outside reaches. - licences: the permissive ones, plus MPL-2.0 for one unchanged crate (option-ext) and CDLA-Permissive-2.0 for Mozilla's root certificates. No font licence is allowed, so a crate that carries fonts is refused and every font we ship is a file here beside its licence. A crate offering only a copyleft licence is refused. - sources: crates.io and the bookspec repository, nothing else. - bans: no dependency by wildcard version. The crates are marked `publish = false` (one line in the workspace, inherited by all eleven): they are parts of one program, not libraries for crates.io, and with that cargo-deny accepts their path dependencies on each other. cargo-deny 0.20.2 is a build tool pinned in mise.toml, not a dependency of the program. Shown: `just deny` prints advisories ok, bans ok, licenses ok, sources ok on this tree. Co-Authored-By: Claude <noreply@anthropic.com>
73 lines
2.5 KiB
YAML
73 lines
2.5 KiB
YAML
# Weekly, and on demand: the slow layers (docs/testing.md): the proofs,
|
|
# the GnuCash oracle and the fuzz targets. Mutation testing is not run in
|
|
# CI (owner, 2026-10-29, D-59): it is a local run (`just mutants-*`), and
|
|
# P12 runs it whole on the owner's desktop.
|
|
name: scheduled
|
|
on:
|
|
schedule:
|
|
- cron: "17 6 * * 1"
|
|
workflow_dispatch:
|
|
jobs:
|
|
prove:
|
|
runs-on: ubuntu-24.04
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: jdx/mise-action@v2
|
|
- run: just prove
|
|
# The Kani harnesses too slow for prove's 30 minutes on four cores
|
|
# (justfile kani_slow; docs/verification.md), on a runner of their own.
|
|
prove-slow:
|
|
runs-on: ubuntu-24.04
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: jdx/mise-action@v2
|
|
- run: just prove-slow
|
|
# A dependency's advisory is published when it is, not when we push:
|
|
# the same check as in `just check`, so a week is the longest one waits.
|
|
deny:
|
|
runs-on: ubuntu-24.04
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: jdx/mise-action@v2
|
|
- run: just deny
|
|
lean-model:
|
|
runs-on: ubuntu-24.04
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: jdx/mise-action@v2
|
|
- run: WANDERBOOKS_REQUIRE_LEAN=1 just lean-model 256
|
|
oracle:
|
|
runs-on: ubuntu-24.04
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: jdx/mise-action@v2
|
|
- run: just oracle
|
|
# Line, region and branch coverage of the core and the store, against the
|
|
# floor in docs/coverage-floor.md (docs/testing.md). Not a push gate: the
|
|
# instrumented suites are slow, so they run weekly, beside the proofs.
|
|
coverage:
|
|
runs-on: ubuntu-24.04
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: jdx/mise-action@v2
|
|
- run: just coverage
|
|
- run: just coverage-check
|
|
fuzz:
|
|
runs-on: ubuntu-24.04
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
target: [fuzz_journal_line, fuzz_entry_validate, fuzz_op_sequence, fuzz_core_serde, fuzz_store_open, fuzz_store_replay, fuzz_settings_replay, fuzz_import_csv, fuzz_config_parse, fuzz_extract_pdf, fuzz_extract_xlsx, fuzz_http_mcp_request, fuzz_upload_put]
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: jdx/mise-action@v2
|
|
- run: just fuzz ${{ matrix.target }} 600
|
|
# A crash's input is the finding: keep it (the 2026-10-26 run found one
|
|
# in fuzz_store_replay and kept nothing, so it had to be hunted again).
|
|
- if: failure()
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: fuzz-${{ matrix.target }}-artifacts
|
|
path: fuzz/artifacts
|
|
if-no-files-found: ignore
|