Nightly schedule and trend
A nightly run catches slow drift that a short pull request gate misses: memory growth, connection leaks and gradual p95 creep. Run it from a GitHub Actions schedule so the test definition, trigger and criteria all live in git.
Add the schedule
Section titled “Add the schedule”name: perf-nightlyon: schedule: - cron: "0 2 * * *" # 02:00 UTC every day workflow_dispatch: {}permissions: contents: readjobs: soak: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: MaxoPerf/github-action@v1 with: api-key: ${{ secrets.MAXOPERF_API_KEY }} account-id: ${{ vars.MAXOPERF_ACCOUNT_ID }} tests: .maxoperf/tests/soak.yml timeout-minutes: 120 config-overrides: TARGET_URL=https://staging.example.com- GitHub runs scheduled workflows from the default branch only, in UTC.
workflow_dispatchlets you start the same job by hand.- Raise
timeout-minutesabove the test duration plus the time to allocate runners. The default is 60.
Define the soak in .maxoperf/tests/soak.yml with a long durationSeconds and criteria on the metrics that should stay flat. See Keep tests in git.
Watch the trend
Section titled “Watch the trend”Every nightly run is a normal MaxoPerf run with a CI chip.
- Open the test and select the Runs tab. Each night is one row.
- In Runs, set the Branch filter to
mainto see the runs from your default branch and nothing else. - Open two runs and compare their charts and criteria to see when a metric started to move. The chip’s commit link takes you to the change that landed between the two.
MaxoPerf schedules or GitHub schedules
Section titled “MaxoPerf schedules or GitHub schedules”MaxoPerf has its own recurring schedules. Use them when the test needs no code checkout. Use a GitHub schedule when you want the run tied to a commit, need per-run overrides or want the job result inside your pipeline.