Skip to content

Commit 50dea73

Browse files
committed
tmp: debug container ministack failed
1 parent 1c72adc commit 50dea73

1 file changed

Lines changed: 13 additions & 6 deletions

File tree

.github/workflows/code-check.yml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,6 @@ jobs:
4040
MINISTACK_ACCOUNT_ID: "000000000000"
4141
MINISTACK_REGION: us-east-1
4242
LOG_LEVEL: INFO
43-
options: >-
44-
--health-cmd "curl -f http://localhost:4566/_ministack/health"
45-
--health-interval 2s
46-
--health-timeout 5s
47-
--health-retries 30
48-
--health-start-period 5s
4943
steps:
5044
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
5145
with:
@@ -59,5 +53,18 @@ jobs:
5953
python-version: ${{ matrix.python-version }}
6054
- name: Install Dependencies
6155
run: uv sync --all-extras
56+
- name: Wait for ministack
57+
run: |
58+
for i in {1..60}; do
59+
if curl -fsS http://localhost:4566/_localstack/health >/dev/null; then
60+
echo "ministack is up"
61+
exit 0
62+
fi
63+
sleep 2
64+
done
65+
echo "ministack failed to start; dumping container logs:"
66+
docker ps -a
67+
docker logs "$(docker ps -aq --filter ancestor=ministackorg/ministack:1.3.53)" || true
68+
exit 1
6269
- name: Run tests
6370
run: uv run pytest

0 commit comments

Comments
 (0)