Skip to content

Cherry-pick #30843 to 2.0: drop 4 never-run glossary status-filter tests, re-enable 2 that pass - #30848

Closed
siddhant1 wants to merge 3 commits into
2.0from
cherry-pick-30843-to-2.0
Closed

siddhant1 wants to merge 3 commits into
2.0from
cherry-pick-30843-to-2.0

Conversation

@siddhant1

Copy link
Copy Markdown
Contributor

Cherry-pick of #30843 onto 2.0 — three commits, -x provenance preserved, no conflicts.

Net effect is byte-identical to main's: 4 tests removed, 2 re-enabled.

Commit
994f7f2fd6 drop four status-filter tests that were never implemented
75758995d0 re-enable four specs that pass
590daf45b9 revert re-enabling KPI Widget and ActivityFeed mention (out of scope)

The last two are kept as separate commits rather than squashed so the cherry-pick maps 1:1 onto #30843 and stays easy to audit against it.


The rule applied

A test is deleted only if it was skipped in the very commit that introduced it — it has never run and never protected anything. Anything that was once green stays, even if it is red today, because that redness records a regression rather than a test that never worked.

Every verdict below is a measurement on a real local stack, not inspection.

Removed — 4 tests, skipped at inception, never executed

GlossaryStatusFilterNestedTerms: filter by child status, filter by middle level status, filter by leaf level status, deeply nested term (5 levels).

All four arrived skipped in #25428 (12d85f310f, 2026-03-05) — the commit that created the file — each carrying "Requires backend to return nested terms as flat results when filtered". Five months, zero executions. The six later commits to this file never touched the skips.

They cannot pass, by construction. getFirstLevelGlossaryTermsPaginated sends the hierarchy and status filters on one request:

params: { directChildrenOf: parentFQN, entityStatus, ... }

and GlossaryTermResource ANDs them:

.addQueryParam("directChildrenOf", parentTermFQNParam)
.addQueryParam("entityStatus", entityStatus);

directChildrenOf means "first level/immediate children", so a nested term is eliminated before its status is considered. Measured: all four fail at ~17.5–17.9s (locator timeout — the term never renders) on both a 1.13 stack and a main stack, while every sibling asserting only root-level terms passes. glossaryAPI.ts and GlossaryTermResource.java are byte-identical across 1.13, main and 2.0.

Re-enabled — 2 tests that pass today

Test Why it was skipped Measured
Glossary › Term should stay approved when changes made by reviewer async approval workflow reverted a PATCHed entityStatus ✅ 3/3 — 1.0m, 58.6s, 58.3s
GlossaryStatusFilter › change filter while expanded updates visible root terms born skipped in #25428: "re-filtering expanded state isn't fully implemented" ✅ 2.8s

#29931 fixed the approval machinery in July (approve/reject condition scheme, duplicate edges, stuck resolves) — exactly the cause behind the first test. Re-run three times to guard against its known load-dependent race; green every time.

The second was born skipped like the four removed ones, but for a different reason, and unlike them it is green. It is re-enabled rather than deleted precisely because deleting a passing test loses coverage. It only appeared on the nightly skip list at all because the file is test.describe.configure({ mode: 'serial' }) — when filter by child status fails, Playwright reports every later test in the file as skipped without running it. With those four gone the cascade cannot occur.

Deliberately left skipped

The five DataMarketplace navigation tests. They were born active and green in #26255 and ran for ten days before #27377 removed the /data-marketplace/* sub-routes and skipped them with "re-enable when the standalone marketplace shell is reintroduced". They fail at 1.0m today on both main and 1.13, but under the rule above they are not deletion candidates — they record a withdrawn capability. The marketplace page itself is alive (11 components on every branch) and 8 sibling tests covering rendering, data-product/domain creation, search empty state and the admin-vs-consumer permission split all still pass, so the spec files stay.

CustomizeWidgets › KPI Widget and ActivityFeed › Mention notification also pass on main (30.3s / 9.4s) but are out of scope here and remain skipped.

Verification

  • No orphaned fixtures — basicChild, multiChild, deepTerms, multiChildrenParent all still used by surviving tests.
  • Stale eslint-disable playwright/no-skipped-test directives removed with their skips, otherwise they become unused-directive errors.
  • prettier --check clean; eslint 0 errors.

🤖 Generated with Claude Code


2.0-specific notes

siddhant1 and others added 3 commits August 3, 2026 13:06
…nted

These four arrived skipped in #25428 (`12d85f310f`), the same commit that created
the file, and have never executed once in five months. They are not regressions
and not flakes — they are a specification for behaviour the backend does not have.

Each carried its own reason inline from birth: "Requires backend to return nested
terms as flat results when filtered". That is accurate. The glossary term listing
sends `directChildrenOf` and `entityStatus` on the same request
(`glossaryAPI.ts` `getFirstLevelGlossaryTermsPaginated`), and the backend ANDs them
(`GlossaryTermResource` `.addQueryParam("directChildrenOf", …).addQueryParam("entityStatus", …)`),
so a nested term is eliminated by the hierarchy filter before its status is ever
considered. No status value can surface a grandchild as a flat result.

Confirmed by running them: on a real 1.13 stack all four fail at ~17.5s (the
locator timeout — the term genuinely never renders), while every sibling test that
asserts only root-level terms passes. `glossaryAPI.ts` and `GlossaryTermResource`
are byte-identical across 1.13, main and 2.0, so the outcome is the same everywhere.

Removed rather than left skipped: five bare `test.skip`s surface on every nightly
triage list as if they were failures, and cost review attention each time someone
asks why the glossary suite is red. If flat subtree filtering is built, these are
better rewritten against the real API than resurrected from a five-month-old skip.

No fixtures are orphaned — `basicChild`, `multiChild`, `deepTerms` and the rest are
still used by the surviving tests. Prettier and eslint clean.

Co-Authored-By: Claude <noreply@anthropic.com>
(cherry picked from commit 4a7aa34)
Each of these was written active and green, then skipped later when something
broke. All four pass now on a real main stack built from this branch point
(`revision 64df7a3`), so the markers are stale:

| Test | Skipped since | Measured on main |
|---|---|---|
| `ActivityFeed › Mention notification shows correct user details` | #25894 (`test.fixme`) | 9.4s |
| `CustomizeWidgets › KPI Widget` | `test.fixme` | 30.3s |
| `Glossary › Term should stay approved when changes made by reviewer` | BE approval workflow | 1.0m |
| `GlossaryStatusFilter › change filter while expanded updates visible root terms` | #25428 | 2.8s |

`Term should stay approved` is the interesting one: its documented cause was the
async approval workflow reverting a PATCHed entityStatus, and #29931 fixed exactly
that machinery (approve/reject condition scheme, duplicate edges, stuck resolves)
in July. main carries #29931; the test now passes.

`change filter while expanded` never ran — it was born skipped in #25428 claiming
"re-filtering expanded state isn't fully implemented". That shipped at some point
and nobody revisited the marker. It is kept rather than deleted precisely because
it passes: it is the one test in that file whose skip was stale rather than
blocked on the missing backend support.

Stale `eslint-disable playwright/no-skipped-test` directives removed with their
skips, otherwise they become unused-directive errors.

Prettier clean; eslint 0 errors.

Co-Authored-By: Claude <noreply@anthropic.com>
(cherry picked from commit f6c31bb)
Both pass on a main stack (30.3s and 9.4s), but they are out of scope for this PR
and stay skipped. The two re-enables that remain — Term should stay approved and
change filter while expanded — are unaffected.

Co-Authored-By: Claude <noreply@anthropic.com>
(cherry picked from commit e6a82cc)
@siddhant1
siddhant1 requested a review from a team as a code owner August 3, 2026 07:37
@github-actions

github-actions Bot commented Aug 3, 2026

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 Aug 3, 2026
@github-actions

github-actions Bot commented Aug 3, 2026

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!

@siddhant1

Copy link
Copy Markdown
Contributor Author

Cherry-picked directly to 2.0 instead — see c5e16bf, 9532cbc, d4ab243.

@siddhant1 siddhant1 closed this Aug 3, 2026
@siddhant1
siddhant1 deleted the cherry-pick-30843-to-2.0 branch August 3, 2026 07:38
@@ -521,8 +473,7 @@ test.describe('Glossary Status Filter - Nested Terms', () => {
});

// Skip: Requires re-filtering expanded state which isn't fully implemented

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Quality: Stale skip-reason comments left above re-enabled tests

Both re-enabled tests still carry the comments explaining why they were previously skipped, which are now misleading. In GlossaryStatusFilterNestedTerms.spec.ts:475 the comment '// Skip: Requires re-filtering expanded state which isn't fully implemented' sits directly above the now-active test, and in Glossary.spec.ts:1971 '// Need to fix the workflow from BE end, as it constantly failing in the AUT's' remains above the un-skipped test. Remove these stale comments so future readers aren't misled into thinking the tests are still disabled.

Was this helpful? React with 👍 / 👎

@gitar-bot

gitar-bot Bot commented Aug 3, 2026

Copy link
Copy Markdown
Code Review 👍 Approved with suggestions 0 resolved / 1 findings

Cherry-pick of #30843 to branch 2.0 dropping four never-implemented glossary status-filter tests and re-enabling two passing ones. Consider removing the stale skip-reason comments above the re-enabled tests.

💡 Quality: Stale skip-reason comments left above re-enabled tests

📄 openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/Glossary/GlossaryStatusFilterNestedTerms.spec.ts:475 📄 openmetadata-ui/src/main/resources/ui/playwright/e2e/Pages/Glossary.spec.ts:1971

Both re-enabled tests still carry the comments explaining why they were previously skipped, which are now misleading. In GlossaryStatusFilterNestedTerms.spec.ts:475 the comment '// Skip: Requires re-filtering expanded state which isn't fully implemented' sits directly above the now-active test, and in Glossary.spec.ts:1971 '// Need to fix the workflow from BE end, as it constantly failing in the AUT's' remains above the un-skipped test. Remove these stale comments so future readers aren't misled into thinking the tests are still disabled.

🤖 Prompt for agents
Code Review: Cherry-pick of #30843 to branch 2.0 dropping four never-implemented glossary status-filter tests and re-enabling two passing ones. Consider removing the stale skip-reason comments above the re-enabled tests.

1. 💡 Quality: Stale skip-reason comments left above re-enabled tests
   Files: openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/Glossary/GlossaryStatusFilterNestedTerms.spec.ts:475, openmetadata-ui/src/main/resources/ui/playwright/e2e/Pages/Glossary.spec.ts:1971

   Both re-enabled tests still carry the comments explaining why they were previously skipped, which are now misleading. In GlossaryStatusFilterNestedTerms.spec.ts:475 the comment '// Skip: Requires re-filtering expanded state which isn't fully implemented' sits directly above the now-active test, and in Glossary.spec.ts:1971 '// Need to fix the workflow from BE end, as it constantly failing in the AUT's' remains above the un-skipped test. Remove these stale comments so future readers aren't misled into thinking the tests are still disabled.

Options

Display: compact → Showing less information.

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

Compact
gitar display:verbose         

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

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

Labels

UI UI specific issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant