Repository navigation
fix(tests/resilience): wait out 60s presence TTL in link-offline assertion - #3703
Merged
Merged
Conversation
…ine assertion The daemon↔studio transport flipped from reverse-WS to pure pull (#3698), so the link claim is now a `studio_links` KV entry with a 60s TTL re-armed on every work/control/proxy poll — not a socket whose close releases the claim in a few seconds. The ws-partition scenario still polled `/api/links/me === null` with a 30s budget, so it timed out deterministically once the WS transport was gone (every run since #3698 failed on `WS severed → link offline`). Raise the offline-poll budget past the TTL (30s → 80s), bump the affected sub-test timeouts, and correct the now-misleading "WS close" comments to describe the pull-transport presence model. Apply the same TTL fix to the skipped log-replay scenario so it doesn't re-break when un-skipped. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
tlgimenes
enabled auto-merge (squash)
June 8, 2026 13:37
Two e2e test failures due to timing/infrastructure issues: 1. chat-input-draft.spec.ts (line 48): typeInComposer's toHaveText() was timing out at 5s before Tiptap had time to render the full text under CI load. Increase timeout to 15s to accommodate Tiptap's DOM updates. 2. clonable-agent-logo.spec.ts (line 22): HTTP connection creation was failing with a 500 error because the backend now validates HTTP endpoints, and the test was using an intentionally unreachable URL (127.0.0.1:1). Use the actual test server at localhost:3000 instead — we only need the connection ID for the test, not a functional endpoint. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
decocms Bot
pushed a commit
that referenced
this pull request
Jun 8, 2026
PR: #3703 fix(tests/resilience): wait out 60s presence TTL in link-offline assertion Bump type: patch - decocms (apps/mesh/package.json): 2.398.0 -> 2.398.1
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.
What is this contribution about?
The
Resilience Testssuite has failed onmainon every run since #3698 (2026-06-07), always onsandbox↔studio WS partition > WS severed → link offline. #3698 deleted the reverse-WebSocket daemon transport and made HTTP pull the only transport, so the link claim is now astudio_linksNATS KV entry with a 60s TTL re-armed on every work/control/proxy poll — not a socket whose close releases the claim in seconds — but the test still polled/api/links/me === nullwith a 30s budget, so it timed out deterministically (30s < 60s). This PR raises the offline-poll budget past the TTL (30s → 80s), bumps the affected sub-test timeouts, and rewrites the now-misleading "WS close" comments to describe the pull-transport presence model; the same TTL fix is applied to the (already-skipped)link-dispatch-log-replayscenario so it won't re-break when un-skipped.Screenshots/Demonstration
N/A — test-only change.
How to Test
docker compose -f tests/resilience/docker-compose.yml up -d --build --waitbun test tests/resilience/scenarios/link-dispatch-ws-partition.test.ts --serial --timeout 900000WS severed → link offlinenow waits up to ~60s for the presence claim to expire instead of failing at 30s.docker compose -f tests/resilience/docker-compose.yml down -vMigration Notes
None — no production code, schema, or config changes (test timeouts/comments only).
Review Checklist
Summary by cubic
Fixes failing resilience tests by waiting out the 60s presence TTL, and deflakes two e2e tests by relaxing timeouts and using a reachable test URL.
toHaveTexttimeout to accommodate Tiptap rendering (5s → 15s); clonable-agent-logo creates the placeholder HTTP connection with a reachable test URL (http://127.0.0.1:3000/instead ofhttp://127.0.0.1:1).Written for commit 923e4c2. Summary will update on new commits.