Skip to content

chore(ci): collapse Playwright experimental workflow into E2E playwright-tests - #44659

Merged
hainenber merged 2 commits into
masterfrom
chore-reduce-playwright-calls
Sep 26, 2026
Merged

hainenber merged 2 commits into
masterfrom
chore-reduce-playwright-calls

Conversation

@sadpandajoe

Copy link
Copy Markdown
Member

SUMMARY

Each PR currently runs Playwright in two separate workflows: E2E / playwright-tests (required) and Playwright Experimental Tests (shadow mode, continue-on-error). Both stand up the same Postgres/Redis services, backend, and frontend build per app_root, so the second run duplicates most of the cost for two mobile specs and one experimental spec.

This collapses them into the single E2E / playwright-tests job:

  • Delete .github/workflows/superset-playwright.yml.
  • Add a "Run Playwright (Mobile Tests)" step to superset-e2e.yml. SUPERSET_FEATURE_MOBILE_CONSUMPTION_MODE and INCLUDE_MOBILE stay scoped to that step, the same isolation pattern as the Soft-delete and Embedded steps.
  • Remove the experimental tier: the only spec under tests/experimental/ (Explore Results-tab query reuse) moves to tests/explore/ and runs in the default chromium project. The INCLUDE_EXPERIMENTAL handling in playwright.config.ts and playwright-run in bashlib.sh is dropped, along with the experimental README.

Mobile and the promoted Explore spec now gate merges through the existing playwright-tests-required check, so no .asf.yaml change is needed.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

N/A

TESTING INSTRUCTIONS

  • CI: E2E / playwright-tests should run the Required, Soft-delete, Embedded, and Mobile steps for both app_root values, and no Playwright Experimental Tests workflow should appear.
  • Locally: INCLUDE_MOBILE=true INCLUDE_EMBEDDED=true CI=1 npx playwright test --list lists explore/results-tab-reuse.spec.ts under chromium and the mobile specs under chromium-mobile.
  • Watch the first run's duration against the job's 40-minute timeout; it now has one more gunicorn boot and spec run.

ADDITIONAL INFORMATION

  • Has associated issue:
  • Required feature flags:
  • Changes UI
  • Includes DB Migration (follow approval process in SIP-59)
    • Migration is atomic, supports rollback & is backwards-compatible
    • Confirm DB migration upgrade and downgrade tested
    • Runtime estimates and downtime expectations provided
  • Introduces new feature or API
  • Removes existing feature or API

🤖 Generated with Claude Code

…ght-tests

Run the mobile Playwright specs as a step of the E2E playwright-tests job
and delete the separate "Playwright Experimental Tests" workflow, so each
PR runs a single Playwright job per app_root instead of two.

The experimental tier is removed: the only spec under tests/experimental
(Explore results-tab reuse) moves to tests/explore and runs with the
default project, and the INCLUDE_EXPERIMENTAL plumbing in
playwright.config.ts and bashlib.sh is dropped.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
@bito-code-review

bito-code-review Bot commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

Code Review Agent Run #af87f9

Actionable Suggestions - 0
Additional Suggestions - 2
  • .github/workflows/bashlib.sh - 1
    • Misleading test-scope log message · Line 358-358
      Line 359 `npx playwright test` runs every project in `superset-frontend/playwright.config.ts` (`chromium`, `chromium-sqllab`, `chromium-unauth`, plus opt-in embedded/mobile projects), but the new message says "default-project tests", which reads as only the default `chromium` project. Misleading CI output hampers test-coverage debugging. Suggest neutral wording like "Running all Playwright test projects".
  • superset-frontend/playwright.config.ts - 1
    • Experimental test gate removed · Line 29-35
      This deletes the only mechanism excluding `**/experimental/**` specs from required runs: the top-level `testIgnore` gate and the `INCLUDE_EXPERIMENTAL` spread in the `chromium` project's `testIgnore`. Repo-wide grep finds zero remaining `INCLUDE_EXPERIMENTAL` references, and no experimental spec files exist today, so current behavior is unchanged. The deleted comments describe exclusion as the default for required tests — worth confirming this removal is intentional.
Review Details
  • Files reviewed - 2 · Commit Range: 65bc3bb..65bc3bb
    • .github/workflows/bashlib.sh
    • superset-frontend/playwright.config.ts
  • Files skipped - 3
    • .github/workflows/superset-e2e.yml - Reason: Filter setting
    • .github/workflows/superset-playwright.yml - Reason: Filter setting
    • superset-frontend/playwright/tests/experimental/README.md - Reason: Filter setting
  • Tools
    • Eslint (Linter) - ✔︎ Successful
    • Whispers (Secret Scanner) - ✔︎ Successful
    • Detect-secrets (Secret Scanner) - ✔︎ Successful

Bito Usage Guide

Commands

Type the following command in the pull request comment and save the comment.

  • /review - Manually triggers an incremental AI Review.

  • /review full - Manually triggers a full AI Review.

  • /pause - Pauses automatic reviews on this pull request.

  • /resume - Resumes automatic reviews.

  • /resolve - Marks all Bito-posted review comments as resolved.

  • /abort - Cancels all in-progress reviews.

Refer to the documentation for additional commands.

Configuration

This repository uses Superset You can customize the agent settings here or contact your Bito workspace admin at [email protected].

Documentation & Help

AI Code Review powered by Bito Logo

@github-actions github-actions Bot added the github_actions Pull requests that update GitHub Actions code label Sep 25, 2026
@netlify

netlify Bot commented Sep 25, 2026

Copy link
Copy Markdown

✅ Deploy Preview for superset-docs-preview ready!

Name Link
🔨 Latest commit 65bc3bb
🔍 Latest deploy log https://app.netlify.com/projects/superset-docs-preview/deploys/6ab6ac3a7263630008d4e0cc
😎 Deploy Preview https://deploy-preview-44659--superset-docs-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@codecov

codecov Bot commented Sep 25, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 81.11%. Comparing base (5be3599) to head (f13ac50).
⚠️ Report is 4 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #44659   +/-   ##
=======================================
  Coverage   81.11%   81.11%           
=======================================
  Files        2955     2955           
  Lines      178336   178336           
  Branches    41315    41315           
=======================================
+ Hits       144649   144653    +4     
+ Misses      30982    30978    -4     
  Partials     2705     2705           
Flag Coverage Δ
javascript 76.50% <ø> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Issue references belong in the spec header comments, not in the titles
that surface in reports and CI annotations.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
@bito-code-review

bito-code-review Bot commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

Code Review Agent Run #7f90d0

Actionable Suggestions - 0
Review Details
  • Files reviewed - 5 · Commit Range: 65bc3bb..f13ac50
    • superset-frontend/playwright/tests/chart/handlebars-format-date.spec.ts
    • superset-frontend/playwright/tests/dashboard/gauge-interval-colors.spec.ts
    • superset-frontend/playwright/tests/dashboard/mixed-chart-dashboard-filters.spec.ts
    • superset-frontend/playwright/tests/embedded/pivot-collapse-state.spec.ts
    • superset-frontend/playwright/tests/explore/results-tab-reuse.spec.ts
  • Files skipped - 0
  • Tools
    • Eslint (Linter) - ✔︎ Successful
    • Whispers (Secret Scanner) - ✔︎ Successful
    • Detect-secrets (Secret Scanner) - ✔︎ Successful

Bito Usage Guide

Commands

Type the following command in the pull request comment and save the comment.

  • /review - Manually triggers an incremental AI Review.

  • /review full - Manually triggers a full AI Review.

  • /pause - Pauses automatic reviews on this pull request.

  • /resume - Resumes automatic reviews.

  • /resolve - Marks all Bito-posted review comments as resolved.

  • /abort - Cancels all in-progress reviews.

Refer to the documentation for additional commands.

Configuration

This repository uses Superset You can customize the agent settings here or contact your Bito workspace admin at [email protected].

Documentation & Help

AI Code Review powered by Bito Logo

@hainenber
hainenber merged commit 0501796 into master Sep 26, 2026
80 checks passed
@hainenber
hainenber deleted the chore-reduce-playwright-calls branch September 26, 2026 03:48
drivaspreset added a commit to preset-io/superset that referenced this pull request Sep 28, 2026
Upstream apache#44659 ("collapse Playwright experimental workflow into E2E
playwright-tests") deleted .github/workflows/superset-playwright.yml, which is
where this branch's GAQ job lived, and removed the INCLUDE_EXPERIMENTAL
machinery from playwright.config.ts and bashlib.sh. Four conflicts:

- superset-playwright.yml (modify/delete): accepted the deletion and moved
  playwright-tests-gaq into superset-e2e.yml, keeping it a separate job with
  continue-on-error and outside playwright-tests-required. Folding it into
  playwright-tests as a step would put a Celery worker and its startup window
  on the required path, which the job's own comment exists to prevent. Updated
  that comment to name playwright-tests, since the job it contrasted itself
  with was renamed.

- bashlib.sh: took upstream's INCLUDE_EXPERIMENTAL removal; kept this branch's
  multi-path playwright-run (the GAQ specs span dashboard/ and sqllab/) and the
  --workers=1 in playwright-run-gaq.

- playwright.config.ts: took upstream's INCLUDE_EXPERIMENTAL removal; kept the
  global-async-query testIgnore on the default project and the chromium-gaq
  project.

- change_detector_test.py: kept upstream's .grype.yaml test alongside the
  composite-action test.

Also dropped the `playwright` token added to the frontend pattern in 52ddff5
and its test: that change existed to make superset-playwright.yml trigger its
own jobs, and the file no longer exists. GAQ now lives in superset-e2e.yml,
which the pre-existing `e2e` token already matches. The `^\.github/actions/`
pattern is kept -- composite actions are still matched by nothing else.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
drivaspreset added a commit to preset-io/superset that referenced this pull request Sep 29, 2026
Five review threads, plus what a pass over the same files turned up:

- superset-e2e.yml: the GAQ job pulled postgres:17-alpine and redis:7-alpine
  from Docker Hub while every other job in the file uses the GHCR mirrors
  (apache#40882). On a non-required, continue-on-error job a rate-limit hit would
  fail both legs at container init with no signal to anyone. Switched to the
  mirrors. Also: the step comment still named playwright-tests-experimental,
  deleted by apache#44659; and "Set safe app root" interpolated matrix.app_root
  into the script where the sibling job passes it through env.

- setupDashboardWithSelectFilter always built its chart from
  BIG_NUMBER_COUNT_SPEC, i.e. the saved `count` metric, but the filter-dropdown
  test hands it an API-created virtual dataset, and fetch_metadata seeds no
  metrics on those -- so that chart failed with "Metric 'count' does not
  exist" and the test could not see it, asserting only on the filter. The
  helper now takes a chartSpec; the test passes an ad-hoc COUNT(name) (shared
  as ADHOC_COUNT_NAME_METRIC / BIG_NUMBER_ADHOC_COUNT_SPEC, replacing the
  cold-first-load test's inline copy) and asserts the chart rendered a number,
  shows no error alert, and completed its own 202 -> 200 round trip.

- The many-charts refresh test compared each chart's post-refresh text to its
  own pre-refresh text. birth_names is static, so that passes whether the DOM
  repainted or never updated at all; the network block proves the round trips,
  not the render. The charts now sit on a per-run virtual dataset that stamps
  each query with CURRENT_TIMESTAMP in ms, and a ninth chart shows MAX of that
  stamp with y_axis_format ',d' (SMART_NUMBER would fold two stamps into the
  same "1.76T"). A forced refresh must make it strictly increase, which a DOM
  that never repainted cannot do. The eight per-name identity checks stay,
  now as a real correctness check rather than a tautology.

- The filter-race test read its "girl" baseline after toHaveText(/\d/), which
  the still-displayed unfiltered total satisfies while girl's query is in
  flight, so a slow query made the baseline wrong. It now waits for girl's
  chart-data round trip at the network level (200, or 202 then 200) before
  reading the value, as the race itself does.

- The dashboard spec header sent readers to chromium-sqllab for the SQL Lab
  smoke check, whose testIgnore deliberately excludes it; it runs under
  chromium-gaq. Fixed, and the sqllab header's description of how that
  project is selected updated to match --project.

- constants.ts: the GAQ block had been inserted between EMBEDDED's docblock
  and EMBEDDED itself. Moved above the docblock.

- Dropped the DistributedLock mocks added to oauth2_tests.py and
  screenshot_test.py. They papered over the shared test config leaking a Redis
  coordination backend into unit tests; that config is now scoped to the GAQ
  job (c9dcafb), so the mocks' stated rationale no longer holds and the
  files return to master.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

github_actions Pull requests that update GitHub Actions code size/L

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants