Truly independent web browser
CI: Save the logs of vcpkg ports that fail in benchmark builds
sideshowbarker30a6b650c064
diff --git a/.github/workflows/bench-pr.yml b/.github/workflows/bench-pr.ymlindex 948efee72fe..2cbf02d652b 100644--- a/.github/workflows/bench-pr.yml+++ b/.github/workflows/bench-pr.yml@@ -248,6 +248,16 @@ jobs:# it takes to tell a real mover from noise in a test, e.g. a bimodal timing, or a drift across the rounds.save_logs_and_raw_results() {cp "$XDG_CACHE_HOME"/ladybird-bench/compile-*.log "$out"/ 2> /dev/null || true+ # A compile log names a vcpkg port that failed to build, but the port's own logs hold the error.+ local arm port+ for arm in base head; do+ sed -n 's/^error: building \([^:[]*\).*/\1/p' "$XDG_CACHE_HOME/ladybird-bench/compile-$arm.log" 2> /dev/null \+ | sort -u | while read -r port; do+ mkdir -p "$out/vcpkg-$arm/$port"+ cp "$state/worktrees/ladybird-bench-$arm/Build/vcpkg/buildtrees/$port"/*.log "$out/vcpkg-$arm/$port"/ \+ 2> /dev/null || true+ done || true+ donelocal rawraw=$(sed -n 's/.*(raw results: \(.*\))$/\1/p' "$out/bench_pr.log" 2> /dev/null | tail -n 1)if [ -n "$raw" ] && [ -d "$raw" ]; thendiff --git a/.github/workflows/web-benchmarks.yml b/.github/workflows/web-benchmarks.ymlindex 94899d74824..f5cf0ab8ceb 100644--- a/.github/workflows/web-benchmarks.yml+++ b/.github/workflows/web-benchmarks.yml@@ -115,6 +115,30 @@ jobs:working-directory: ${{ github.workspace }}/Buildrun: cmake --build . --target ladybird+ # vcpkg's install log names a port that failed to build, but the port's own logs hold the error.+ - name: 'Collect the logs of vcpkg ports that failed to build'+ if: ${{ failure() }}+ shell: bash+ run: |+ out=vcpkg-failure-logs+ mkdir -p "$out"+ find Build -name vcpkg-manifest-install.log | while read -r install_log; do+ sed -n 's/^error: building \([^:[]*\).*/\1/p' "$install_log" | sort -u | while read -r port; do+ mkdir -p "$out/$port"+ find Build -path "*/buildtrees/$port/*.log" -exec cp {} "$out/$port"/ \; || true+ done+ cp "$install_log" "$out"/+ done || true++ - name: 'Save the logs of vcpkg ports that failed to build'+ if: ${{ failure() }}+ uses: actions/upload-artifact@v7+ with:+ name: vcpkg-failure-logs-${{ matrix.os_name }}-${{ matrix.arch }}+ path: vcpkg-failure-logs/+ if-no-files-found: ignore+ retention-days: 30+- name: 'Save Caches'uses: ./.github/actions/cache-savewith: