From b74f5b1ca10bc776c5c84873ffe4a8bf0f7f6606 Mon Sep 17 00:00:00 2001 From: Sam Atkins Date: Thu, 16 Nov 2023 15:40:59 +0000 Subject: [PATCH] Meta: Publish dumped ref-test images as an Azure CI artifact Whenever the tests produce a `test-dumps` directory, publish the files in it as an artifact. This lets us peek at the screenshots and see what's mismatched, instead of just having to guess. --- Meta/Azure/Lagom.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Meta/Azure/Lagom.yml b/Meta/Azure/Lagom.yml index 5dd79297161..ef5bf3aa6d3 100644 --- a/Meta/Azure/Lagom.yml +++ b/Meta/Azure/Lagom.yml @@ -159,6 +159,17 @@ jobs: UBSAN_OPTIONS: 'print_stacktrace=1:print_summary=1:halt_on_error=1' TESTS_ONLY: 1 + # Detect if any test dumps exist, which enables the next step to publish them as an artifact. + - bash: | + if [[ -d $(Build.SourcesDirectory)/Meta/Lagom/Build/Ladybird/test-dumps ]]; then + echo "##vso[task.setvariable variable=TestDumpsExist]true" + fi + condition: always() + + - publish: $(Build.SourcesDirectory)/Meta/Lagom/Build/Ladybird/test-dumps + artifact: 'test-dumps-${{ parameters.os }}-${{ parameters.fuzzer }}' + condition: eq(variables.TestDumpsExist, 'true') + - ${{ if and(eq(parameters.fuzzer, 'NoFuzz'), eq(parameters.os, 'Linux') ) }}: - script: | ./run.sh