maia
0d6065cf8f
vm-tests: the typecheck fails a step that rebinds a function of its script
...
A VM test script and `lib/k3s.py` share one namespace, so a step that assigns
`pod = ...` replaces the library's `pod()` for every later call and the test dies
mid-run with `TypeError: 'dict' object is not callable`. `ty` and
`ruff --select F` accept a module-level rebinding, so this cost a full VM round
on #6947 .
`vm-test-shadow-scan.py` parses the script and fails when a name bound at module
level (assignment, `for` or `with` target, `import ... as`, walrus, `except ... as`)
is also a module-level `def`. It looks into `with`, `if`, `for`, `while` and `try`
bodies, where `with subtest(...)` steps live, and not into function or
comprehension bodies. Every `vm-test-typecheck-<name>` runs it on the script alone.
`vm-test-typecheck-shadow-control` passes only when it rejects each form of
rebinding and accepts the same names where they are local.
The one existing case, `sources` in `k8s-services`, is renamed `cred_sources`.
Closes #6951
2026-11-28 02:01:35 +01:00
..
android-dev-sample
vm-tests: build a sample android app offline in the android-dev archetype
2026-11-22 13:25:29 +01:00
lib
bind health listeners to the pod's loopback and probe them by exec
2026-11-28 00:48:30 +01:00
agent-android-dev.nix
vm-tests: build a sample android app offline in the android-dev archetype
2026-11-22 13:25:29 +01:00
agent-ephemeral-rootfs.nix
vm-tests: every test's globalTimeout stays under the one-hour job limit
2026-11-19 21:55:34 +01:00
agent-toplevels.nix
vm-tests: factor the agent toplevels out of full-setup
2026-11-11 00:14:24 +01:00
full-setup.nix
full-setup and the host swarmctl reach the controller as a pod, not through a host socket
2026-11-27 21:29:38 +01:00
full-setup.py
swarmctl, vm tests: wait for the store's active node after an unseal
2026-11-27 21:30:12 +01:00
hive-egress-antispoof.nix
hive-egress: the lease hook's lines reach the journal at info under egress-lease
2026-11-20 02:04:37 +01:00
hive-squid.nix
egress: the forward chain refuses by default where the intercept is on
2026-11-22 19:47:38 +01:00
hyperhive-fixture-repo.nix
nightly vm test: full single-host swarm setup up to the meta flake
2026-11-06 21:08:41 +01:00
k8s-bao-login.nix
run flannel's wireguard-native backend on every k8s node
2026-11-27 23:05:25 +01:00
k8s-collector-switch.nix
vm-tests: a running collector keeps its cursor when it switches to the static user
2026-11-27 21:29:36 +01:00
k8s-controller.nix
bind health listeners to the pod's loopback and probe them by exec
2026-11-28 00:48:30 +01:00
k8s-join.nix
move flannel's wireguard port to 51830, advertise the node address as the tunnel endpoint, drop the 51820 assertion
2026-11-27 23:18:58 +01:00
k8s-nats.nix
bind health listeners to the pod's loopback and probe them by exec
2026-11-28 00:48:30 +01:00
k8s-node.nix
k8s-node asserts the poller's CronJob and default-deny policy in the hyperhive namespace, which the cluster now holds
2026-11-27 23:33:30 +01:00
k8s-services.nix
vm-tests: the typecheck fails a step that rebinds a function of its script
2026-11-28 02:01:35 +01:00
k8s-swarm-images.nix
bind health listeners to the pod's loopback and probe them by exec
2026-11-28 00:48:30 +01:00
priv-request.nix
share one hive-priv request helper across the vm tests
2026-10-29 08:51:31 +01:00
ruff.toml
vm-tests: full-setup script lives in full-setup.py, build-time values in env, ruff in ci
2026-11-11 22:35:54 +01:00
semi-spread.nix
semi-spread: show the controller pod's log where the test printed the empty journal
2026-11-27 21:30:12 +01:00
swarm-archive.nix
archive: an empty prefix lists as no users, not as a failure
2026-11-24 18:19:26 +01:00
swarm-builder-offline-fixtures.nix
nightly vm test: full single-host swarm setup up to the meta flake
2026-11-06 21:08:41 +01:00
swarm-builder-offline.nix
ci: type-check the semi-spread and swarm-builder-offline test scripts with stand-in values
2026-11-13 11:00:04 +01:00
tuwunel-fallocate-probe.nix
hive-matrix: the fallocate probe works inside tuwunel's sandbox
2026-11-27 20:38:14 +01:00