Skip to content

Commit 1f666cc

Browse files
authored
Debug logs + docker logs for compat pipeline, fix Automation nightly (smartcontractkit#21911)
* debug * fix pprof in nightly * more debug * set log levels everywhere
1 parent e3563ad commit 1f666cc

4 files changed

Lines changed: 21 additions & 15 deletions

File tree

.github/workflows/devenv-compat.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -230,10 +230,19 @@ jobs:
230230
echo "ci_summary.txt not found" >> $GITHUB_STEP_SUMMARY
231231
fi
232232
233-
- name: Upload Logs
233+
- name: Collect Docker container logs
234234
if: always()
235-
uses: actions/upload-artifact@v7
235+
working-directory: ${{ env.WORKING_DIR }}
236+
run: |
237+
mkdir -p logs
238+
for container in $(docker ps -q); do
239+
container_name=$(docker inspect --format='{{.Name}}' $container | sed 's/^\///')
240+
docker logs $container > "logs/${container_name}.log" 2>&1
241+
done
242+
243+
- name: Upload logs
244+
if: always()
245+
uses: actions/upload-artifact@v4
236246
with:
237247
name: container-logs-smoke-${{ job.check_run_id }}
238-
path: ${{ env.LOGS_DIR }}
239-
retention-days: 3
248+
path: ${{ env.LOGS_DIR }}

.github/workflows/devenv-core-compat.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@ permissions:
1313
contents: read
1414

1515
jobs:
16-
# CREcluster compatibility and upgrade test
17-
# TODO
18-
1916
# Data Feeds v1 upgrade test
2017
# this verifies that all the versions existing in RANE SOT for Data Feeds v1 can be upgraded to the latest version
2118
# TODO: disabled for now until we have connectivity
@@ -33,7 +30,7 @@ jobs:
3330
# no-git-rollback: true
3431
# working-directory: "devenv"
3532
# logs-directory: "./devenv/tests/ocr2/logs"
36-
# ctf-log-level: "info"
33+
# ctf-log-level: "debug" # trace, debug, info
3734
# strip-image-suffix: "v"
3835
# secrets: inherit
3936

@@ -63,9 +60,9 @@ jobs:
6360
# directory with your developer environment to run buildcmd and envcmd
6461
working-directory: "devenv"
6562
# directory for executing your tests, to run testcmd
66-
logs-directory: "./devenv/tests/ocr2/logs"
63+
logs-directory: "./devenv/logs"
6764
# CTF log level
68-
ctf-log-level: "info"
65+
ctf-log-level: "debug"
6966
# this is needed to remove 'v' from Git tags to match SDLC ECR tags
7067
strip-image-suffix: "v"
7168
secrets: inherit
@@ -95,7 +92,7 @@ jobs:
9592
# directory for executing your tests, to run testcmd
9693
logs-directory: "./system-tests/tests/smoke/cre/logs"
9794
# CTF log level
98-
ctf-log-level: "info"
95+
ctf-log-level: "debug"
9996
# this is needed to remove 'v' from Git tags to match SDLC ECR tags
10097
strip-image-suffix: "v"
10198
secrets: inherit

.github/workflows/legacy-system-tests-nightly.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -354,10 +354,10 @@ jobs:
354354
path: devenv/tests/${{ matrix.tests_dir }}/logs
355355
retention-days: 3
356356

357-
- name: Upload DF1 soak alloc.pprof
357+
- name: Upload Go pprof
358358
if: always()
359359
uses: actions/upload-artifact@v7
360360
with:
361-
name: alloc.pprof
361+
name: alloc.pprof-${{ job.check_run_id }}
362362
path: devenv/tests/${{ matrix.tests_dir }}/alloc.pprof
363363
retention-days: 7

.github/workflows/post-build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
exclude-refs: "ccip"
4242
working-directory: "devenv"
4343
logs-directory: "./devenv/tests/ocr2/logs"
44-
ctf-log-level: "info"
44+
ctf-log-level: "debug"
4545
strip-image-suffix: "v"
4646
secrets: inherit
4747

@@ -61,6 +61,6 @@ jobs:
6161
exclude-refs: "ccip"
6262
working-directory: "./system-tests/tests"
6363
logs-directory: "./system-tests/tests/smoke/cre/logs"
64-
ctf-log-level: "info"
64+
ctf-log-level: "debug"
6565
strip-image-suffix: "v"
6666
secrets: inherit

0 commit comments

Comments
 (0)