gitlab-ci: Refactor show logs code and archive logs
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 4 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | tests/acceptance: Bump avocado requirements to 83.0tests/ | +1 | 1 reply | |
| 2/3 | gitlab-ci: Refactor code that show logs of failed acceptances.gitlab-ci.yml | +2 | 1 reply | |
| 3/3 | gitlab-ci: Archive logs of acceptance tests.gitlab-ci.yml | +4 | 2 replies |
Reviews trailers per patch
All 3 patches have a Reviewed-by or Acked-by.
| Patch | Willian Rampazzo | Thomas Huth |
|---|---|---|
| 1/3 | R-b | |
| 2/3 | R-b | |
| 3/3 | R-b | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/3] gitlab-ci: Refactor show logs code and archive logs
Since the Travis CI time, it has carried (commit 67892c9537d9ac500934) a python code to print the logs of acceptance tests in case of fail. Recently Avocado released a new plug-in (called "testlogs") which allow us to configure the framework to show the logs of tests which finished with a given status. For example, print the logs of tests which FAIL or CANCEL. This series is about replacing the old implementation by that native Avocado feature, on the GitLab CI.
I took that opportunity to also introduce a change in the configuration to archive the tests results files on GitLab CI for 2 days, regarless the job failed or not. If the logs are important enough to retain them, it is possible to do so by clicking on a 'Keep' button on UI; or you can simply download it to your workstation.
Here is an example of job that succeed:
https://gitlab.com/wainersm/qemu/-/jobs/905873563
And its results files can be found at:
https://gitlab.com/wainersm/qemu/-/jobs/905873563/artifacts/browse/build/tests/results/latest/test-results/
Then an example of job that failed (I changed a test, forcing its fail):
https://gitlab.com/wainersm/qemu/-/jobs/906089498
[1] https://github.com/avocado-framework/avocado/issues/4266
Wainer dos Santos Moschetta (3):
tests/acceptance: Bump avocado requirements to 83.0
gitlab-ci: Refactor code that show logs of failed acceptances
gitlab-ci: Archive logs of acceptance tests
.gitlab-ci.yml | 7 ++++++- tests/requirements.txt | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-)
Signature · 1 line
2.28.0