Skip to content

Replace Assert.Ignore with Assert.Fail for Docker availability checks#72

Merged
devstress merged 4 commits intomainfrom
copilot/assert-fail-for-docker-issue
Apr 10, 2026
Merged

Replace Assert.Ignore with Assert.Fail for Docker availability checks#72
devstress merged 4 commits intomainfrom
copilot/assert-fail-for-docker-issue

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 9, 2026

  • Investigate CI failure: 7 Kafka tests fail with "Docker not available"
  • Root cause 1: bitnami/kafka:3.9.0 image no longer exists on Docker Hub — container never created
  • Root cause 2: Apache Kafka image rejects 0.0.0.0 in listeners format
  • Root cause 3: Aspire proxy port not resolvable via ReferenceExpression for container env vars
  • Fix: Switch to apache/kafka:3.9.0 with isProxied: false and direct port mapping
  • All 7 previously failing Kafka tests now pass
  • Full TutorialLabs suite: 533/533 passed (was 526/533)
  • Run parallel validation

Copilot AI and others added 2 commits April 9, 2026 11:36
… across all test files

Agent-Logs-Url: https://github.com/devstress/My3DLearning/sessions/83390dc6-fc9e-478e-a484-a2d6260821bc

Co-authored-by: devstress <30769729+devstress@users.noreply.github.com>
Root cause: Aspire's TCP proxy (randomly assigned port 35461) doesn't
properly relay Kafka's binary protocol. ApiVersionRequest consistently
times out through the proxy. Additionally, KAFKA_CFG_ADVERTISED_LISTENERS
hardcodes localhost:29094, which doesn't match the proxy's dynamic port.

Fix: Set isProxied: false on the Kafka endpoint so Docker maps port
29094 directly to container port 9094, bypassing the proxy entirely.
This ensures the advertised listener address matches the actual host port.

Agent-Logs-Url: https://github.com/devstress/My3DLearning/sessions/698b16d3-177d-4c3f-b6b3-e24a19e34316

Co-authored-by: devstress <30769729+devstress@users.noreply.github.com>
…afka:3.9.0

Root causes:
1. bitnami/kafka:3.9.0 image no longer exists on Docker Hub, so the
   container was never created by Aspire DCP
2. Apache Kafka image requires ://:PORT format (not ://0.0.0.0:PORT)
   in listeners, otherwise it rejects the config at startup
3. isProxied: false with direct port mapping (host:29092 → container:9092)
   is needed because Aspire's ReferenceExpression doesn't resolve the
   proxy port in container env vars

Agent-Logs-Url: https://github.com/devstress/My3DLearning/sessions/d337bf73-153e-47f0-b884-a0b2eb881ec6

Co-authored-by: devstress <30769729+devstress@users.noreply.github.com>
@devstress devstress marked this pull request as ready for review April 10, 2026 02:42
@devstress devstress merged commit 9a2a510 into main Apr 10, 2026
3 checks passed
@devstress devstress deleted the copilot/assert-fail-for-docker-issue branch April 10, 2026 02:45
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