You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by ru...@apache.org on 2026/08/13 12:58:58 UTC

(superset) 04/04: fix(ci): refresh apt cache before cache-apt-pkgs-action lookup

This is an automated email from the ASF dual-hosted git repository.

rusackas pushed a commit to branch ci/setup-uv
in repository https://gitbox.apache.org/repos/asf/superset.git

commit 7848c3563ee3901a1db3ecb78e5ac661f511c459
Author: rusackas <ev...@rusackas.com>
AuthorDate: Wed Aug 5 23:49:35 2026 -0700

    fix(ci): refresh apt cache before cache-apt-pkgs-action lookup
    
    cache-apt-pkgs-action assumes apt package lists are already fresh, which
    isn't true on all runner images (e.g. ubuntu-slim), causing package
    resolution to silently return an empty list and liccheck to fail with
    "Packages argument is empty".
    
    Co-Authored-By: Claude Opus 4.8 <no...@anthropic.com>
---
 .github/actions/setup-backend/action.yml | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/.github/actions/setup-backend/action.yml b/.github/actions/setup-backend/action.yml
index c50536eb165..c7bff2e3c1f 100644
--- a/.github/actions/setup-backend/action.yml
+++ b/.github/actions/setup-backend/action.yml
@@ -45,6 +45,13 @@ runs:
       with:
         python-version: ${{ steps.set-python-version.outputs.python-version }}
         enable-cache: true
+    - name: Update apt package lists
+      # cache-apt-pkgs-action assumes a fresh `apt-cache` index (true on GitHub-hosted
+      # runners, not on all self-hosted/custom runner images), so refresh it explicitly
+      # or package lookups silently resolve to an empty list.
+      if: inputs.install-superset == 'true'
+      shell: bash
+      run: sudo apt-get update
     - name: Install apt packages
       if: inputs.install-superset == 'true'
       uses: awalsh128/cache-apt-pkgs-action@553a35bb8ebd9fcabcb1c9451aa4c98e1b4ca8a9 # v1.6.3