-
Notifications
You must be signed in to change notification settings - Fork 103
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
Update ghpr_mysql_test.groovy #3026
Conversation
Based on the diff, it seems that the key change in this pull request is the addition of an One potential problem is that the If the Overall, it's important to carefully consider the necessity and implementation of the |
PR Reviewer Guide 🔍
|
PR Code Suggestions ✨
|
unsuccessful { | ||
archiveArtifacts artifacts: "tidb-test/mysql_test/mysql-test.out", fingerprint: true | ||
} |
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.
Suggestion: Add a file existence check before archiving artifacts to prevent errors [Best practice, importance: 9]
unsuccessful { | |
archiveArtifacts artifacts: "tidb-test/mysql_test/mysql-test.out", fingerprint: true | |
} | |
unsuccessful { | |
if (fileExists('tidb-test/mysql_test/mysql-test.out')) { | |
archiveArtifacts artifacts: "tidb-test/mysql_test/mysql-test.out", fingerprint: true | |
} | |
} |
Co-authored-by: Purelind <purelind@users.noreply.github.com>
Based on the pull request description and diff, the key changes are:
Overall, the changes seem reasonable and will enhance the Jenkins pipeline script. However, there are a few potential problems to consider:
To address these potential issues, I suggest the following fixes:
|
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.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: purelind The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
[LGTM Timeline notifier]Timeline:
|
PR Type
enhancement
Description
unsuccessful
post condition to ensuretidb-test/mysql_test/mysql-test.out
is archived with fingerprinting.Changes walkthrough 📝
ghpr_mysql_test.groovy
Add artifact archiving on test failure
pipelines/PingCAP-QE/tidb-test/latest/ghpr_mysql_test.groovy
unsuccessful
post condition to archive artifacts.tidb-test/mysql_test/mysql-test.out
with fingerprinting.