Files
alzeo/.github/workflows/nightly.yml
T
Hasan BasbunarandClaude Fable 5.2 c7e8e0a8da ci: the modules of tests/ run in groups side by side, and in one process every night
The `single` job ran every unittest module of tests/ in ONE process, so that
what a module leaves behind (a variable of the environment, the directory,
sys.path, a thread, a signal handler) shows in the modules after it. It was
the longest job of a run: 1,808 s of its 30 minutes on 2026-11-10.

tests/run_single.py runs the same modules in groups, each group one process,
four at a time: each of the pair's four files alone, the others dealt in turn
into two groups. Every module is in one group and one only. It keeps what the
step checked: a group that fails fails the run and is shown, the tests that
ran are as many as the files declare, and a skip passes only for a listed
reason.

What a module does to a module of ANOTHER group is not seen by a run in
groups. `run_single.py --one-process` is the pass as it was, and
.github/workflows/nightly.yml runs it every night. ci-local.sh runs another
workflow file than ci.yml when CI_LOCAL_WORKFLOW names it, so that a release
runs that same pass on the box before it is pushed.

tests/test_run_single.py proves each fact on a planted tree, the limit
included: two modules of two groups, one leaving a variable the other
refuses, pass in groups and fail in one process. Ten mutations of
run_single.py are each caught by it. tests/test_ci_local.py's new case fails
on the ci-local.sh of before.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-10 20:48:46 +01:00

36 lines
1.6 KiB
YAML

# Nightly: every unittest module of tests/ in ONE process. What a module leaves to the modules
# after it (a variable of the environment, the directory, sys.path, a thread, a signal handler)
# shows only when they share a process. ci.yml ran them so at every push until 2026-11-10, the
# longest job of a run (1,808 s of its 30 minutes): it runs them in groups since, side by side
# (tests/run_single.py), and what a module does to a module of ANOTHER group is seen here alone,
# the next night at the latest. A release runs this same pass before it is pushed.
name: nightly
on:
schedule:
# Every night, off the hour and off the :00 crowd.
- cron: '43 2 * * *'
workflow_dispatch: {}
permissions:
contents: read
jobs:
one-process:
# the runner of ci.yml's jobs: the architecture of the boxes this repo serves (aarch64)
runs-on: ubuntu-24.04-arm
timeout-minutes: 90
steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v7 # Node 24, the reference box's (ci.yml's static job says why)
with:
node-version: '24'
- name: Every unittest module of tests/ in one process
run: |
pip install 'jinja2==3.1.6' # tests/test_lean_level.py renders with it
# tests/test_proxy_systemone.py's round trip through TypeSafe's own SDK. A failed
# install is refused by the run on a runner, where the SDK is not optional.
pip install 'typesafe-sdk==0.7.0' 2>/dev/null || echo "typesafe-sdk unavailable: the SDK round trip will skip"
python3 tests/run_single.py --one-process