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

Output network-test logs into files in CI #6355

Merged
merged 6 commits into from
Oct 3, 2024

Conversation

ackintosh
Copy link
Member

@ackintosh ackintosh commented Sep 4, 2024

Issue Addressed

#6322 (comment)

We need the logs when debugging network test errors in CI. However, there's a problem of log interleaving if we run tests concurrently.

Proposed Changes

Added ci_logger feature flag, which enables outputting logs to files for each test. Also added an Upload logs step to the network-tests job, where the log files are uploaded as GitHub Artifacts.

The uploaded log files (Artifacts) can be downloaded from Summary page of the CI run.

image

@ackintosh ackintosh added the work-in-progress PR is a work-in-progress label Sep 4, 2024
@ackintosh ackintosh changed the title Output logs into files in CI Output network-test logs into files in CI Sep 5, 2024
@ackintosh ackintosh marked this pull request as ready for review September 5, 2024 13:50
@ackintosh ackintosh added ready-for-review The code is ready for review and removed work-in-progress PR is a work-in-progress labels Sep 5, 2024
Copy link
Member

@jimmygchen jimmygchen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice, thanks @ackintosh !

@jimmygchen jimmygchen added ready-for-merge This PR is ready to merge. and removed ready-for-review The code is ready for review labels Oct 3, 2024
@jimmygchen
Copy link
Member

@mergify queue

Copy link

mergify bot commented Oct 3, 2024

queue

✅ The pull request has been merged automatically

The pull request has been merged automatically at a4a673b

mergify bot added a commit that referenced this pull request Oct 3, 2024
@mergify mergify bot merged commit a4a673b into sigp:unstable Oct 3, 2024
28 checks passed
@ackintosh ackintosh deleted the logger-in-ci branch October 3, 2024 22:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-for-merge This PR is ready to merge.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants