Skip to content

ci(sso): trigger SSO matrix on login/signup pages + core Button/Input primitives - #33651

Merged
ShaileshParmar11 merged 2 commits into
mainfrom
sso-smoke-on-auth-changes
Sep 20, 2026
Merged

ShaileshParmar11 merged 2 commits into
mainfrom
sso-smoke-on-auth-changes

Conversation

@chirag-madlani

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

Copy link
Copy Markdown
Collaborator

Summary

Extends the pull_request paths on playwright-sso-login-nightly.yml so 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-components migration 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-button class the fixtures selected on and moved the full-name-input testid 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 requires getByTestId/getByRole. That's the "prevent reintroduction" half of the two-part fix; this PR is the "catch it at PR time" half.

Test plan

  • CI: this PR touches .github/workflows/playwright-sso-login-nightly.yml, so the workflow triggers itself and validates the yaml parses + the matrix expands.
  • Sanity: an unrelated PR that only touches, say, pages/DataAssets/** should NOT trigger the SSO matrix — verified by leaving all existing paths untouched.

🤖 Generated with Claude Code

RetriggerConfidence Score: 5/5

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.

  • The follow-up adds both form paths requested by the previous review.
  • The added paths correspond to the components responsible for auth-field labels, test IDs, and form rendering.
  • No new correctness or security issues were identified.

Reviews (2) · Last reviewed commit: "ci(sso): extend PR-lane paths to form / ..."

…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]>
@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 safe to test Add this label to run secure Github workflows on PRs UI UI specific issues labels Sep 20, 2026
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]>
@gitar-bot

gitar-bot Bot commented Sep 20, 2026

Copy link
Copy Markdown
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.

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

@github-actions

Copy link
Copy Markdown
Contributor

✅ Playwright Results — workflow succeeded

Validated commit deb879bddcc6642cea0f0b747bfa70dab0ec132e in Playwright run 35491030601, attempt 1.

✅ 556 passed · ❌ 0 failed · 🟡 1 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) 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:

  • Common shard skew was 31.4% (convergence target: at most 15%).
  • Browser traffic was 231.88 requests per attempt (convergence target: fewer than 200).
  • Application boot ratio was 2.24 per UI scenario (1296 boots / 579 scenarios; convergence target: at most 1).
Shard Passed Failed Flaky Skipped Lifecycle failed Lifecycle flaky
🟡 Shard chromium-01 122 0 1 0 0 0
✅ Shard chromium-02 141 0 0 0 0 0
✅ Shard chromium-03 135 0 0 0 0 0
✅ Shard data-asset-rules-01 65 0 0 0 0 0
✅ Shard domain-isolation-01 16 0 0 0 0 0
✅ Shard global-state-01 34 0 0 0 0 0
✅ Shard ingestion-01 1 0 0 0 0 0
✅ Shard reindex-01 2 0 0 0 0 0
✅ Shard search-01 11 0 0 0 0 0
✅ Shard search-rbac-01 29 0 0 0 0 0
🟡 1 flaky test(s) (passed on retry)
  • Pages/Entity.spec.ts › Delete Stored Procedure (shard chromium-01, 1 retry)

📦 Download artifacts

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

@ShaileshParmar11
ShaileshParmar11 added this pull request to the merge queue Sep 20, 2026
Merged via the queue into main with commit b2ca607 Sep 20, 2026
114 of 116 checks passed
@ShaileshParmar11
ShaileshParmar11 deleted the sso-smoke-on-auth-changes branch September 20, 2026 08:16

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.

3 participants