Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion roles/github_runner_cluster/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,7 @@ or read from 1Password by adding `exadev.github_runner.github_runner_secrets_one

`tests/unit/test_cluster_host_prerequisites.py` covers the [host preparation](#host-preparation) without a real host: the defaults, that both node modes include the steps at the right point, and the steps themselves (`tests/cluster_host_prerequisites/run.yml`) against stand-ins for `modprobe`, `sysctl`, `apparmor_parser` and `sudo` on `PATH`, with a k3s data directory laid out as k3s leaves it.

`tests/unit/test_runtime_autostart.py` covers the [container runtime tasks](#container-runtime-after-a-reboot-macos) without a Mac: it renders the launchd agent and daemon through `tests/runtime_autostart/render_plist.yml`, and runs `tasks/runtime.yml` and `tasks/end_checks.yml` through the role against stand-ins for `docker`, `colima`, `launchctl`, `plutil` and `sudo` on `PATH`, the stand-in `launchctl` refusing to change the system domain unless it was run through the stand-in `sudo`. It checks the variable defaults, that Linux hosts are left alone, that a second run changes nothing, that `--check` writes and starts nothing, and that each way the runtime or the node's container can be down fails with its message. `tests/unit/test_container_runtime.py` covers the filter that works out the runtime from the Docker context. Nothing there touches a real Colima, launchd or Docker Desktop, so loading the agent into a real login session, and the daemon starting a Colima VM at a real boot with no one logged in, are the parts only a run on a Mac can show.
`tests/unit/test_runtime_autostart*.py` cover the [container runtime tasks](#container-runtime-after-a-reboot-macos) without a Mac: they render the launchd agent and daemon through `tests/runtime_autostart/render_plist.yml`, and run `tasks/runtime.yml` and `tasks/end_checks.yml` through the role against stand-ins for `docker`, `colima`, `launchctl`, `plutil` and `sudo` on `PATH`, the stand-in `launchctl` refusing to change the system domain unless it was run through the stand-in `sudo`. They check the variable defaults, that Linux hosts are left alone, that a second run changes nothing, that `--check` writes and starts nothing, and that each way the runtime or the node's container can be down fails with its message. `tests/unit/test_container_runtime.py` covers the filter that works out the runtime from the Docker context. Nothing there touches a real Colima, launchd or Docker Desktop, so loading the agent into a real login session, and the daemon starting a Colima VM at a real boot with no one logged in, are the parts only a run on a Mac can show.

`tests/unit/test_cluster_colima_size.py` covers the Colima VM size: the filters that read the profile's size (`plugins/filter/cluster_colima.py`) and take and give back the `fleet-regrade` Lease (`plugins/filter/cluster_guard.py`), and `tasks/colima_size.yml` run through the role (`tests/colima_size/run.yml`) against stand-ins for `docker` and `colima` that keep each profile's VM, the node containers, the cluster's nodes and the Lease as files. It checks the `colima` arguments, the derived memory (the host's less both reserves, a larger reserve giving a smaller VM, a derivation below the floor sized at the floor with a warning, an explicit memory winning within the budget and refused above it before anything is read from the VM), that a VM of the size set is only read, that a second run changes nothing, the order of a resize (the Lease, the cordon, the runner pods, the drain, the stop, the start with the new size, the uncordon, the Lease given back), that a held Lease, a server that is not Ready and a server whose etcd is unhealthy each refuse before anything changes, that `--check` reports and changes nothing, that several hosts take their turns one at a time, the refusal of a value that is not a whole number, and that a host that does not run Colima is left alone and says so under `-v`. A real Colima VM's resize is shown only by its first run on a Mac.

Expand Down
Loading
Loading