Skip to content

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.

name: perf-nightly
on:
schedule:
- cron: "0 2 * * *" # 02:00 UTC every day
workflow_dispatch: {}
permissions:
contents: read
jobs:
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_dispatch lets you start the same job by hand.
  • Raise timeout-minutes above 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.

Every nightly run is a normal MaxoPerf run with a CI chip.

  1. Open the test and select the Runs tab. Each night is one row.
  2. In Runs, set the Branch filter to main to see the runs from your default branch and nothing else.
  3. 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.
The Branch filter on the runs list shows the runs from one branch.

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.