Skip to content
pi-c Artifact [2be07b2f3b]
Login

Artifact [2be07b2f3b]

Artifact 2be07b2f3ba1f00d0b299ece95f59334385d93d04ff01315f436b124dea13229:


# pic CI on the Mac mini runner (macOS arm64): path-scoped checks on every landing and push to trunk.
# Quarry inherits verdicts across merged landings (heirs.verdict) so merged landings do not re-run.
# Full -dev + -rel matrix runs nightly in ci/mac-nightly.yml and ci/linux-nightly.yml.
# Fuzzing runs in parallel when QUARRY_CHANGED touches parser/network/provider/tui/core and an
# LLVM clang with libFuzzer is installed; Fil-C runs separately on hetzner-hel (tools/remote/run.sh).
on:
  landing: {}
  push:
    branches: [trunk]
jobs:
  test:
    timeout-minutes: 45
    steps:
      - name: environment (limits differ under launchd)
        run: |
          id; echo "TMPDIR=$TMPDIR"; ulimit -a; launchctl limit 2>/dev/null || true
      - name: suite (path-scoped dev ASan/UBSan + release smoke/amalgamation)
        run: make test-pic-ci-changed
      - name: fuzz smoke (LLVM clang only, parallel, parser/network/provider/tui/core)
        run: |
          if ! sh tools/ci-select.sh --fuzz; then
            echo "fuzz: skipped, QUARRY_CHANGED did not touch parser/network/provider/tui/core"
          elif [ -x /opt/homebrew/opt/llvm/bin/clang ]; then
            make -j4 build/pic/fuzz/fuzz_decode build/pic/fuzz/fuzz_http build/pic/fuzz/fuzz_chat build/pic/fuzz/fuzz_responses
            pids=""
            for t in fuzz-decode fuzz-http fuzz-chat fuzz-responses; do
              make "$t" FUZZ_SECONDS=20 &
              pids="$pids $!"
            done
            rc=0
            for p in $pids; do
              wait "$p" || rc=1
            done
            [ "$rc" -eq 0 ]
          else
            echo "fuzz: skipped, no LLVM clang with libFuzzer on this runner"
          fi