Watch
0
0
Fork
You've already forked hyperhive
0
hyperhive/nix
Repository files (latest commit first)
Filename Latest commit message Latest commit date
maia 1e3b6e1cde 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-30 22:20:28 +01:00
..
agent-modules matrix daemon: stay up when the primary account is down and say why in the tools 2026-11-28 09:46:56 +01:00
archetypes add a default archetype, preselected by the clients 2026-11-27 19:40:19 +01:00
builder/check-flake
container-modules fix(matrix): the deferred starter logs the state its boot ended in 2026-11-28 09:48:50 +01:00
docs
host-modules bind health listeners to the pod's loopback and probe them by exec 2026-11-30 22:20:28 +01:00
images bind health listeners to the pod's loopback and probe them by exec 2026-11-30 22:20:28 +01:00
module-eval bind health listeners to the pod's loopback and probe them by exec 2026-11-30 22:20:28 +01:00
packages public-cache: build and push the cargo dependency closures 2026-11-30 21:47:55 +01:00
script-tests require k8s: swarm services with a pod run in the cluster only 2026-11-30 22:19:18 +01:00
target-modules
templates
vm-tests vm-tests: the typecheck fails a step that rebinds a function of its script 2026-11-30 22:20:28 +01:00
checks.nix let a second machine join the main node's k3s and run pods from images only the main node holds 2026-11-30 22:17:18 +01:00
claude-code-no-alsa.nix
collector-own-export-failures.nix
collector-self-scrape.nix
devshell.nix
journald-severity.nix
otel-export-queue.nix
reserved-hive-fragments.nix
reserved-names.nix
rust.nix
sources.nix
treefmt.nix
vm-test-shadow-scan.py vm-tests: the typecheck fails a step that rebinds a function of its script 2026-11-30 22:20:28 +01:00
vm-test-typecheck.nix vm-tests: the typecheck fails a step that rebinds a function of its script 2026-11-30 22:20:28 +01:00
vm-tests.nix require k8s: swarm services with a pod run in the cluster only 2026-11-30 22:19:18 +01:00