Repository navigation
chore(ci): collapse Playwright experimental workflow into E2E playwright-tests - #44659
Conversation
…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]>
Code Review Agent Run #af87f9Actionable Suggestions - 0Additional Suggestions - 2
Review Details
Bito Usage GuideCommands Type the following command in the pull request comment and save the comment.
Refer to the documentation for additional commands. Configuration This repository uses Documentation & Help |
✅ Deploy Preview for superset-docs-preview ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Codecov Report✅ All modified and coverable lines are covered by tests. 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
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
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]>
Code Review Agent Run #7f90d0Actionable Suggestions - 0Review Details
Bito Usage GuideCommands Type the following command in the pull request comment and save the comment.
Refer to the documentation for additional commands. Configuration This repository uses Documentation & Help |
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]>
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]>
SUMMARY
Each PR currently runs Playwright in two separate workflows:
E2E / playwright-tests(required) andPlaywright Experimental Tests(shadow mode,continue-on-error). Both stand up the same Postgres/Redis services, backend, and frontend build perapp_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-testsjob:.github/workflows/superset-playwright.yml.superset-e2e.yml.SUPERSET_FEATURE_MOBILE_CONSUMPTION_MODEandINCLUDE_MOBILEstay scoped to that step, the same isolation pattern as the Soft-delete and Embedded steps.tests/experimental/(Explore Results-tab query reuse) moves totests/explore/and runs in the defaultchromiumproject. TheINCLUDE_EXPERIMENTALhandling inplaywright.config.tsandplaywright-runinbashlib.shis dropped, along with the experimental README.Mobile and the promoted Explore spec now gate merges through the existing
playwright-tests-requiredcheck, so no.asf.yamlchange is needed.BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
N/A
TESTING INSTRUCTIONS
E2E / playwright-testsshould run the Required, Soft-delete, Embedded, and Mobile steps for bothapp_rootvalues, and noPlaywright Experimental Testsworkflow should appear.INCLUDE_MOBILE=true INCLUDE_EMBEDDED=true CI=1 npx playwright test --listlistsexplore/results-tab-reuse.spec.tsunderchromiumand the mobile specs underchromium-mobile.ADDITIONAL INFORMATION
🤖 Generated with Claude Code