Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .github/workflows/cre-local-env-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,18 @@ jobs:
printf -v data '{"name": "cre.local.startup.time", "github_username": "%s", "timestamp": "%s", "metadata": {"startup_seconds": %s, "is_ci": true, "runner": "self-hosted-ubuntu-24", "infra": "docker", "go_cache_hit": %s, "deps_download_seconds": %s}}' "$DX_ACTOR" "$EPOCHSECONDS" "${EXECUTION_TIME}" "${CACHE_HIT}" "${DEPS_DOWNLOAD_SECONDS}"
curl -X POST -H "Content-Type: application/json" -H "Authorization: Bearer ${GETDX_SECRET_KEY}" -d "$data" https://api.getdx.com/events.track

- name: Dump container logs
if: failure()
shell: bash
working-directory: core/scripts/cre/environment
run: |
mkdir -p logs/containers
for c in $(docker ps -a --format '{{.Names}}'); do
docker logs --timestamps "$c" > "logs/containers/${c}.log" 2>&1 || true
docker inspect "$c" > "logs/containers/${c}.inspect.json" 2>&1 || true
done
docker ps -a > logs/containers/_docker-ps.txt 2>&1 || true

- name: Upload all artifacts as single package
if: failure()
uses: actions/upload-artifact@v7
Expand Down
Loading