test(telemetry): assert the listing attribute, in both directions #541
No reviewers
Labels
No labels
move-to-repo
coilyco-bridge-deploy
move-to-repo
coilyco-flight-deck-agent-compose
move-to-repo
coilyco-gaming-eco-app
move-to-repo
coilysiren-inbox
move-to-repo
unknown
🔒⚠️📦⚠️🔒 SANDBOXED 🔒⚠️📦⚠️🔒
autonomy
async-consult
autonomy
epic
autonomy
headless
autonomy
live-collab
c#
priority
P0
priority
P1
priority
P2
priority
P3
priority
P4
role/ai
role/creator
role/design
role/director
role/engineer
role/exec
role/human
role/ops
role/qa
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
coilyco-gaming/sirens-echo!541
Loading…
Reference in a new issue
No description provided.
Delete branch "qa/pin-the-listing-attribute"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
bd31e36replaced a duration heuristic with a stated field, which is the right call and closes #520 properly. The three tests that shipped with it all exerciseneedsTools— the expiry predicate, which predates the change.The new code is the
listedcounter and theSetAttributescall, and nothing asserted either. An attribute whose whole purpose is to be read by a human is exactly the kind that can be silently renamed, inverted, or dropped without a test noticing.What this asserts
One provider, opened twice against a live server:
cached=false,listed=1cached=true,listed=0One provider rather than two, deliberately. The attribute is only worth anything if the two cases it separates actually report differently, and two separate providers would let both directions pass while the field said the same thing twice.
Mutation checked three ways
Each fails with the offending attribute map printed, so the failure names what went wrong rather than that something did:
The third is the useful one — it passes the listing direction and fails only the hit, which is the asymmetry a single-direction test would have missed.
What this deliberately does not cover
The unreachable-server path reports
cached=truefor a connect that did reach the network. I found that while writing this and filed it as #540 with a runnable reproduction and a one-branch fix.It is not in this PR on purpose. Asserting the correct behaviour would redden
main, and asserting the current behaviour would pin something I am arguing is wrong. The test belongs with the fix, and 540 carries it ready to paste.Test-only. No production change —
git diff --statagainstorigin/maintouches one new file.Refs #520