Repository navigation
ci(sso): trigger SSO matrix on login/signup pages + core Button/Input primitives - #33651
Conversation
…on/Input primitives The SSO nightly's `pull_request` paths already trigger on the SSO fixtures, the AuthCoordinator/AuthProvider surface, and the backend auth handlers — but NOT on the login/signup pages themselves nor on the `@openmetadata/ui-core-components` primitives those pages render. That gap let #33575 (antd → core-components migration for the unauthenticated screens) merge green: its own Playwright lane only ran non-SSO specs, and the SSO fixtures — which live in a nightly-only lane — never executed. The migration dropped the `.signin-button` class the fixtures selected on, and moved the `full-name-input` testid onto a wrapper `<div>` so `.fill()` threw. Both broke as soon as the nightly ran; #33646 fixed the locators after the fact. Adding these paths brings the SSO matrix into any PR that touches: - `pages/{LoginPage,SignUp,ForgotPassword,ResetPassword}/**` — the actual auth screens the fixtures drive. - `components/common/LoginButton/**` — the sign-in button whose DOM shape the fixture depends on. - `ui-core-components/.../base/{buttons,input}/**` — the shared primitives that emit the DOM the fixtures select on (this is the cross-package breakage #33575 was — catching it on the originating PR is the whole point of this change). - `playwright/utils/ssoLogin.ts` — belt-and-braces so an edit to the fixture helper itself always runs the matrix. Every provider fixture still self-gates on `isAvailable()` via required secrets, so fork PRs without live-tenant credentials short-circuit cleanly per leg — the added paths don't turn Okta or Keycloak-crosssite into hard failures on the PR lane. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
❌ PR checklist incompleteThis PR cannot be merged until the following are addressed on its linked issue:
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 |
Greptile r4056182832: the Basic and LDAP fixtures locate inputs via `getByLabel(/email/i)` and `getByLabel(/password/i)` — labels emitted from `components/base/form/**` and `components/application/form-field/ render-field-element.tsx`. A migration that reshapes those wrappers can invalidate the same fixtures the Button/Input paths already cover, so they belong on the same trigger. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Code Review ✅ Approved🟡 Medium risk Extends the SSO Playwright workflow trigger to run on PRs touching auth pages, the LoginButton component, core Button/Input primitives, and the SSO fixture helper — closing the gap where UI migrations can merge green without running SSO specs. No issues found. OptionsDisplay: compact → Counting what did not apply, without listing it. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
✅ Playwright Results — workflow succeededValidated commit ✅ 556 passed · ❌ 0 failed · 🟡 1 flaky · ⏭️ 0 skipped · 🧰 0 lifecycle flaky PerformanceBlocking 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) 49m 43s ⏱️ Max setup 3m 57s · max shard execution 18m 6s · max shard-job elapsed before upload 21m 10s · reporting 4s 🌐 231.88 requests/attempt · 2.24 app boots/UI scenario · 31.40% common-shard skew Optimization targets still in progress:
🟡 1 flaky test(s) (passed on retry)
How to debug locally# Download playwright-test-results-<shard> artifact and unzip
npx playwright show-trace path/to/trace.zip # view trace |
Summary
Extends the
pull_requestpaths onplaywright-sso-login-nightly.ymlso the SSO matrix runs on any PR that touches:pages/{LoginPage,SignUp,ForgotPassword,ResetPassword}/**— the auth screens the fixtures drive.components/common/LoginButton/**— the sign-in button whose DOM the fixtures select on.ui-core-components/.../base/{buttons,input}/**— the shared primitives that emit the DOM the fixtures depend on.playwright/utils/ssoLogin.ts— the fixture helper itself.Why
#33575 (antd →
@openmetadata/ui-core-componentsmigration for the unauthenticated screens) merged green because its Playwright lane only ran non-SSO specs and the SSO fixtures live in a nightly-only lane. The migration dropped the.signin-buttonclass the fixtures selected on and moved thefull-name-inputtestid onto a wrapper<div>— both broke as soon as the nightly ran the next day, and #33646 fixed the locators after the fact. This closes the "UI-migration PR merged green" hole by pulling those component paths into the SSO PR trigger.Every provider fixture still self-gates on
isAvailable()via required secrets, so fork PRs without live-tenant credentials short-circuit cleanly per leg — the added paths don't turn Okta or Keycloak-crosssite into hard failures on the PR lane.Deferred to a separate PR (broader blast radius): an ESLint rule under
playwright/utils/sso-providers/**+playwright/e2e/Auth/**that flags CSS-class-based locators (.locator('button.signin-button')and friends) and requiresgetByTestId/getByRole. That's the "prevent reintroduction" half of the two-part fix; this PR is the "catch it at PR time" half.Test plan
.github/workflows/playwright-sso-login-nightly.yml, so the workflow triggers itself and validates the yaml parses + the matrix expands.pages/DataAssets/**should NOT trigger the SSO matrix — verified by leaving all existing paths untouched.🤖 Generated with Claude Code
The PR appears safe to merge because the previous trigger-coverage gap is fully addressed and no new issues were found.
Summary
This PR expands the SSO Playwright workflow’s pull-request path filters so changes to authentication pages, login controls, shared input/button primitives, and form-rendering layers run the SSO matrix.
Reviews (2) · Last reviewed commit: "ci(sso): extend PR-lane paths to form / ..."