Skip to content

Record two container-testing traps in Verification Discipline - #170

Merged
ptr727 merged 1 commit into
developfrom
docs/version-history-test-lessons
Jul 19, 2026
Merged

ptr727 merged 1 commit into
developfrom
docs/version-history-test-lessons

Conversation

@ptr727

@ptr727 ptr727 commented Jul 19, 2026

Copy link
Copy Markdown
Owner

Two traps found while verifying the version history default (#169) against the published develop image. Both are recorded because both produced a passing-looking result from a test that never actually ran.

Scanner is gated on WebSocket subscriber presence. Device Builder's background poll for external YAML edits parks when no client is subscribed. A headless "edit a file, wait, observe no commit" test therefore proves nothing - it watched a scanner that was never running. This was caught only because the enabled-case control was also silent, which is the signal that the harness rather than the feature was off. With a subscriber attached the control commits immediately, unsigned and under the fabricated identity, and the disabled case stays clean.

docker cp into a tmpfs-backed path writes underneath the mount. The compose stack mounts tmpfs at /tmp; a helper script copied there is absent at runtime, and the step depending on it silently no-ops while still reporting success.

Docs only - no behavior change.

🤖 Generated with Claude Code

Both surfaced while verifying the version history default against the
develop image, and both produce a passing-looking result from a test that
never ran.

Device Builder's filesystem scanner is gated on WebSocket subscriber
presence, so a headless "edit a YAML and wait" test observes a scanner that
is parked. The first disabled-case run looked like a pass for the wrong
reason; the enabled-case control was equally silent, which is what exposed
it.

docker cp into the tmpfs-backed /tmp writes underneath the mount, so a
helper script staged there is absent at runtime. A subscriber that was never
started still reported success.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Copilot AI review requested due to automatic review settings July 19, 2026 03:20

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Records two verification pitfalls encountered while testing Device Builder behavior in containers, strengthening the repo's "Verification Discipline" guidance to prevent false-positive test results.

Changes:

  • Document that Device Builder's filesystem scan for external YAML edits is gated by having an active WebSocket subscriber.
  • Document that docker cp into a tmpfs-backed path (e.g., /tmp) can write underneath the mount and be invisible at runtime, causing silent no-ops.

@ptr727
ptr727 merged commit 0919559 into develop Jul 19, 2026
12 checks passed
@ptr727
ptr727 deleted the docs/version-history-test-lessons branch July 19, 2026 03:23
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.

2 participants