chore(gha): bump ubuntu to latest fresh release (#31390)

This commit is contained in:
Maxime Beauchemin 2024-12-18 23:32:10 -08:00 committed by GitHub
parent 723ef591a5
commit 531f1b6aa4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
40 changed files with 56 additions and 56 deletions

View File

@ -23,7 +23,7 @@ on:
jobs: jobs:
bump-python-package: bump-python-package:
runs-on: ubuntu-22.04 runs-on: ubuntu-24.04
permissions: permissions:
actions: write actions: write
contents: write contents: write

View File

@ -9,7 +9,7 @@ on:
jobs: jobs:
cancel-duplicate-runs: cancel-duplicate-runs:
name: Cancel duplicate workflow runs name: Cancel duplicate workflow runs
runs-on: ubuntu-22.04 runs-on: ubuntu-24.04
permissions: permissions:
actions: write actions: write
contents: read contents: read

View File

@ -19,7 +19,7 @@ concurrency:
jobs: jobs:
check_db_migration_conflict: check_db_migration_conflict:
name: Check DB migration conflict name: Check DB migration conflict
runs-on: ubuntu-22.04 runs-on: ubuntu-24.04
permissions: permissions:
contents: read contents: read
pull-requests: write pull-requests: write

View File

@ -17,7 +17,7 @@ concurrency:
jobs: jobs:
analyze: analyze:
name: Analyze name: Analyze
runs-on: ubuntu-22.04 runs-on: ubuntu-24.04
permissions: permissions:
actions: read actions: read
contents: read contents: read

View File

@ -24,7 +24,7 @@ permissions:
jobs: jobs:
dependency-review: dependency-review:
if: github.event_name == 'pull_request' if: github.event_name == 'pull_request'
runs-on: ubuntu-22.04 runs-on: ubuntu-24.04
steps: steps:
- name: "Checkout Repository" - name: "Checkout Repository"
uses: actions/checkout@v4 uses: actions/checkout@v4

View File

@ -8,7 +8,7 @@ on:
jobs: jobs:
config: config:
runs-on: "ubuntu-22.04" runs-on: ubuntu-24.04
outputs: outputs:
has-secrets: ${{ steps.check.outputs.has-secrets }} has-secrets: ${{ steps.check.outputs.has-secrets }}
steps: steps:
@ -23,7 +23,7 @@ jobs:
build: build:
needs: config needs: config
if: needs.config.outputs.has-secrets if: needs.config.outputs.has-secrets
runs-on: ubuntu-22.04 runs-on: ubuntu-24.04
defaults: defaults:
run: run:
working-directory: superset-embedded-sdk working-directory: superset-embedded-sdk

View File

@ -13,7 +13,7 @@ concurrency:
jobs: jobs:
embedded-sdk-test: embedded-sdk-test:
runs-on: ubuntu-22.04 runs-on: ubuntu-24.04
defaults: defaults:
run: run:
working-directory: superset-embedded-sdk working-directory: superset-embedded-sdk

View File

@ -6,7 +6,7 @@ on:
jobs: jobs:
config: config:
runs-on: "ubuntu-22.04" runs-on: ubuntu-24.04
outputs: outputs:
has-secrets: ${{ steps.check.outputs.has-secrets }} has-secrets: ${{ steps.check.outputs.has-secrets }}
steps: steps:
@ -22,7 +22,7 @@ jobs:
needs: config needs: config
if: needs.config.outputs.has-secrets if: needs.config.outputs.has-secrets
name: Cleanup ephemeral envs name: Cleanup ephemeral envs
runs-on: ubuntu-22.04 runs-on: ubuntu-24.04
permissions: permissions:
pull-requests: write pull-requests: write
steps: steps:

View File

@ -21,7 +21,7 @@ jobs:
group: ${{ github.workflow }}-${{ github.event.inputs.issue_number || github.event.issue.number || github.run_id }}-comment group: ${{ github.workflow }}-${{ github.event.inputs.issue_number || github.event.issue.number || github.run_id }}-comment
cancel-in-progress: true cancel-in-progress: true
name: Evaluate ephemeral env comment trigger (/testenv) name: Evaluate ephemeral env comment trigger (/testenv)
runs-on: ubuntu-22.04 runs-on: ubuntu-24.04
permissions: permissions:
pull-requests: write pull-requests: write
outputs: outputs:
@ -115,7 +115,7 @@ jobs:
needs: ephemeral-env-comment needs: ephemeral-env-comment
if: needs.ephemeral-env-comment.outputs.slash-command == 'up' if: needs.ephemeral-env-comment.outputs.slash-command == 'up'
name: ephemeral-docker-build name: ephemeral-docker-build
runs-on: ubuntu-22.04 runs-on: ubuntu-24.04
steps: steps:
- name: Get Info from comment - name: Get Info from comment
uses: actions/github-script@v7 uses: actions/github-script@v7
@ -190,7 +190,7 @@ jobs:
needs: [ephemeral-env-comment, ephemeral-docker-build] needs: [ephemeral-env-comment, ephemeral-docker-build]
if: needs.ephemeral-env-comment.outputs.slash-command == 'up' if: needs.ephemeral-env-comment.outputs.slash-command == 'up'
name: Spin up an ephemeral environment name: Spin up an ephemeral environment
runs-on: ubuntu-22.04 runs-on: ubuntu-24.04
permissions: permissions:
contents: read contents: read
pull-requests: write pull-requests: write

View File

@ -8,7 +8,7 @@ on:
jobs: jobs:
config: config:
runs-on: "ubuntu-22.04" runs-on: ubuntu-24.04
outputs: outputs:
has-secrets: ${{ steps.check.outputs.has-secrets }} has-secrets: ${{ steps.check.outputs.has-secrets }}
steps: steps:
@ -24,7 +24,7 @@ jobs:
needs: config needs: config
if: needs.config.outputs.has-secrets if: needs.config.outputs.has-secrets
name: Generate Report name: Generate Report
runs-on: ubuntu-22.04 runs-on: ubuntu-24.04
steps: steps:
- name: "Checkout ${{ github.ref }} ( ${{ github.sha }} )" - name: "Checkout ${{ github.ref }} ( ${{ github.sha }} )"
uses: actions/checkout@v4 uses: actions/checkout@v4

View File

@ -11,7 +11,7 @@ on:
jobs: jobs:
validate-all-ghas: validate-all-ghas:
runs-on: ubuntu-22.04 runs-on: ubuntu-24.04
steps: steps:
- name: Checkout Repository - name: Checkout Repository
uses: actions/checkout@v4 uses: actions/checkout@v4

View File

@ -9,7 +9,7 @@ on:
jobs: jobs:
superbot-orglabel: superbot-orglabel:
runs-on: ubuntu-22.04 runs-on: ubuntu-24.04
permissions: permissions:
contents: read contents: read
pull-requests: write pull-requests: write

View File

@ -7,7 +7,7 @@ jobs:
permissions: permissions:
contents: read contents: read
pull-requests: write pull-requests: write
runs-on: ubuntu-22.04 runs-on: ubuntu-24.04
steps: steps:
- uses: actions/labeler@v5 - uses: actions/labeler@v5
with: with:

View File

@ -6,7 +6,7 @@ on:
jobs: jobs:
latest-release: latest-release:
name: Add/update tag to new release name: Add/update tag to new release
runs-on: ubuntu-22.04 runs-on: ubuntu-24.04
permissions: permissions:
contents: write contents: write

View File

@ -12,7 +12,7 @@ concurrency:
jobs: jobs:
license_check: license_check:
name: License Check name: License Check
runs-on: ubuntu-22.04 runs-on: ubuntu-24.04
steps: steps:
- name: "Checkout ${{ github.ref }} ( ${{ github.sha }} )" - name: "Checkout ${{ github.ref }} ( ${{ github.sha }} )"
uses: actions/checkout@v4 uses: actions/checkout@v4

View File

@ -11,7 +11,7 @@ concurrency:
jobs: jobs:
check-hold-label: check-hold-label:
runs-on: ubuntu-22.04 runs-on: ubuntu-24.04
steps: steps:
- name: Check for 'hold' label - name: Check for 'hold' label
uses: actions/github-script@v7 uses: actions/github-script@v7

View File

@ -10,7 +10,7 @@ on:
jobs: jobs:
lint-check: lint-check:
runs-on: ubuntu-22.04 runs-on: ubuntu-24.04
permissions: permissions:
contents: read contents: read
pull-requests: write pull-requests: write

View File

@ -15,7 +15,7 @@ concurrency:
jobs: jobs:
pre-commit: pre-commit:
runs-on: ubuntu-22.04 runs-on: ubuntu-24.04
strategy: strategy:
matrix: matrix:
python-version: ["current", "next", "previous"] python-version: ["current", "next", "previous"]

View File

@ -21,7 +21,7 @@ jobs:
prefer_typescript: prefer_typescript:
if: github.ref == 'ref/heads/master' && github.event_name == 'pull_request' if: github.ref == 'ref/heads/master' && github.event_name == 'pull_request'
name: Prefer TypeScript name: Prefer TypeScript
runs-on: ubuntu-22.04 runs-on: ubuntu-24.04
permissions: permissions:
contents: read contents: read
pull-requests: write pull-requests: write

View File

@ -8,7 +8,7 @@ on:
jobs: jobs:
config: config:
runs-on: "ubuntu-22.04" runs-on: ubuntu-24.04
outputs: outputs:
has-secrets: ${{ steps.check.outputs.has-secrets }} has-secrets: ${{ steps.check.outputs.has-secrets }}
steps: steps:
@ -25,7 +25,7 @@ jobs:
if: needs.config.outputs.has-secrets if: needs.config.outputs.has-secrets
name: Bump version and publish package(s) name: Bump version and publish package(s)
runs-on: ubuntu-22.04 runs-on: ubuntu-24.04
strategy: strategy:
matrix: matrix:

View File

@ -6,7 +6,7 @@ on:
jobs: jobs:
config: config:
runs-on: "ubuntu-22.04" runs-on: ubuntu-24.04
outputs: outputs:
has-secrets: ${{ steps.check.outputs.has-secrets }} has-secrets: ${{ steps.check.outputs.has-secrets }}
steps: steps:
@ -21,7 +21,7 @@ jobs:
cypress-applitools: cypress-applitools:
needs: config needs: config
if: needs.config.outputs.has-secrets if: needs.config.outputs.has-secrets
runs-on: ubuntu-22.04 runs-on: ubuntu-24.04
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:

View File

@ -12,7 +12,7 @@ env:
jobs: jobs:
config: config:
runs-on: "ubuntu-22.04" runs-on: ubuntu-24.04
outputs: outputs:
has-secrets: ${{ steps.check.outputs.has-secrets }} has-secrets: ${{ steps.check.outputs.has-secrets }}
steps: steps:
@ -27,7 +27,7 @@ jobs:
cron: cron:
needs: config needs: config
if: needs.config.outputs.has-secrets if: needs.config.outputs.has-secrets
runs-on: ubuntu-22.04 runs-on: ubuntu-24.04
strategy: strategy:
matrix: matrix:
node: [20] node: [20]

View File

@ -15,7 +15,7 @@ concurrency:
jobs: jobs:
test-load-examples: test-load-examples:
runs-on: ubuntu-22.04 runs-on: ubuntu-24.04
env: env:
PYTHONPATH: ${{ github.workspace }} PYTHONPATH: ${{ github.workspace }}
SUPERSET_CONFIG: tests.integration_tests.superset_test_config SUPERSET_CONFIG: tests.integration_tests.superset_test_config

View File

@ -12,7 +12,7 @@ on:
jobs: jobs:
config: config:
runs-on: "ubuntu-22.04" runs-on: ubuntu-24.04
outputs: outputs:
has-secrets: ${{ steps.check.outputs.has-secrets }} has-secrets: ${{ steps.check.outputs.has-secrets }}
steps: steps:
@ -28,7 +28,7 @@ jobs:
needs: config needs: config
if: needs.config.outputs.has-secrets if: needs.config.outputs.has-secrets
name: Build & Deploy name: Build & Deploy
runs-on: "ubuntu-22.04" runs-on: ubuntu-24.04
steps: steps:
- name: "Checkout ${{ github.ref }} ( ${{ github.sha }} )" - name: "Checkout ${{ github.ref }} ( ${{ github.sha }} )"
uses: actions/checkout@v4 uses: actions/checkout@v4

View File

@ -51,7 +51,7 @@ jobs:
https://www.plaidcloud.com/ https://www.plaidcloud.com/
build-deploy: build-deploy:
name: Build & Deploy name: Build & Deploy
runs-on: ubuntu-22.04 runs-on: ubuntu-24.04
defaults: defaults:
run: run:
working-directory: docs working-directory: docs

View File

@ -28,6 +28,7 @@ concurrency:
jobs: jobs:
cypress-matrix: cypress-matrix:
# Somehow one test flakes on 24.04 for unknown reasons, this is the only GHA left on 22.04
runs-on: ubuntu-22.04 runs-on: ubuntu-22.04
permissions: permissions:
contents: read contents: read

View File

@ -15,7 +15,7 @@ concurrency:
jobs: jobs:
frontend-build: frontend-build:
runs-on: ubuntu-22.04 runs-on: ubuntu-24.04
steps: steps:
- name: "Checkout ${{ github.ref }} ( ${{ github.sha }} )" - name: "Checkout ${{ github.ref }} ( ${{ github.sha }} )"
uses: actions/checkout@v4 uses: actions/checkout@v4

View File

@ -13,7 +13,7 @@ concurrency:
jobs: jobs:
lint-test: lint-test:
runs-on: ubuntu-22.04 runs-on: ubuntu-24.04
steps: steps:
- name: "Checkout ${{ github.ref }} ( ${{ github.sha }} )" - name: "Checkout ${{ github.ref }} ( ${{ github.sha }} )"
uses: actions/checkout@v4 uses: actions/checkout@v4

View File

@ -20,7 +20,7 @@ on:
jobs: jobs:
release: release:
runs-on: ubuntu-22.04 runs-on: ubuntu-24.04
permissions: permissions:
contents: write contents: write
pull-requests: write pull-requests: write

View File

@ -15,7 +15,7 @@ concurrency:
jobs: jobs:
test-mysql: test-mysql:
runs-on: ubuntu-22.04 runs-on: ubuntu-24.04
env: env:
PYTHONPATH: ${{ github.workspace }} PYTHONPATH: ${{ github.workspace }}
SUPERSET_CONFIG: tests.integration_tests.superset_test_config SUPERSET_CONFIG: tests.integration_tests.superset_test_config
@ -74,7 +74,7 @@ jobs:
token: ${{ secrets.CODECOV_TOKEN }} token: ${{ secrets.CODECOV_TOKEN }}
verbose: true verbose: true
test-postgres: test-postgres:
runs-on: ubuntu-22.04 runs-on: ubuntu-24.04
strategy: strategy:
matrix: matrix:
python-version: ["current", "next", "previous"] python-version: ["current", "next", "previous"]
@ -136,7 +136,7 @@ jobs:
verbose: true verbose: true
test-sqlite: test-sqlite:
runs-on: ubuntu-22.04 runs-on: ubuntu-24.04
env: env:
PYTHONPATH: ${{ github.workspace }} PYTHONPATH: ${{ github.workspace }}
SUPERSET_CONFIG: tests.integration_tests.superset_test_config SUPERSET_CONFIG: tests.integration_tests.superset_test_config

View File

@ -16,7 +16,7 @@ concurrency:
jobs: jobs:
test-postgres-presto: test-postgres-presto:
runs-on: ubuntu-22.04 runs-on: ubuntu-24.04
env: env:
PYTHONPATH: ${{ github.workspace }} PYTHONPATH: ${{ github.workspace }}
SUPERSET_CONFIG: tests.integration_tests.superset_test_config SUPERSET_CONFIG: tests.integration_tests.superset_test_config
@ -84,7 +84,7 @@ jobs:
verbose: true verbose: true
test-postgres-hive: test-postgres-hive:
runs-on: ubuntu-22.04 runs-on: ubuntu-24.04
env: env:
PYTHONPATH: ${{ github.workspace }} PYTHONPATH: ${{ github.workspace }}
SUPERSET_CONFIG: tests.integration_tests.superset_test_config SUPERSET_CONFIG: tests.integration_tests.superset_test_config

View File

@ -16,7 +16,7 @@ concurrency:
jobs: jobs:
unit-tests: unit-tests:
runs-on: ubuntu-22.04 runs-on: ubuntu-24.04
strategy: strategy:
matrix: matrix:
python-version: ["current", "next"] python-version: ["current", "next"]

View File

@ -15,7 +15,7 @@ concurrency:
jobs: jobs:
frontend-check-translations: frontend-check-translations:
runs-on: ubuntu-22.04 runs-on: ubuntu-24.04
steps: steps:
- name: "Checkout ${{ github.ref }} ( ${{ github.sha }} )" - name: "Checkout ${{ github.ref }} ( ${{ github.sha }} )"
uses: actions/checkout@v4 uses: actions/checkout@v4
@ -46,7 +46,7 @@ jobs:
npm run build-translation npm run build-translation
babel-extract: babel-extract:
runs-on: ubuntu-22.04 runs-on: ubuntu-24.04
steps: steps:
- name: "Checkout ${{ github.ref }} ( ${{ github.sha }} )" - name: "Checkout ${{ github.ref }} ( ${{ github.sha }} )"
uses: actions/checkout@v4 uses: actions/checkout@v4

View File

@ -18,7 +18,7 @@ concurrency:
jobs: jobs:
app-checks: app-checks:
runs-on: ubuntu-22.04 runs-on: ubuntu-24.04
steps: steps:
- name: "Checkout ${{ github.ref }} ( ${{ github.sha }} )" - name: "Checkout ${{ github.ref }} ( ${{ github.sha }} )"
uses: actions/checkout@v4 uses: actions/checkout@v4

View File

@ -15,7 +15,7 @@ on:
jobs: jobs:
supersetbot: supersetbot:
runs-on: ubuntu-22.04 runs-on: ubuntu-24.04
if: > if: >
github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_dispatch' ||
(github.event_name == 'issue_comment' && contains(github.event.comment.body, '@supersetbot')) (github.event_name == 'issue_comment' && contains(github.event.comment.body, '@supersetbot'))

View File

@ -23,7 +23,7 @@ on:
- 'false' - 'false'
jobs: jobs:
config: config:
runs-on: "ubuntu-22.04" runs-on: ubuntu-24.04
outputs: outputs:
has-secrets: ${{ steps.check.outputs.has-secrets }} has-secrets: ${{ steps.check.outputs.has-secrets }}
steps: steps:
@ -39,7 +39,7 @@ jobs:
needs: config needs: config
if: needs.config.outputs.has-secrets if: needs.config.outputs.has-secrets
name: docker-release name: docker-release
runs-on: ubuntu-22.04 runs-on: ubuntu-24.04
strategy: strategy:
matrix: matrix:
build_preset: ["dev", "lean", "py310", "websocket", "dockerize", "py311"] build_preset: ["dev", "lean", "py310", "websocket", "dockerize", "py311"]
@ -100,7 +100,7 @@ jobs:
update-prs-with-release-info: update-prs-with-release-info:
needs: config needs: config
if: needs.config.outputs.has-secrets if: needs.config.outputs.has-secrets
runs-on: ubuntu-22.04 runs-on: ubuntu-24.04
permissions: permissions:
contents: read contents: read
pull-requests: write pull-requests: write

View File

@ -8,7 +8,7 @@ on:
jobs: jobs:
config: config:
runs-on: "ubuntu-22.04" runs-on: ubuntu-24.04
outputs: outputs:
has-secrets: ${{ steps.check.outputs.has-secrets }} has-secrets: ${{ steps.check.outputs.has-secrets }}
steps: steps:
@ -23,7 +23,7 @@ jobs:
process-and-upload: process-and-upload:
needs: config needs: config
if: needs.config.outputs.has-secrets if: needs.config.outputs.has-secrets
runs-on: ubuntu-22.04 runs-on: ubuntu-24.04
name: Generate Reports name: Generate Reports
steps: steps:
- name: Checkout Repository - name: Checkout Repository

View File

@ -6,7 +6,7 @@ on:
jobs: jobs:
welcome: welcome:
runs-on: ubuntu-22.04 runs-on: ubuntu-24.04
permissions: permissions:
pull-requests: write pull-requests: write

View File

@ -18,5 +18,5 @@
*/ */
import './assets/stylesheets/superset.less'; import './assets/stylesheets/superset.less';
// Importing Antd under its own stylesheet to prevent unintentional theming. // Importing Antd under its own stylesheet to prevent unintentional theming
import './assets/stylesheets/antd/index.less'; import './assets/stylesheets/antd/index.less';

View File

@ -34,8 +34,7 @@ from superset.security import SupersetSecurityManager # noqa: F401
# All of the fields located here should be considered legacy. The correct way # All of the fields located here should be considered legacy. The correct way
# to declare "global" dependencies is to define it in extensions.py, # to declare "global" dependencies is to define it in extensions.py,
# then initialize it in app.create_app(). These fields will be removed # then initialize it in app.create_app(). These fields will be removed
# in subsequent PRs as things are migrated towards the factory # in subsequent PRs as things are migrated towards the factory pattern
# pattern
app: Flask = current_app app: Flask = current_app
cache = cache_manager.cache cache = cache_manager.cache
conf = LocalProxy(lambda: current_app.config) conf = LocalProxy(lambda: current_app.config)