Skip to content

ci: leave out the LoKI tests that run on real data - #266

Merged
SimonHeybrock merged 1 commit into
mainfrom
ci-without-real-data
Nov 23, 2026
Merged

SimonHeybrock merged 1 commit into
mainfrom
ci-without-real-data

Conversation

@SimonHeybrock

@SimonHeybrock SimonHeybrock commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

The test job lost its runner three times on main since 2026-11-20 (the merges of #245, #249 and #261), and pull requests hung in the same step: the tests of essinstruments under pytest -n auto. GitHub's note on those jobs is "The hosted runner lost communication with the server", which it gives when a job starves the runner of CPU or memory. No log is kept for such a job.

Cause: memory. The summed memory (Pss) of pytest and its workers, for the tests of essinstruments:

Workers Peak
1 10.2 GB
2 16.8 GB
4 23.6 to 25.5 GB (three runs)

A hosted runner has four cores and 16 GB. The peak depends on which tests run at the same time, which fits a job that fails only sometimes. Restricted to four cores (taskset -c 0-3), the same tests peak at 10.2 GB with one worker and 27.0 GB with four. By file, alone: client_test.py 9.3 GB, bindings_test.py 8.0 GB, app_test.py 7.5 GB, the others on real data 4 to 4.5 GB. The cause is inferred from these numbers and from GitHub's note, not seen on a runner.

Change. The tests that reduce esssans' tutorial data carry the mark real_data, and CI runs the rest:

python -m pytest -n auto -m "not real_data"   # CI: 26 of 57 tests, 0.7 GB with four workers
python -m pytest -n auto                      # as before: all 57

A test gets the mark from its fixtures: a hook in conftest.py marks each test that takes a fixture of the tutorial files, directly or through another fixture. Two tests fetch the data through other code (the arrivals demo, the batch notebook) and carry the mark by hand.

What a real reduction computes is not what these packages are tested for (Simon, 2026-11-23). What CI no longer checks: that LoKI's bindings give the I(Q) of plain esssans, the beam centre of the tutorial, and that the batch notebook runs. These run on a developer's machine.

🤖 Generated with Claude Code

The test job on main lost its runner three times since 2026-11-20 (the
merges of #245, #249 and #261), and pull requests hung in the same step:
the tests of essinstruments under `pytest -n auto`. GitHub's note is "The
hosted runner lost communication with the server".

The tests that reduce esssans' tutorial data hold 10 GB with one worker,
17 GB with two and 24 GB with four, measured as the summed Pss of pytest
and its workers. A hosted runner has 16 GB and four cores.

What a real reduction computes is not what these packages are tested for.
The tests that fetch the tutorial data carry the mark `real_data`: by
their fixtures, or by hand where other code fetches the data. CI runs the
rest (26 of 57, 0.7 GB). The marked tests still run with a plain `pytest`.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@SimonHeybrock SimonHeybrock self-assigned this Nov 23, 2026
@SimonHeybrock
SimonHeybrock merged commit 518f4cf into main Nov 23, 2026
2 checks passed
@SimonHeybrock
SimonHeybrock deleted the ci-without-real-data branch November 23, 2026 10:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant