Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: fix e2e tests debug log format #313

Merged
merged 1 commit into from
Dec 10, 2024
Merged
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
test: fix e2e tests debug log format
Refs: ETCM-7672
rsporny committed Dec 10, 2024
commit 922034c197dadc50283a060519d83f9c21839fbc
8 changes: 0 additions & 8 deletions .github/workflows/devnet.yml
Original file line number Diff line number Diff line change
@@ -131,14 +131,6 @@ jobs:
--decrypt=true \
--markers="$MARKERS"

- name: Add Line Numbers and Timestamps to debug.log
if: always()
run: |
cd E2E-tests
awk '{print strftime("[%Y-%m-%d %H:%M:%S]"), $0}' debug.log > debug_with_timestamps.log
nl -ba -s ' ' -w 8 debug_with_timestamps.log > debug_with_timestamps_and_line_numbers.log
mv debug_with_timestamps_and_line_numbers.log debug.log

- name: Archive Debug Log
if: always()
uses: actions/upload-artifact@v4
8 changes: 0 additions & 8 deletions .github/workflows/staging.yml
Original file line number Diff line number Diff line change
@@ -132,14 +132,6 @@ jobs:
--decrypt=true \
--markers="$MARKERS"

- name: Add Line Numbers and Timestamps to debug.log
if: always()
run: |
cd E2E-tests
awk '{print strftime("[%Y-%m-%d %H:%M:%S]"), $0}' debug.log > debug_with_timestamps.log
nl -ba -s ' ' -w 8 debug_with_timestamps.log > debug_with_timestamps_and_line_numbers.log
mv debug_with_timestamps_and_line_numbers.log debug.log

- name: Archive Debug Log
if: always()
uses: actions/upload-artifact@v4
2 changes: 2 additions & 0 deletions E2E-tests/pytest.ini
Original file line number Diff line number Diff line change
@@ -25,6 +25,8 @@ log_cli = True
log_cli_level = info
log_file = debug.log
log_file_level = debug
log_file_format = %(asctime)s %(levelname)-8s [logger=%(name)s, file=%(filename)s:%(lineno)d] %(message)s
log_file_date_format = %Y-%m-%d %H:%M:%S
addopts = -ra
--tb=short
--show-capture=no