Skip to content

🐛 fix(conformance): pin a fast Portwing inventory poll in the test overlay - #216

Merged
scttbnsn merged 1 commit into
dev/v1.6from
fix/conformance-poll-interval
Aug 9, 2026
Merged

scttbnsn merged 1 commit into
dev/v1.6from
fix/conformance-poll-interval

Conversation

@scttbnsn

@scttbnsn scttbnsn commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

Fourth (and hopefully final) harness-fix round for the pre-GA tri-tool gate. Gate run 31293877531 failed all 3 rows identically: remote-update-trigger -- sentinel never appeared in drydock's /api/containers store within 120s.

Root cause (traced through portwing + drydock source, verified on both the current and 0.8.1 legacy pins): Portwing has no Docker-events subscription. Its container inventory (ContainerManager.Refresh) runs once at startup, then on a fixed tick — DD_POLL_INTERVAL, default 300s (internal/config/config.go:203). The sentinel is created mid-run, so the next inventory scan lands up to 300s later, outside the assertion's 120s wait. Drydock is not the bottleneck: it ingests the agent's container-added event immediately, bypassing its 6h watcher cron. No force-refresh endpoint exists (portwing's handleWatcherPoll is a 501 stub; SIGHUP only reloads authorized keys).

Why this never bit before #212: the old assertion fired the trigger blind with a guessed body and never needed store presence — it passed for the wrong reason. #212 made the assertion honest; this makes its precondition reachable.

Fix: DD_POLL_INTERVAL=5 on the portwing service in docker-compose.conformance-overlay.yml only — test-scoped, audited bundles untouched. Verified docker compose config merges it into both base files' env by key (all base vars preserved).

After merge: rebuild the main sync commit, re-run the gate from main against rc.1, tag on green.

…erlay

Portwing has no Docker-events subscription: its container inventory
refreshes once at startup, then on a fixed tick defaulting to
DD_POLL_INTERVAL=300s. Assertion 8's sentinel is created mid-run and
waits at most 120s for drydock store presence, so at the default cadence
it could never arrive (drydock ingests the agent's container-added event
immediately — the bottleneck is purely Portwing's tick, verified in
portwing internal/config/config.go and internal/server/http.go, identical
on the 0.8.1 legacy pin). The conformance overlay now sets
DD_POLL_INTERVAL=5 on the portwing service; audited bundles unchanged.

- 🔧 config(conformance): DD_POLL_INTERVAL=5 in docker-compose.conformance-overlay.yml
- 📝 docs(conformance): record the resolved cadence gap in the harness README
- 📝 docs(changelog): round-4 harness entry under 1.6.0

Refs: #150, #211
@vercel

vercel Bot commented Aug 9, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
sockguard-website Ready Ready Preview Aug 9, 2026 4:23am

@coderabbitai

coderabbitai Bot commented Aug 9, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@scttbnsn, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 19 minutes

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 699e1ffd-d344-406a-83b6-b2c1cc0a9d13

📥 Commits

Reviewing files that changed from the base of the PR and between de8015b and 3c732aa.

⛔ Files ignored due to path filters (1)
  • CHANGELOG.md is excluded by !CHANGELOG.md
📒 Files selected for processing (2)
  • examples/compose/tri-tool/docker-compose.conformance-overlay.yml
  • scripts/tri-tool-conformance/README.md

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@scttbnsn
scttbnsn merged commit 8c6aa68 into dev/v1.6 Aug 9, 2026
39 checks passed
@scttbnsn
scttbnsn deleted the fix/conformance-poll-interval branch August 9, 2026 04:30
scttbnsn added a commit that referenced this pull request Aug 9, 2026
Single sync commit on top of main carrying the dev/v1.6 tip tree:
🐛 fix(conformance): fast Portwing inventory poll in the test overlay (#216)
— plus the #214 content this supersedes if any drift remains.

This branch was successfully deployed

1 active deployment
Preview — 3c732aae Deployed Aug 9, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant