Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 3 additions & 16 deletions .github/workflows/playwright-sso-login-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,22 +46,9 @@ on:
- 'openmetadata-ui/src/main/resources/ui/src/pages/ForgotPassword/**'
- 'openmetadata-ui/src/main/resources/ui/src/pages/ResetPassword/**'
- 'openmetadata-ui/src/main/resources/ui/src/components/common/LoginButton/**'
# Shared primitives that the auth screens render. The core-components
# migration in #33575 changed the DOM shape of Button (dropped the
# legacy `signin-button` class) and Input (react-aria wrapper puts
# the testid on a `<div data-input-wrapper>` instead of the actual
# `<input>`); catching that cross-package breakage on the ORIGINATING
# PR is the whole point of adding these paths. The `form/**` and
# `form-field/**` layers are here because the Basic and LDAP fixtures
# locate inputs via `getByLabel(/email/i)` / `getByLabel(/password/i)`,
# and `render-field-element.tsx` is what wires the label → input
# association plus forwards signup test IDs — the same class of
# cross-package regression as Button/Input would otherwise slip past
# the PR gate (greptile r4056182832).
- 'openmetadata-ui-core-components/src/main/resources/ui/src/components/base/buttons/**'
- 'openmetadata-ui-core-components/src/main/resources/ui/src/components/base/input/**'
- 'openmetadata-ui-core-components/src/main/resources/ui/src/components/base/form/**'
- 'openmetadata-ui-core-components/src/main/resources/ui/src/components/application/form-field/**'
# ui-core-components primitives (buttons/input/form/form-field) are
# intentionally NOT in this PR gate; drift is caught by the nightly run.
# ADR:2026-10-13-sso-pr-gate-covers-auth-owned-paths-only
# Backend auth surface — narrow to the packages the SSO matrix
Comment thread
gitar-bot[bot] marked this conversation as resolved.
Resolved
# actually exercises (login/refresh, JWT filter, SAML handler,
# OIDC/SAML code flow, LDAP/basic authenticators, the servlet
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# The SSO login matrix's PR trigger covers auth-owned paths only, not shared ui-core-components primitives

- **Status:** Accepted
- **Revisions:** v1 2026-10-13 (initial)
- **Deciders:** Harshit Shah
- **Guard:** reviewer
- **Related:** open-metadata/openmetadata-collate#7358, #35338, #33575, #33646

## Context
`.github/workflows/playwright-sso-login-nightly.yml` also runs on `pull_request` for auth paths.
After #33575 / #33646 changed the DOM of core Button and Input and broke the Basic/LDAP login
locators, the trigger gained `openmetadata-ui-core-components` `base/buttons/**`, `base/input/**`,
`base/form/**` and `application/form-field/**`. Those primitives are touched by most UI PRs, so the
full 7-leg matrix (each leg boots the OM stack, ~15–22 min) ran on 614 PRs across 81 branches in 30
days, ~45k runner-minutes/month, almost all on PRs unrelated to auth.

## Decision
The `pull_request` paths cover only auth-owned code: Auth components/utils, the login/signup/password
pages and `LoginButton`, backend security and `ConfigResource`, auth schemas, and the SSO docker
fixtures. Shared ui-core-components primitives are deliberately excluded.

## Consequences
Login-locator drift caused by a core primitive change is caught by the nightly schedule (or a manual
`workflow_dispatch`) within 24h instead of on the originating PR, so the nightly must be triaged.
Revisit if such drift repeatedly lands on `main` or if the matrix becomes cheap enough to run per PR.
Loading