Skip to content

Commit

Permalink
chore(tidb): archive log if test not successful (#3028)
Browse files Browse the repository at this point in the history
### **User description**
archive log if test not successful, eg test timeout


___

### **PR Type**
enhancement


___

### **Description**
- Modified the post-build action in the `ghpr_mysql_test.groovy`
pipeline script to archive logs if the test is unsuccessful instead of
only on failure.



___



### **Changes walkthrough** 📝
<table><thead><tr><th></th><th align="left">Relevant
files</th></tr></thead><tbody><tr><td><strong>Enhancement</strong></td><td><table>
<tr>
  <td>
    <details>
<summary><strong>ghpr_mysql_test.groovy</strong><dd><code>Archive logs
if test is unsuccessful instead of failure</code>&nbsp; &nbsp;
</dd></summary>
<hr>

pipelines/pingcap/tidb/latest/ghpr_mysql_test.groovy

<li>Changed the post-build action from <code>failure</code> to
<code>unsuccessful</code> for <br>archiving artifacts.<br>


</details>


  </td>
<td><a
href="https://github.com/PingCAP-QE/ci/pull/3028/files#diff-1a06f14532e2be1eefc21763f67d1a83b63ab9740c315b30ae4132768be19121">+1/-1</a>&nbsp;
&nbsp; &nbsp; </td>

</tr>                    
</table></td></tr></tr></tbody></table>

___

> 💡 **PR-Agent usage**:
>Comment `/help` on the PR to get a list of all available PR-Agent tools
and their descriptions

Signed-off-by: purelind <purelind@gmail.com>
  • Loading branch information
purelind authored Jul 12, 2024
1 parent e2f7aa6 commit 084cf51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pipelines/pingcap/tidb/latest/ghpr_mysql_test.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ pipeline {
always {
junit(testResults: "**/result.xml")
}
failure {
unsuccessful {
archiveArtifacts(artifacts: 'tidb-test/mysql_test/mysql-test.out*', allowEmptyArchive: true)
}
}
Expand Down

0 comments on commit 084cf51

Please sign in to comment.