From 438fae0952474082bc8a5257fdb6958e769a5841 Mon Sep 17 00:00:00 2001 From: Ryan Cragun Date: Fri, 23 Aug 2024 13:23:28 -0600 Subject: [PATCH] ui: rebuild fontconfig cache on Github hosted runners (#28177) It appears that with the latest runner image[0] that we occasionally see a flaky test with an error related to our fontconfig cache: ``` Error: Browser timeout exceeded: 10s Error while executing test: Acceptance | wrapped_token query param functionality: it authenticates when used with the with=token query param Stderr: Fontconfig error: No writable cache directories [0822/180212.113587:WARNING:sandbox_linux.cc(430)] InitializeSandbox() called with multiple threads in process gpu-process. ``` This change rebuilds the fontconfig cache on Github hosted runners. Hopefully we can remove this at some point when a new runner image is released. [0] https://github.com/actions/runner-images/releases/tag/ubuntu22%2F20240818.1 Signed-off-by: Ryan Cragun --- .github/workflows/ci.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c4d995ed98..5f174da1d7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -170,6 +170,12 @@ jobs: run: | yarn install --frozen-lockfile npm rebuild node-sass + - if: needs.setup.outputs.is-enterprise != 'true' + name: Rebuild font cache on Github hosted runner + # Fix `Fontconfig error: No writable cache directories` error on Github hosted runners + # This seems to have been introduced with this runner image: https://github.com/actions/runner-images/releases/tag/ubuntu22%2F20240818.1 + # Hopefully this will resolve itself at some point with a newer image and we can remove it + run: fc-cache -f -v - if: needs.setup.outputs.is-enterprise == 'true' id: vault-auth name: Authenticate to Vault