Skip to content

Harden Redis wait step in CI docker service startup #1099

Description

@nanaf6203-bit

Context

ci.yml waits for the Redis service container using a fragile docker exec + --filter ancestor command that can match the wrong container or race container startup.

Problem

Flaky CI: tests start before Redis is ready (connection errors) or the wait command targets the wrong container after runner image changes.

Proposed approach

Replace with a bounded retry loop (until redis-cli ping), explicit container name via docker ps --filter name=, or use service health options (options: --health-cmd)

Acceptance criteria

  • Wait step is deterministic across runner updates
  • Failure produces clear logs
  • CI green on repeated runs (document rerun evidence)

Activity

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions