Repository navigation
observe, loopguard: recognize Bun, Deno, and polyglot test runners (Zig, Meson, Dart, Forge, Ninja) - #310
Open
Xinghan Pan (PStarH) wants to merge 1 commit into
Conversation
…ig, Meson, Dart, Forge, Ninja)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR fixes observation of Bun, Deno, and Node test runners in microskills, and expands test runner detection in loopguard across modern polyglot ecosystems:
Microskills Observation (
tokeneconomizer/microskills/observe.py):bun,deno, andnodeinNODE_WEB.interpreterswere previously intercepting shell commands before reaching task heads or_RUN_SCRIPT_HEADS, causingbun test,bun run test:unit,deno test, andnode --testto be misclassified asrun_interpreterinstead ofrun_tests, andbun run build/deno checkasrun_interpreterinstead ofrun_build._classify()properly extracts:bun test,bun run <test-script>,deno test, andnode --testasrun_tests;bun run <build-script>,deno check/lint/fmtasrun_build;bun install/add,deno add/installasfetch_remote(with host extraction);bun remove/updateaspackage_tool.base.startswith(...)in package tool extraction which erroneously matchedbundlewhen checking forbun.zig,meson,dart,flutter,forgetoGENERIC.task_headsandbuild_heads.Loopguard Test Verification (
tokeneconomizer/loopguard/turn.py):VERIFY_REnow recognizeszig test,zig build test,meson test(including-C build),dart test,flutter test,forge test, andninja/samu test/check.status_of_tests(...) -> None, which caused failing test runs after code edits to be ignored, erroneously qualifying failing turns as "ended green" inresolved_proxy()._RUN_FAILED_REand_RUN_PASSED_REfor Meson and Dart/Flutter test suites.Verification
tests/test_loopguard_polyglot_runners.pyverifying status andTurnGuard.fold()across Zig, Meson, Dart, Flutter, Forge, and Ninja.tests/test_observe_bun_deno.pyverifying command classification across Bun, Deno, and Node --test.tests/test_generic_microskills.py.