adoptium / aqa-test-tools

Home of Test Results Summary Service (TRSS) and PerfNext. These tools are designed to improve our ability to monitor and triage tests at the Adoptium project. The code is generic enough that it is extensible for use by any project that needs to monitor multiple CI servers and aggregate their results.
Apache License 2.0
28 stars 79 forks source link

Update build retry logic #858

Closed llxia closed 6 months ago

llxia commented 6 months ago

When querying a build, TRSS will retry 3 times. In the case of an error, the build will move back to the queue if the return code from Jenkins API is not 404. If the return code is 404, x-jenkins header is checked to ensure the error code is from Jenkins (not nginx). In this case, it means the build has an invalid url or is expired. retry function returns 404 and TRSS will stop processing this build. Otherwise, the error will be ignored (network issue) and the build will move back to the queue.

related: https://github.com/adoptium/aqa-test-tools/issues/852

llxia commented 6 months ago

This is the server change and it is tested locally.

netlify[bot] commented 6 months ago

Deploy Preview for eclipsefdn-adoptium-trss ready!

Name Link
Latest commit 255c0ff4380839e95ff69e13369de01030d2ba03
Latest deploy log https://app.netlify.com/sites/eclipsefdn-adoptium-trss/deploys/660465235c7efc000822fc01
Deploy Preview https://deploy-preview-858--eclipsefdn-adoptium-trss.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.