Skip to content

Commit ed297d7

Browse files
committed
add debug
1 parent 6e95087 commit ed297d7

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/cicd.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,20 @@ jobs:
9898
run: |
9999
pip install pytest-timeout
100100
101+
- name: Debug OpenSearch/Elasticsearch status
102+
run: |
103+
echo "Root response:"
104+
curl -sS -D - http://localhost:$ES_PORT/ || true
105+
echo; echo "Cluster health:"
106+
curl -sS http://localhost:$ES_PORT/_cluster/health || true
107+
echo; echo "List opensearch/elasticsearch containers:"
108+
docker ps --format "table {{.ID}}\t{{.Image}}\t{{.Names}}" || true
109+
echo; echo "Container logs (first match):"
110+
cid=$(docker ps -q --filter "ancestor=opensearchproject/opensearch" | head -n1 || true)
111+
if [ -n "$cid" ]; then docker logs --tail 200 $cid || true; else echo "no opensearch container found"; fi
112+
env:
113+
ES_PORT: ${{ matrix.backend == 'elasticsearch8' && '9200' || '9202' }}
114+
101115
- name: Run test suite
102116
run: |
103117
pipenv run pytest -svvv --timeout=300

0 commit comments

Comments
 (0)