Skip to content

ci: bulk-refresh Playwright orchestration scripts + safe workflow files (25 files) - #33882

Merged
chirag-madlani merged 3 commits into
mainfrom
chirag-madlani/ci-orchestration-scripts-bulk
Sep 24, 2026
Merged

chirag-madlani merged 3 commits into
mainfrom
chirag-madlani/ci-orchestration-scripts-bulk

Conversation

@chirag-madlani

@chirag-madlani chirag-madlani commented Sep 23, 2026 •

Copy link
Copy Markdown
Collaborator

Fixes #33087

Describe your changes:

Rebuilt after bot review flagged 3 real issues in the earlier draft. Now 25 CI files from #33088 — all pure additions OR wholesale copies where main hasn't touched the file since our merge-base.

Fixes from earlier draft

  • select_playwright_tests.py — reverted to main's version. Harshach's version added pull_request and pull_request_target to full_event, which would force every ordinary PR to run the full ~36-shard Playwright suite, bypassing the impact-map targeted selection. The run-mode change belongs with the surrounding shard-planning refactor, not here.
  • data-access-request-e2e.yml — reverted to main's version. Harshach's copy dropped the check-changes path-filter, so the DAR external Collate dispatch (48-60 min, uses COLLATE_PAT) would fire on every non-draft PR.
  • integration-tests-{mysql-es,postgres-es-redis,postgres-os}.yml — reverted. Harshach's copies dropped the "Upload Integration Test Runtime (retry)" step that handles transient FinalizeArtifact 500s.
  • test_playwright_merge_group_validation.py — dropped. References workflow steps (Gate verified merge-group shards, verify-shard-coverage) that only exist on workflows deliberately excluded from this PR.
  • playwright-knowledge-graph-postgresql-e2e.yml — dropped, already in fix(ui) + test: PlatformLineage stale-search race + lineage/owner-picker test coverage #33877.

Scripts (19)

New (10): audit_playwright_design.cjs, normalize_playwright_artifacts.cjs, start_playwright_autopilot_mysql.sh, build_sso_login_summary.sh, and 5 new test files under scripts/tests/.

Refreshed (9, all main-safe): capture_playwright_server_output.py, evaluate_playwright_performance.py, merge_queue_daily_report.py, merge_queue_metrics.py, playwright_cache_fingerprint.py, stop_playwright_fast_environment.sh, summarize_playwright_requests.py, test_playwright_cache_assets.py, test_classify_playwright_outcome.py, verify_playwright_coverage.py.

Workflows (6, all main-safe)

merge-queue-daily-report.yml, mysql-nightly-e2e.yml, playwright-visual.yml, populate-playwright-caches.yml, postgresql-nightly-e2e.yml, yarn-coverage.yml.

Type of change:

  • CI infrastructure additions + safe refreshes (no product code change)

Notes

Cherry-picked from #33088. All original content authored by @harshach.

🤖 Generated with Claude Code

@github-actions

github-actions Bot commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

✅ PR checks passed

The linked issue has a description and all required Shipping project fields set. Thanks!

@github-actions github-actions Bot added safe to test Add this label to run secure Github workflows on PRs UI UI specific issues labels Sep 23, 2026
Comment thread .github/scripts/merge_queue_metrics.py Resolved
@greptile-apps

greptile-apps Bot commented Sep 23, 2026

Copy link
Copy Markdown
Contributor

Comments Outside Diff

These findings sit on lines the diff does not cover, so they could not be posted inline. Each one leaves this list once its file changes.

  • P1 Artifact Upload Loses Retry .github/workflows/integration-tests-mysql-elasticsearch.yml:195 ▶

    This runtime artifact now has only one fatal upload attempt, although every integration lane depends on it. A transient upload or finalization error therefore fails integration-test-build, skips all four lanes, and fails the workflow before any integration tests run. The same regression appears in the PostgreSQL/Elasticsearch/Redis and PostgreSQL/OpenSearch workflows. Retry resilience should use a fresh artifact name so a hidden reservation cannot turn the retry into a conflict.

  • P1 Nightlies Lose Second Retry .github/workflows/mysql-nightly-e2e.yml:79 ▶

    Removing retries: 2 from this caller makes release-branch nightlies fall back to the reusable workflow's default of one retry. The reusable input explicitly documents that release nightlies raise this value to two, and no profile or Playwright configuration restores it. Flakes that previously recovered on the second retry will now fail the MySQL nightly signal. The PostgreSQL nightly caller has the same regression.

- merge_queue_metrics.py: on the artifact/API-read exception path,
  completed runs were recorded with reportExpected=None, so aggregation
  and the missing-report count skipped them and the digest could show
  zero missing reports even when evidence was unreadable. Keep completed
  runs visible by setting reportExpected=True when run.status=="completed".
- build_sso_login_summary.sh: dead code — playwright-sso-login-nightly.yml
  invokes the .py implementation (already on main) and nothing calls this
  shell duplicate. Drop it to prevent silent drift.

Stale bot findings NOT applicable (files not in this PR): select_playwright_tests.py,
data-access-request-e2e.yml, integration-tests-*.yml, test_playwright_merge_group_validation.py.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Restore the release-branch retries override that the wholesale copy from
harshach's branch had dropped. Reasoning per main's inline comment: release
branches accumulate flakes faster than main, so nightly runs on those
branches use two retries instead of the config default of one.

Per user direction: dropping this needs more testing before removal —
keep parity with main on these two nightly workflows for now.

Bot finding (greptile P2 on data-access-request-e2e.yml + gitar wholesale-
copies-drop-safeguards) already flagged this pattern; the DAR workflow
isn't in this PR, but these two are, so we bring them back in line here.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@gitar-bot

gitar-bot Bot commented Sep 24, 2026

Copy link
Copy Markdown
Code Review ✅ Approved 4 closed / 4 findings

🟡 Medium risk · CI scripts and workflows change Playwright evidence validation and merge-queue reporting.

Bulk refresh of 25 CI files introduces safeguard regressions: data-access-request-e2e.yml loses its check-changes path filter (causing DAR E2E to run on every non-draft PR), three integration-test workflows lose the 'Upload Integration Test Runtime (retry)' step that handles transient FinalizeArtifact errors, and MySQL/PostgreSQL nightly workflows lose retries: 2 added for release-branch flake resilience. Revert these files to main's versions and port only harshach's intended additions.

✅ 4 closed
✅ Bug: PR events now force full-suite Playwright, bypassing targeted selection

📄 .github/scripts/select_playwright_tests.py:140-141
full_event now includes pull_request and pull_request_target, so every PR plan takes the full branch. The impact-map selection, the canary and unmapped-file handling, and the targeted-only stale-baseline gate in build_playwright_shards.py can no longer run on PRs. Every PR would plan the full up-to-36-shard chromium lane. The unchanged tests in test_playwright_ci_planning.py also break: they call the selector with --event-name pull_request_target and assert targeted fields such as unmappedFiles and directChangedSpecs (for example test_targeted_selection_combines_changed_specs_impacts_and_unmapped_canaries). The comment just above the line still only explains push. Unless full PR runs are intended, restore the previous set.

✅ Bug: New merge-group validation tests reference workflow steps absent here

📄 .github/scripts/tests/test_playwright_merge_group_validation.py:42-47 📄 .github/scripts/tests/test_playwright_merge_group_validation.py:83-97
test_playwright_merge_group_validation.py looks for a 'Gate verified merge-group shards' step in playwright-postgresql-e2e.yml and a verify-shard-coverage step that passes --require-native-evidence --require-single-attempt in playwright-e2e-reusable.yml. The PR deliberately leaves both workflows out, and neither has those steps on this branch. The next(...) lookups therefore raise StopIteration and the tests fail. For the same reason, the new native-evidence flags in verify_playwright_coverage.py are never invoked. Either land these tests together with the workflow follow-up, or mark them skip/xfail until then.

✅ Quality: New build_sso_login_summary.sh is dead code; workflow uses the .py

📄 .github/scripts/build_sso_login_summary.sh:1-15
Both notifier jobs in playwright-sso-login-nightly.yml run python3 .github/scripts/build_sso_login_summary.py sso-summary, and that Python script is already on main. Nothing calls the new .sh script. It is an older copy of the same logic that writes a different set of outputs (table.txt/totals.txt instead of slack_blocks.json/pr_comment.md). Its provider list and status parsing would have to be kept in sync with the Python version by hand, and it would quietly fall out of date. Either drop the file from this PR or switch the workflow over to it; don't ship both.

Closed: Bug: Wholesale workflow copies drop safeguards that exist on main

📄 .github/workflows/data-access-request-e2e.yml:28-33 📄 .github/workflows/integration-tests-mysql-elasticsearch.yml:186-190 📄 .github/workflows/integration-tests-postgres-elasticsearch-redis.yml 📄 .github/workflows/integration-tests-postgres-opensearch.yml 📄 .github/workflows/mysql-nightly-e2e.yml 📄 .github/workflows/postgresql-nightly-e2e.yml:79-80
The workflow diffs against main remove working protections, so main has moved past the branch these files were copied from. data-access-request-e2e.yml loses its check-changes path filter, so the DAR E2E job now runs on every non-draft PR. The three integration-test workflows lose the 'Upload Integration Test Runtime (retry)' step, whose comment explains it handles transient FinalizeArtifact 403s that otherwise fail the build and every dependent lane. The MySQL and PostgreSQL nightly workflows lose retries: 2, which was added because release branches pick up flakes faster than main. Keep main's versions of these hunks and port only harshach's intended additions.

Review coverage

📋 Rules No rules evaluated

🧪 Functional validation Not enabled · Set up

🤖 Auto-approval Not enabled · Set up

Options

Display: compact → Counting what did not apply, without listing it.

Comment with these commands to change the behavior for this request:

Compact
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source

@chirag-madlani
chirag-madlani added this pull request to the merge queue Sep 24, 2026
Merged via the queue into main with commit ec53c05 Sep 24, 2026
104 of 105 checks passed

This branch was previously deployed

1 inactive deployment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

safe to test Add this label to run secure Github workflows on PRs UI UI specific issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Merge queue: recover transient artifacts and stabilize recurring E2E failures

3 participants