Repository navigation
Cherry-pick #30843 to 2.0: drop 4 never-run glossary status-filter tests, re-enable 2 that pass - #30848
Cherry-pick #30843 to 2.0: drop 4 never-run glossary status-filter tests, re-enable 2 that pass#30848siddhant1 wants to merge 3 commits into
Conversation
…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)
❌ 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 |
|
Hi there 👋 Thanks for your contribution! The OpenMetadata team will review the PR shortly! Once it has been labeled as Let us know if you need any help! |
| @@ -521,8 +473,7 @@ test.describe('Glossary Status Filter - Nested Terms', () => { | |||
| }); | |||
|
|
|||
| // Skip: Requires re-filtering expanded state which isn't fully implemented | |||
There was a problem hiding this comment.
💡 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 👍 / 👎
Code Review 👍 Approved with suggestions 0 resolved / 1 findingsCherry-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 agentsOptionsDisplay: compact → Showing less information. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Gitar | Powered by Gitar — free for open source |
Cherry-pick of #30843 onto
2.0— three commits,-xprovenance preserved, no conflicts.Net effect is byte-identical to
main's: 4 tests removed, 2 re-enabled.994f7f2fd675758995d0590daf45b9The 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.
getFirstLevelGlossaryTermsPaginatedsends the hierarchy and status filters on one request:and
GlossaryTermResourceANDs them:directChildrenOfmeans "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.tsandGlossaryTermResource.javaare byte-identical across 1.13, main and 2.0.Re-enabled — 2 tests that pass today
Glossary › Term should stay approved when changes made by reviewerentityStatusGlossaryStatusFilter › change filter while expanded updates visible root terms#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' })— whenfilter by child statusfails, 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
DataMarketplacenavigation 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 WidgetandActivityFeed › Mention notificationalso pass on main (30.3s / 9.4s) but are out of scope here and remain skipped.Verification
basicChild,multiChild,deepTerms,multiChildrenParentall still used by surviving tests.eslint-disable playwright/no-skipped-testdirectives removed with their skips, otherwise they become unused-directive errors.prettier --checkclean;eslint0 errors.🤖 Generated with Claude Code
2.0-specific notes
1.13andmainstacks. All target specs are byte-identical betweenmainand2.0(Glossary.spec.tsdiffers only at line 535, an unrelated assets empty-state assertion) and fix(workflows,tasks): approve/reject condition scheme, Task V2 migration & resolve, v1122 workflow-handler init, TagUpdate version bump #29931 is present on 2.0, so the results carry over. This PR CI run is the confirmation on 2.0 itself.Bulk Import Exporttests remain undertest.describe.fixmeon 2.0. fix(e2e): fix flaky BulkImport Playwright tests and re-enable Range selection #30458 fixed and re-enabled them onmain, and1.13never carried the marker, so 2.0 is the only branch where they are dark — but that backport belongs to the team that owns BulkImport, not this PR.