Repository navigation
feat(benchmark): remaining 6 loop-closure cases spanning the failure taxonomy (#66) - #89
Merged
Merged
Conversation
…taxonomy (#66) Adds stale-session, console-error-breaks-render, changed-route, slow-endpoint, broken-api, and text-changed to the loop-closure benchmark, covering the remaining failure taxonomy types and both analyzer findings. The harness itself had a latent bug that only source-scope cases exposed: the app process is spawned once per case and never restarted, so an adapter's fix to app/server.js was silently invisible to the already-running process. Restart the app after every adapter invocation so source-scope fixes actually take effect on the next iteration. Also carves out benchmark/cases/**/.verfix from the repo-wide **/.verfix gitignore rule so the stale-session case's pre-baked storage-state fixture can be committed.
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.
Slice 2 of #66 on top of #87 — the benchmark now has 8 cases spanning the failure taxonomy, three of which also validate that the right
findingscode fires on the first run.Every expected type/finding was verified empirically against the engine, not assumed. Notable design points:
.verfix/state/auth.jsonfixture the app rejects (401 on an auth endpoint) — thestale_sessionanalyzer fires as designed. The assertion isselector_visiblebecausetext_visiblefailures classify astext_mismatch, which correctly isn't in the analyzer's trigger set..gitignoregains a scoped exception so case fixtures underbenchmark/cases/**/.verfixare committed test data.wait_for_network_idlefor its genuinetimeout: step-level selector waits deliberately classify as selector misses (0.3.8 behavior), never baretimeout.app/server.json disk, but the already-running process had the old code in memory, so oracle fixes for source cases never took effect.Verification
node benchmark/run.js --agent oracle→ 8/8 closed, exit 0 (run independently twice)--agent null→ 0/8 closed, exit 0cd cli && npm testunaffected (14/14 e2e)