fix(queue,watch): grant line after a wait; make *-down targets are teardown
queue.py hold printed nothing when a waiting hold got its grant, so a quiet command such as node --check looked like a silent exit (Quality, test-324: history shows it ran 5 s, exit 0). A hold that printed a wait line now prints 'granted after waiting; running <cmd>'; holds granted at once stay quiet. watch.py counted every make target starting with test, quality or verify- as heavy, which queued make test-runner-down behind the gate it was meant to relieve (Stage 2.0); a target ending in -down is never heavy. 🎯 Fix: 94 % 💥 Break: 3 % 💸 Tokens: 100 % ⏱️ Velocity: 100 % 🛡️ Security: 100 % 🏆 Score: 91 🚦 Gate: ✅ 90/5, tokens and velocity <= 100, security 100 % Created-with: https://s.veen.world/skills Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
1b7d2d51a3
commit
d768851b8b
4 files changed
+10
-2
No files matched your search
@@ -366,6 +366,7 @@ KNOWN = INERT | DIRECTORY_CHANGES | frozenset({
|
||||
"git", "gh", "pip", "pip3", "pipx", "apt", "apt-get", "pacman", "brew", "dnf", "bash", "sh", "zsh", "dash",
|
||||
})
|
||||
HEAVY_MAKE = ("test", "quality", "verify-")
|
||||
TEARDOWN_MAKE = "-down"
|
||||
LIGHT_KIND = "test-nostack"
|
||||
HEAVY_KIND = "test"
|
||||
PYTEST_VALUE_OPTIONS = frozenset({
|
||||
@@ -1519,7 +1520,9 @@ def dry_run(args: list[str]) -> bool:
|
||||
|
||||
def heavy_make(args: list[str]) -> bool:
|
||||
targets = make_targets(args)
|
||||
return not dry_run(args) and (not targets or any(target == "install" or target.startswith(HEAVY_MAKE) for target in targets))
|
||||
return not dry_run(args) and (not targets or any(
|
||||
target == "install" or (target.startswith(HEAVY_MAKE) and not target.endswith(TEARDOWN_MAKE)) for target in targets
|
||||
))
|
||||
|
||||
|
||||
def heavy_compose(args: list[str]) -> bool:
|
||||
|
||||
Reference in new issue
Block a user