CI / Build and test (pull_request) Successful in 5m59s
CI / Windows tests and installer (pull_request) Skipped
CI / YAML check (pull_request) Successful in 5s
CI / PostgreSQL 16 integration (pull_request) Failing after 6m56s
CI / PostgreSQL 17 integration (pull_request) Failing after 3m47s
CI / Docker image (pull_request) Successful in 1m56s
The Data and Server tests bind libsqlite3.so.0, which GitHub's runner had and the SDK image does not. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
65 lines
2.2 KiB
YAML
65 lines
2.2 KiB
YAML
name: Performance gates
|
|
|
|
# BRIEF §1.1 and the Phase 2/3 gates on a synthetic 500,000-photo library (SQLite and PostgreSQL 17) and a
|
|
# 100,000-frame archive rebuild from sidecars. Too slow for every push: weekly and on demand. The timings are printed
|
|
# at the end of the log (Gitea shows no job summary).
|
|
on:
|
|
schedule:
|
|
- cron: "41 3 * * 1"
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
env:
|
|
DOTNET_NOLOGO: "1"
|
|
DOTNET_CLI_TELEMETRY_OPTOUT: "1"
|
|
|
|
jobs:
|
|
perf:
|
|
name: Library and rebuild gates
|
|
runs-on: ubuntu-latest
|
|
container:
|
|
image: mcr.microsoft.com/dotnet/sdk:10.0
|
|
timeout-minutes: 120
|
|
services:
|
|
postgres:
|
|
image: postgres:17
|
|
env:
|
|
POSTGRES_USER: chronos
|
|
POSTGRES_PASSWORD: chronos-ci
|
|
POSTGRES_DB: chronos_perf
|
|
defaults:
|
|
run:
|
|
shell: bash
|
|
env:
|
|
CHRONOS_PERF: "1"
|
|
CHRONOS_TEST_PG: Host=postgres;Port=5432;Database=chronos_perf;Username=chronos;Password=chronos-ci;SslMode=disable
|
|
steps:
|
|
- name: Checkout
|
|
env:
|
|
TOKEN: ${{ github.token }}
|
|
run: |
|
|
git config --global --add safe.directory "$PWD"
|
|
git init -q .
|
|
git remote add origin "${{ github.server_url }}/${{ github.repository }}.git"
|
|
git -c http.extraheader="Authorization: basic $(printf 'x-access-token:%s' "$TOKEN" | base64 -w0)" fetch -q --depth=1 origin "${{ github.sha }}"
|
|
git checkout -q FETCH_HEAD
|
|
|
|
# Chronos.Data binds the system SQLite library (BRIEF §6.2), which the SDK image lacks.
|
|
- name: System SQLite
|
|
run: apt-get update -qq && DEBIAN_FRONTEND=noninteractive apt-get install -y -qq --no-install-recommends libsqlite3-0 > /dev/null
|
|
|
|
- name: Build
|
|
run: dotnet build tests/Chronos.Data.Tests -c Release -m:4
|
|
|
|
- name: Perf tests (SQLite, PostgreSQL 17)
|
|
run: |
|
|
dotnet run --project tests/Chronos.Data.Tests -c Release --no-build -- --filter category:perf --verbose --junit out/junit/perf.xml | tee out-perf.log
|
|
|
|
- name: Timings
|
|
if: always()
|
|
run: |
|
|
echo "Performance gates"
|
|
if grep -q "perf:" out-perf.log 2>/dev/null; then grep -h "perf:" out-perf.log | sed 's/^ *//'; else echo "no timings recorded"; fi
|