test(gitea_runner): fold the disk-pressure run into the failed-download case #466

Open
Claude wants to merge 1 commits from test/459-gitea-runner-pressure into main
pull from: test/459-gitea-runner-pressure
Owner

What and why

Closes #459

Two fewer role runs per platform in roles/gitea_runner/molecule/default/verify.yml:

  • The failed-download run now also sets gitea_runner_docker_prune_disk_threshold_percent: 0, replacing the separate role run that existed only to check the pressure units. Prune runs before update in tasks/main.yml with no when, so the pressure units are removed before the download fails at staging. A prune error would reach verify's rescue with a different message, so the exact "Staging gitea-runner … failed" assert cannot pass on it. The failed update never reaches the swap, so the pressure state it leaves is unaffected. The pressure asserts follow the rescue unchanged. "Run the role again with the scenario's inputs" and the timer-armed assert stay before the remove path, which needs the units back.
  • The forced re-registration child ansible-playbook runs are run_once. What they check is controller state and group_vars, the same for every host, and they stop at the CI guard or the mint assert before touching a host; run_once gives every host the registered results.

Verified

  • Every one of the 20 assert tasks is still there; the three pressure asserts moved word for word.
  • pre-commit run --all-files passes, and ansible-test sanity passed on push.
  • A clean-context review traced prune ordering, the rescue scope and the remove path in the role's tasks and found nothing blocking.

Not verified

  • The scenario on a container: this PR's Molecule run is the first. Its scenario time goes into a comment here once it finishes.

  • I confirm third-party material is recorded in NOTICE and REUSE.toml, or there is none.

Assisted-by: Claude Code

## What and why Closes #459 Two fewer role runs per platform in `roles/gitea_runner/molecule/default/verify.yml`: - The failed-download run now also sets `gitea_runner_docker_prune_disk_threshold_percent: 0`, replacing the separate role run that existed only to check the pressure units. Prune runs before update in `tasks/main.yml` with no `when`, so the pressure units are removed before the download fails at staging. A prune error would reach verify's rescue with a different message, so the exact "Staging gitea-runner … failed" assert cannot pass on it. The failed update never reaches the swap, so the pressure state it leaves is unaffected. The pressure asserts follow the rescue unchanged. "Run the role again with the scenario's inputs" and the timer-armed assert stay before the remove path, which needs the units back. - The forced re-registration child `ansible-playbook` runs are `run_once`. What they check is controller state and group_vars, the same for every host, and they stop at the CI guard or the mint assert before touching a host; `run_once` gives every host the registered results. ## Verified - Every one of the 20 `assert` tasks is still there; the three pressure asserts moved word for word. - `pre-commit run --all-files` passes, and `ansible-test sanity` passed on push. - A clean-context review traced prune ordering, the rescue scope and the remove path in the role's tasks and found nothing blocking. ## Not verified - The scenario on a container: this PR's Molecule run is the first. Its scenario time goes into a comment here once it finishes. --- - [x] I confirm third-party material is recorded in `NOTICE` and `REUSE.toml`, or there is none. Assisted-by: Claude Code
Claude added this to the CI velocity (emergency) milestone 2026-11-28 21:22:37 +00:00
Claude added 1 commit 2026-11-28 21:22:38 +00:00
test(gitea_runner): fold the disk-pressure run into the failed-download case
Build / build (pull_request) Successful in 38s
Lint / lint (pull_request) Successful in 2m30s
Molecule / molecule (pull_request) Successful in 3m43s
2865573429
The verify step ran the whole role once only to set the disk threshold to 0. Prune runs
before update in tasks/main.yml, so the failed-download run can carry that input: the
pressure units are removed before the download fails at staging. The exact staging
message the rescue asserts comes only from update.yml, so a prune error still fails it.
The run with the scenario's inputs stays before the remove path, which needs the units back.

The forced re-registration child runs now start once instead of per host: they check only
controller state and group_vars, and run_once gives every host the registered results.

Closes #459

Assisted-by: Claude Code
All checks were successful
Build / build (pull_request) Successful in 38s
Required
Details
Lint / lint (pull_request) Successful in 2m30s
Required
Details
Molecule / molecule (pull_request) Successful in 3m43s
Required
Details
You are not authorized to merge this pull request.
This pull request can be merged automatically.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin test/459-gitea-runner-pressure:test/459-gitea-runner-pressure
git checkout test/459-gitea-runner-pressure
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mortis/Kamino#466