Skip to content

fix(e2e): give Teams hard-delete test its measured nightly budget - #33452

Merged
harsh-vador merged 1 commit into
mainfrom
fix/teams-hard-delete-nightly-timeout
Sep 17, 2026
Merged

harsh-vador merged 1 commit into
mainfrom
fix/teams-hard-delete-nightly-timeout

Conversation

@harsh-vador

@harsh-vador harsh-vador commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor

Describe your changes

Nightly run 35144854437 (1.12.14 ➡ main) failed Teams.spec.ts › Permanently deleting a team without soft deleting should work properly with Test timeout of 60000ms exceeded on all three attempts, in both the mysql and postgresql lanes. The describe is mode: 'serial', so the remaining 17 tests in the file were skipped.

Test timeout of 60000ms exceeded.
Error: locator.click: Target page, context or browser has been closed
  - waiting for getByRole('link', { name: 'PW Team 7a35be44' })

Root cause — budget, not a product bug

Source Duration
.github/playwright/timing-baseline.json 19.5s
Release lane, run 35167892244 (1.11.13 ➡ 1.13) 20.5s ✅
Failing lane, run 35144854437 (1.12.14 ➡ main) > 60s ✗ ×3, both DBs

The test is never stuck — the main lane simply runs 2.5–6x slower end to end. In the same shard: Teams Page Flow 63s → 2.6m, Create a new public team 13s → 1.5m. At that inflation a 20s test lands at 60–100s and dies on the 60s default, burning the clock on the team-link locator while the Organization listing is still loading.

The test lost its budget in the blanket test.slow() removal (#32360), which measured it under the 40s retention threshold. Same failure signature and same fix as #33412 for Create a new public team.

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Checklist

  • I have read the CONTRIBUTING document.
  • My PR title is fix(e2e): ...
  • I have commented on my code, particularly in hard-to-understand areas.

Tests

Test-only change (6 added lines, one file: a comment and test.slow()).

  • yarn lint:playwright → 0 errors (219 pre-existing warnings, unchanged)
  • npx prettier --check playwright/e2e/Pages/Teams.spec.ts → clean

Real verification is the next nightly main lane.

🤖 Generated with Claude Code

RetriggerConfidence Score: 5/5

The PR appears safe to merge because the timeout adjustment is narrowly scoped and follows established Playwright patterns in the same suite.

Summary

This PR restores an expanded Playwright timeout for the Teams hard-delete scenario so nightly environments can complete the measured flow without exhausting the default 60-second budget.

  • Adds test.slow() only to the affected test, increasing its budget to 180 seconds.
  • Documents the nightly measurements and operations responsible for the longer runtime.
  • Does not alter application behavior or security-sensitive code.

Reviews (1) · Last reviewed commit: "fix(e2e): give Teams hard-delete test it..."

Nightly run 35144854437 (1.12.14 -> main) failed Teams.spec
'Permanently deleting a team without soft deleting should work properly'
with 'Test timeout of 60000ms exceeded' on all three attempts, in both the
mysql and postgresql lanes. The serial describe then skipped the remaining
17 tests in the file.

The test is not stuck. It measures 19.5s in the timing baseline and 20.5s on
the release lane (run 35167892244, 1.11.13 -> 1.13), but the main lane runs
2.5-6x slower end to end: 'Teams Page Flow' 63s -> 2.6m and 'Create a new
public team' 13s -> 1.5m in the same shard. At that inflation a 20s test
lands at 60-100s and dies on the 60s default, burning the clock on the team
link locator while the Organization listing is still loading.

This test lost its budget in the blanket test.slow() removal (#32360), which
measured it under the 40s retention threshold. Same failure signature and
same fix as #33412 for 'Create a new public team'.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
@github-actions

Copy link
Copy Markdown
Contributor

❌ PR checklist incomplete

This PR cannot be merged until the following are addressed on its linked issue:

  • No GitHub issue is linked. Link an issue in the Development section of the PR (or add Fixes #12345 to the description). For a same-org cross-repo issue, add Fixes open-metadata/<repo>#123 to the description.

The fields live on the linked issue in the Shipping project (open the issue → right sidebar → Projects). After you set them, re-run this check (or push a commit) — issue/project changes do not re-trigger it automatically.

Maintainers can bypass this check by adding the skip-pr-checks label.

@github-actions github-actions Bot added the UI UI specific issues label Sep 17, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Hi there 👋 Thanks for your contribution!

The OpenMetadata team will review the PR shortly! Once it has been labeled as safe to test, the CI workflows
will start executing and we'll be able to make sure everything is working as expected.

Let us know if you need any help!

@harsh-vador harsh-vador self-assigned this Sep 17, 2026
@gitar-bot

gitar-bot Bot commented Sep 17, 2026

Copy link
Copy Markdown
Code Review ✅ Approved

Restores the test.slow() budget to the Teams hard-delete test after it was inadvertently removed, fixing timeouts in the nightly main lane where the test runs 2.5–6x slower than baseline. No issues found.

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

@harsh-vador harsh-vador added the safe to test Add this label to run secure Github workflows on PRs label Sep 17, 2026
@harsh-vador
harsh-vador added this pull request to the merge queue Sep 17, 2026
@github-actions

github-actions Bot commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor

✅ Playwright Results — workflow succeeded

Validated commit 0702edf36be581586f1e0e110cc618140d1c2383 in Playwright run 35186491872, attempt 1.

✅ 67 passed · ❌ 0 failed · 🟡 0 flaky · ⏭️ 0 skipped · 🧰 0 lifecycle flaky

Performance

Blocking targets: ✅ met · Optimization targets: 🟡 in progress

Shard-job maxima below are not the full workflow wall time; the linked run includes build, fixture, planning, and reporting.

🕒 Full workflow signal wall (to summary) 1h 27m 47s

⏱️ Max setup 3m 29s · max shard execution 8m 46s · max shard-job elapsed before upload 12m 33s · reporting 3s

🌐 177.30 requests/attempt · 2.01 app boots/UI scenario · 0.00% common-shard skew

Optimization targets still in progress:

  • Application boot ratio was 2.01 per UI scenario (141 boots / 70 scenarios; convergence target: at most 1).
Shard Passed Failed Flaky Skipped Lifecycle failed Lifecycle flaky
✅ Shard chromium-01 67 0 0 0 0 0

📦 Download artifacts

How to debug locally
# Download playwright-test-results-<shard> artifact and unzip
npx playwright show-trace path/to/trace.zip    # view trace

Merged via the queue into main with commit c87db47 Sep 17, 2026
177 of 179 checks passed
@harsh-vador
harsh-vador deleted the fix/teams-hard-delete-nightly-timeout branch September 17, 2026 07:51

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.

4 participants