-
Notifications
You must be signed in to change notification settings - Fork 655
fix: fix test uploading to not overwrite itself #3859
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
base: main
Are you sure you want to change the base?
Conversation
WalkthroughThe pull request introduces uniquely named test result artifacts incorporating framework, test_type, and platform_arch into filenames. It updates the pytest action to generate and reference these uniquely named metadata and JUnit XML files, and modifies the metrics upload workflow to discover multiple metadata files using a wildcard pattern instead of a single file match. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Poem
Pre-merge checks❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (1)
.github/actions/pytest/action.yml (1)
87-104: Consider adding error handling for the file rename operation.While the unique naming scheme correctly prevents overwrites, the
mvcommand at line 93 lacks error checking. If the rename fails (e.g., due to filesystem issues), the metadata will reference a non-existent file, and subsequent processing could fail silently.Consider adding error checking:
JUNIT_UNIQUE_NAME="pytest_test_report_${{ inputs.framework }}_${{ inputs.test_type }}_${{ inputs.platform_arch }}.xml" # Rename XML file to unique name - mv "$JUNIT_FILE" "test-results/$JUNIT_UNIQUE_NAME" + if ! mv "$JUNIT_FILE" "test-results/$JUNIT_UNIQUE_NAME"; then + echo "❌ Failed to rename JUnit XML file" + exit 1 + fi
📜 Review details
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
.github/actions/pytest/action.yml(2 hunks).github/workflows/upload_complete_workflow_metrics.py(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (7)
- GitHub Check: trtllm (amd64)
- GitHub Check: trtllm (arm64)
- GitHub Check: sglang
- GitHub Check: operator (arm64)
- GitHub Check: operator (amd64)
- GitHub Check: vllm (amd64)
- GitHub Check: Build and Test - dynamo
🔇 Additional comments (2)
.github/workflows/upload_complete_workflow_metrics.py (1)
837-838: LGTM! Wildcard pattern correctly enables multi-artifact discovery.The change from a single
test_metadata.jsontotest_metadata_*.jsonproperly supports the new unique naming scheme introduced in the pytest action. This allows the script to discover and process multiple framework/test_type/arch-specific metadata files without conflicts..github/actions/pytest/action.yml (1)
120-122: LGTM! Upload paths correctly reference the uniquely named artifacts.The upload paths properly match the unique filenames created in the "Process Test Results" step, ensuring that each framework/test_type/arch combination uploads distinct artifacts without conflicts.
|
Could you edit the title to say which test or tests or test suite, and remove the dup 'fix'? |
Overview:
Details:
Where should the reviewer start?
Related Issues: (use one of the action keywords Closes / Fixes / Resolves / Relates to)
Summary by CodeRabbit