-
Notifications
You must be signed in to change notification settings - Fork 119
🌱 Improve logging in e2e tests #2974
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
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
/test metal3-centos-e2e-integration-test-main |
lentzi90
left a 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.
Looks good, just one suggestion about the naming
2a4a1a3 to
57ad73d
Compare
|
/hold |
57ad73d to
c5caa11
Compare
c5caa11 to
adbfb48
Compare
|
/test metal3-centos-e2e-integration-test-main |
|
/test metal3-centos-e2e-integration-test-main |
adbfb48 to
b8c3ff3
Compare
|
/test metal3-centos-e2e-integration-test-main |
b8c3ff3 to
90533ff
Compare
|
/test metal3-centos-e2e-integration-test-main |
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.
Pull request overview
This PR improves the logging and manifest collection in e2e tests by standardizing log collection paths and removing a redundant shell script in favor of Go-based manifest collection.
Key Changes:
- Introduced structured log directory constants (
workloadClusterLogCollectionBasePathandbootstrapClusterLogCollectionBasePath) to organize logs from different cluster types - Refactored log/manifest collection to include cluster names and operation phases (beforePivot, afterPivot, afterRePivot, beforeDelete) in directory paths for better organization
- Removed
scripts/fetch_manifests.shas manifest collection is now handled entirely in Go code
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 8 comments.
Show a summary per file
| File | Description |
|---|---|
| test/e2e/pivoting.go | Added new log path constants; updated log/manifest collection calls to use structured paths with cluster names; removed unused runtime import; replaced environment variable check with cluster proxy method; added bootstrap cluster log collection at all pivot stages |
| test/e2e/upgrade_clusterctl_test.go | Updated log paths to use new constants and include cluster names in directory structure |
| test/e2e/logcollector.go | Refactored FetchManifests to accept complete paths from callers; added "ironic" to manifest collection list; simplified FetchClusterLogs by moving cluster name appending to callers |
| test/e2e/common.go | Added manifest and log collection for both bootstrap and target clusters before cleanup |
| scripts/fetch_manifests.sh | Deleted obsolete shell script replaced by Go-based manifest collection |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
90533ff to
d221469
Compare
Signed-off-by: Muhammad Adil Ghaffar <[email protected]>
d221469 to
9ccaa36
Compare
|
/test metal3-centos-e2e-integration-test-main |
|
Please comment on and then resolve the comments, so it is easier to track what has been addressed. |
all comments were valid, happened because of copy pasting code, all of them are fixed. |
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.
Pull request overview
Copilot reviewed 5 out of 5 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
/retest |
|
/override build |
|
@tuminoid: Cannot update PR status for context build DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
What this PR does / why we need it:
Improve logging in e2e tests.
Fixes #
Checklist: