Repository navigation
fix(ci): improve e2e worker failure diagnostics and cleanup #1015
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
Merged
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
f571bf3
fix(e2e): improve worker crash diagnostics and extend gpt-oss-120b ti…
key4ng db51d3a
fix(ci): increase e2e test step timeout from 20 to 25 minutes
key4ng 438258e
fix(e2e): address review feedback and bump test step timeout
key4ng e8d658c
test(e2e): temporarily force Llama-3.1-8B OOM to validate crash diagn…
key4ng 2802d14
fix(e2e): move worker log diagnostics to session end
key4ng b796d23
fix(ci): move worker log dump to separate workflow step
key4ng 9c5f1b2
fix(ci): also dump worker logs on timeout/cancellation
key4ng 9933691
fix(e2e): clean up failed worker processes to free GPU memory
key4ng 51a6437
fix(ci): show artifact name in worker log dump instead of local path
key4ng 24d0b53
fix(ci): consolidate worker log snapshot steps and add to benchmarks
key4ng 5f1a3a7
refactor(ci): extract worker log dump into shared script
key4ng bf34620
fix(ci): show accurate line count in worker log snapshot header
key4ng 0405834
fix(ci): prevent worker log snapshot from crashing on empty log dir
key4ng 965912b
chore(ci): rename worker log step to Worker failure diagnostics
key4ng 5321f82
revert(e2e): remove temporary OOM trigger from Llama-3.1-8B-Instruct
key4ng File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| #!/usr/bin/env bash | ||
| # Dump the last worker log snapshot and list all log files. | ||
| # | ||
| # Usage: ci_dump_worker_logs.sh <log_dir> [artifact_name] | ||
| # | ||
| # Arguments: | ||
| # log_dir Directory containing worker log files | ||
| # artifact_name (optional) Artifact name to display in the file listing | ||
|
|
||
| set -euo pipefail | ||
|
|
||
| LOG_DIR="${1:?Usage: ci_dump_worker_logs.sh <log_dir> [artifact_name]}" | ||
| ARTIFACT="${2:-$LOG_DIR}" | ||
|
|
||
| if [ ! -d "$LOG_DIR" ]; then exit 0; fi | ||
|
|
||
| SEP="============================================================" | ||
| DASH="------------------------------------------------------------" | ||
|
|
||
| # Dump last worker log (most recent = last retry of the failed model) | ||
| LAST_LOG=$(ls -t "$LOG_DIR"/worker-*.log 2>/dev/null | head -1 || true) | ||
| if [ -n "$LAST_LOG" ]; then | ||
| TOTAL=$(wc -l < "$LAST_LOG") | ||
| SHOW=$(( TOTAL < 200 ? TOTAL : 200 )) | ||
| echo "" | ||
| echo "$SEP" | ||
| echo "Last worker log: $(basename "$LAST_LOG") (last $SHOW of $TOTAL lines)" | ||
| echo "$DASH" | ||
| tail -200 "$LAST_LOG" | ||
| echo "$SEP" | ||
| fi | ||
|
|
||
| # List all log files with sizes | ||
| echo "" | ||
| echo "$SEP" | ||
| echo "All worker logs in artifact: $ARTIFACT" | ||
| echo "$DASH" | ||
| ls -lhS "$LOG_DIR"/*.log 2>/dev/null || echo " (none)" | ||
| echo "$SEP" |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.