[Concept,13/13] CI: Add artifacts for the 'make check' CI jobs

Message ID 20260204001002.2638622-14-sjg@u-boot.org
State New
Headers
Series Add putsn() for length-based console output |

Commit Message

Simon Glass Feb. 4, 2026, 12:09 a.m. UTC
  From: Simon Glass <simon.glass@canonical.com>

The python_check_template, used by the 'Check make check', 'Check make
qcheck' and 'Check make tcheck' jobs, does not collect test artifacts.
This means that when a test fails, the test-log.html file is not
available for debugging.

Add an after_script to copy the html/css files from the build
directories, and an artifacts section to save them, matching what
the buildman_and_testpy_template already does.

Co-developed-by: Claude Opus 4.5 <noreply@anthropic.com>
Signed-off-by: Simon Glass <simon.glass@canonical.com>
---

 .gitlab-ci.yml | 9 +++++++++
 1 file changed, 9 insertions(+)
  

Patch

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 9cbadb43a85..509a2956ecb 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -418,6 +418,15 @@  Examples:
     # Set environment variables
     - export TOOLPATH="--toolpath ${pwd}/build-sandbox/tools --toolpath /opt/coreboot"
     - export PATH=/opt/qemu/bin:${PATH}
+  after_script:
+    - cp -v build-*/*.{html,css} . 2>/dev/null || true
+    - rm -rf /tmp/venv
+  artifacts:
+    when: always
+    paths:
+      - "*.html"
+      - "*.css"
+    expire_in: 1 week
 
 Check make check:
   extends: .python_check_template