Skip to content

Fix two flaky GHA integration test failures - #3079

Open
hahn-kev-bot wants to merge 1 commit into
developfrom
fix-gha-integration-flaky-pod-timeout-502
Open

hahn-kev-bot wants to merge 1 commit into
developfrom
fix-gha-integration-flaky-pod-timeout-502

Conversation

@hahn-kev-bot

Copy link
Copy Markdown
Collaborator

AI summary

Two rare GHA integration tests / dotnet failures, both seen on #3078 and neither caused by it.

Pods never became ready (run 45975673919): the pod describe shows 429 Too Many Requests pulling maildev/maildev from Docker Hub. Five images in the GHA manifests come from Docker Hub, pulled anonymously from shared runner IPs.

  • deployment/gha/kind.yaml turns on containerd's config_path, and a new setup-k8s step writes hosts.toml so docker.io pulls go through mirror.gcr.io first, falling back to Docker Hub.
  • The cluster is now named lexbox so that step can find its nodes.
  • Only partly proven: the log step stopped at its first failed command, so only one pod's describe was saved.

SendNewProject_Big got HTTP 502 (run 45980363548): lexbox returned the 502 0.34 s into the 189 MB push, and hgweb has no log line for the request. Apache closes idle connections after 5 s, and the proxy keeps them for 60 s. A push sent on a pooled connection just as Apache closes it fails, and a streamed body can't be retried.

  • Reproduced locally against lexbox-hgweb:develop with a client configured like the proxy: a 4.9 s wait plus a 200 ms stall failed 8/8, and the same timing passed with KeepAliveTimeout 120. The stall was artificial, so it isn't proven that this exact timing happened in CI.
  • hgweb/httpd.conf: KeepAliveTimeout 120. ProxyKernel.cs: PooledConnectionIdleTimeout pinned to the 60 s default, with comments linking the two values. This changes production hgweb; Apache's event MPM keeps idle connections cheap.

Better evidence next time:

  • The status step keeps going past a failed command and also saves pods and events.
  • kind keeps up to 200 Mi of container log, so lexbox-api's log isn't rotated away before the artifact is collected.

Two entries added to the "Known flaky" list in .github/AGENTS.md.

Both failures are rare: of the last 100 Develop API CI/CD runs, only these two showed these errors.

Test plan

  • Develop API CI/CD on this PR: the "Mirror docker.io pulls through mirror.gcr.io" step passes and pods become Ready. Newer kind node images run containerd 2, and the config patch uses the 1.x key io.containerd.grpc.v1.cri. A green run shows the patch doesn't break cluster creation, not that the mirror is used.
  • lexbox-hgweb is built for this PR, so the integration tests run against the new KeepAliveTimeout.
  • GHA integration tests / dotnet passes, including SendNewProject_Big.

🤖 Generated with Claude Code

Pods never became ready when the kind node's anonymous Docker Hub pulls got
429 Too Many Requests. The node now pulls docker.io images through
mirror.gcr.io, falling back to Docker Hub.

SendNewProject_Big got a 502 when the lexbox proxy sent the push on a pooled
connection just as hgweb's Apache closed it (KeepAliveTimeout 5s against the
proxy's 60s pool idle timeout); a streamed body can't be retried. Apache now
keeps idle connections 120s and the proxy's 60s is set explicitly.

The failure-log step keeps going past a failed command and saves pods and
events, and kind keeps up to 200Mi of container log so lexbox-api's log
survives to the artifact.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

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

Next included review available in 38 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 84c29144-287e-4036-b726-f9be8b7cdad6
Commits

Reviewing files that changed from the base of the PR and between e52af6d and ee8dc26.

Files selected for processing: 6

  • .github/AGENTS.md
  • .github/actions/setup-k8s/action.yml
  • .github/workflows/integration-test-gha.yaml
  • backend/SyncReverseProxy/ProxyKernel.cs
  • deployment/gha/kind.yaml
  • hgweb/httpd.conf
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

@github-actions github-actions Bot added the 📦 Lexbox issues related to any server side code, fw-headless included label Nov 27, 2026
@argos-ci

argos-ci Bot commented Nov 27, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Argos notifications ↗︎

Build Status Details Updated (UTC)
e2e (Inspect) ✅ No changes detected - Nov 27, 2026, 1:26 PM

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

📦 Lexbox issues related to any server side code, fw-headless included

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants