Skip to content

Commit 2be3ee0

Browse files
committed
Merge commit 'refs/codex/apache-master' into feat/bulk-import-ui-phase-1
2 parents 4350314 + 7fb8604 commit 2be3ee0

269 files changed

Lines changed: 19987 additions & 2774 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.asf.yaml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ github:
9292
- test-sqlite
9393
- unit-tests-required
9494
- frontend-tests-required
95+
- asf-allowlist-check
9596

9697
required_pull_request_reviews:
9798
dismiss_stale_reviews: false

‎.github/dependabot.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ updates:
126126
- "oxlint"
127127
- "oxlint-tsgolint"
128128
- "react-resize-detector"
129+
- "vitest"
129130
open-pull-requests-limit: 10
130131
versioning-strategy: increase
131132
cooldown:

‎.github/utsc2026-students.yml‎

Lines changed: 0 additions & 63 deletions
This file was deleted.

‎.github/workflows/asf-allowlist-check.yml‎

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,17 @@ name: ASF Allowlist Check
88
on:
99
workflow_dispatch:
1010
pull_request:
11+
# No `paths` filter: `asf-allowlist-check` is a required status check, so it
12+
# must report on every PR or PRs that do not touch .github/ stay BLOCKED.
1113
types: [opened, synchronize, reopened, ready_for_review]
12-
paths:
13-
- ".github/**"
1414
push:
1515
branches:
1616
- "master"
1717
- "[0-9].[0-9]*"
1818
paths:
1919
- ".github/**"
2020
schedule:
21-
# Weekly, so allowlist expirations are surfaced even when nothing under
21+
# Weekly at 06:00 UTC every Monday, so allowlist expirations are surfaced even when nothing under
2222
# .github/ has changed.
2323
- cron: "0 6 * * 1"
2424

@@ -32,7 +32,7 @@ concurrency:
3232

3333
jobs:
3434
asf-allowlist-check:
35-
runs-on: ubuntu-26.04
35+
runs-on: ubuntu-slim
3636
steps:
3737
- name: Checkout Repository
3838
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
@@ -44,3 +44,20 @@ jobs:
4444
with:
4545
# Default scan-glob is .github/**/*.yml, which misses .yaml files.
4646
scan-glob: ".github/**/*.y*ml"
47+
48+
asf-allowlist-check-required:
49+
needs: [asf-allowlist-check]
50+
if: always()
51+
runs-on: ubuntu-slim
52+
timeout-minutes: 5
53+
permissions: {}
54+
steps:
55+
- name: Check asf-allowlist-check result
56+
env:
57+
RESULT: ${{ needs.asf-allowlist-check.result }}
58+
run: |
59+
if [ "$RESULT" != "success" ] && [ "$RESULT" != "skipped" ]; then
60+
echo "asf-allowlist-check did not pass (result: $RESULT)"
61+
exit 1
62+
fi
63+
echo "asf-allowlist-check result: $RESULT"
Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
name: "Author Labeler"
2+
3+
on: # zizmor: ignore[dangerous-triggers] - needs pull_request_target for a
4+
# writable token on fork PRs; the script only reads the opaque author
5+
# login/number fields below, never PR-controlled free text (title, body,
6+
# branch), and nothing is interpolated into a shell `run:`
7+
pull_request_target:
8+
branches: [master]
9+
types: [opened]
10+
issues:
11+
types: [opened]
12+
13+
concurrency:
14+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.event.issue.number }}
15+
cancel-in-progress: true
16+
17+
permissions:
18+
contents: read
19+
20+
jobs:
21+
label:
22+
name: Label
23+
permissions:
24+
contents: read
25+
issues: write # to add a roster label to a matching issue
26+
pull-requests: write # to add a roster label to a matching PR
27+
runs-on: ubuntu-slim
28+
steps:
29+
- name: Label if the author is on a wiki roster
30+
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
31+
with:
32+
github-token: ${{ secrets.GITHUB_TOKEN }}
33+
script: |
34+
// Rosters live on the wiki so committers can edit them without a
35+
// PR: https://github.com/apache/superset/wiki/Label-Rosters
36+
// Each `## heading` on that page is a label; each list item under
37+
// it is a GitHub handle.
38+
const ROSTER_PAGE = 'Label-Rosters';
39+
40+
// The wiki can only assign labels named here. Wiki edits are not
41+
// reviewed, and some labels drive other workflows (`hold`,
42+
// showtime), so adding a label to this list takes a PR while
43+
// adding handles to a roster does not.
44+
const ALLOWED_LABELS = ['utsc2026'];
45+
46+
const { owner, repo } = context.repo;
47+
const url = `https://raw.githubusercontent.com/wiki/${owner}/${repo}/${ROSTER_PAGE}.md`;
48+
let response;
49+
try {
50+
response = await fetch(url);
51+
} catch (error) {
52+
core.warning(`Could not read ${url} (${error.message}); no roster labels applied.`);
53+
return;
54+
}
55+
if (!response.ok) {
56+
core.warning(`Could not read ${url} (HTTP ${response.status}); no roster labels applied.`);
57+
return;
58+
}
59+
60+
const rosters = new Map();
61+
let label = null;
62+
for (const line of (await response.text()).split('\n')) {
63+
const heading = line.match(/^##\s+`?([^`]+?)`?\s*$/);
64+
if (heading) {
65+
label = heading[1];
66+
continue;
67+
}
68+
const handle = line.match(/^\s*[-*]\s+@?([A-Za-z0-9-]+)\s*$/);
69+
if (label && handle) {
70+
if (!rosters.has(label)) rosters.set(label, new Set());
71+
rosters.get(label).add(handle[1].toLowerCase());
72+
}
73+
}
74+
75+
const target = context.payload.pull_request ?? context.payload.issue;
76+
const author = target.user.login.toLowerCase();
77+
const labels = [...rosters.keys()].filter(name => rosters.get(name).has(author));
78+
79+
const blocked = labels.filter(name => !ALLOWED_LABELS.includes(name));
80+
if (blocked.length) {
81+
core.warning(`Skipping roster label(s) missing from ALLOWED_LABELS: ${blocked.join(', ')}`);
82+
}
83+
const allowed = labels.filter(name => ALLOWED_LABELS.includes(name));
84+
if (!allowed.length) {
85+
return;
86+
}
87+
88+
await github.rest.issues.addLabels({
89+
owner,
90+
repo,
91+
issue_number: target.number,
92+
labels: allowed,
93+
});

‎.github/workflows/superset-frontend.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ jobs:
273273
bash -c "npm run build-storybook -- --webpack-stats-json"
274274
- name: Publish to Chromatic
275275
if: ${{ env.CHROMATIC_PROJECT_TOKEN != '' }}
276-
uses: chromaui/action@6ac4c49524e1b1358b8c593c5eea877604228268 # v18.14.2
276+
uses: chromaui/action@2b75e3340bcec86b4ae38c6a10f14831114e8137 # v18.14.3
277277
with:
278278
projectToken: ${{ env.CHROMATIC_PROJECT_TOKEN }}
279279
token: ${{ secrets.GITHUB_TOKEN }}

‎.github/workflows/superset-helm-lint-test.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
fetch-depth: 0
3535

3636
- name: Set up Helm
37-
uses: azure/setup-helm@9bc31f4ebc9c6b171d7bfbaa5d006ae7abdb4310 # v5.0.1
37+
uses: azure/setup-helm@2f5e7bc67f1f9972ab16657bb795f36d8f04de0e # v5.1.0
3838
with:
3939
version: v3.21.3
4040

‎.github/workflows/superset-helm-release.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
5555
5656
- name: Install Helm
57-
uses: azure/setup-helm@9bc31f4ebc9c6b171d7bfbaa5d006ae7abdb4310 # v5.0.1
57+
uses: azure/setup-helm@2f5e7bc67f1f9972ab16657bb795f36d8f04de0e # v5.1.0
5858
with:
5959
version: v3.5.4
6060

‎.github/workflows/testcontainers.yml‎

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,26 @@ jobs:
165165
run: |
166166
sudo apt-get update
167167
sudo apt-get install -y libfbclient2
168+
- name: Pre-pull Db2 image
169+
# testcontainers pulls the fixture's image only when it is missing
170+
# locally, in a single attempt (neither it nor docker-py retries a
171+
# pull), and one transient dial timeout to icr.io failed ~1.6% of
172+
# db2 runs before any test ran. Pull it here instead, retrying only
173+
# the pull; each ~30s dial timeout plus the 30s/60s wait spans
174+
# icr.io's 60s DNS TTL, so a retry can reach a different address
175+
# (it serves one rotating A record). The image name comes from
176+
# Db2Container itself so it cannot drift from the fixture's.
177+
if: matrix.dialect == 'db2'
178+
run: |
179+
image="$(python -c 'from testcontainers.community.db2 import Db2Container; print(Db2Container().image)')"
180+
for delay in 30 60; do
181+
docker pull "$image" && exit 0
182+
echo "::warning::docker pull $image failed; retrying in ${delay}s"
183+
sleep "$delay"
184+
done
185+
docker pull "$image" && exit 0
186+
echo "::error::docker pull $image failed after 3 attempts"
187+
exit 1
168188
- name: Run testcontainers db_engine_specs tests (${{ matrix.dialect }})
169189
# nightly_only dialects are already excluded from the matrix itself
170190
# on pull_request runs (see the compute-matrix job above), so this

‎.github/workflows/utsc2026-labeler.yml‎

Lines changed: 0 additions & 57 deletions
This file was deleted.

0 commit comments

Comments
 (0)