Skip to content

test(e2e): 2.0 glossary skip-list cleanup — drop 4 never-run tests, re-enable 2 that pass - #30838

Closed
siddhant1 wants to merge 2 commits into
2.0from
backport/30458-bulkimport-to-2.0
Closed

siddhant1 wants to merge 2 commits into
2.0from
backport/30458-bulkimport-to-2.0

Conversation

@siddhant1

@siddhant1 siddhant1 commented Aug 3, 2026 •

Copy link
Copy Markdown
Contributor

Glossary skip-list cleanup for 2.0, matching #30843 (main) and #30839 (1.13).

Scope note: this PR originally also cherry-picked #30458 (BulkImport) to 2.0. That has been dropped — it belongs to the team that owns BulkImport, not here. Consequence: the six Bulk Import Export tests remain under test.describe.fixme on 2.0, and 2.0 stays the only branch where they are dark (1.13 and main both run them). That needs a separate owner-driven backport of #30458.

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 note on verification: the measurements above were taken on 1.13 and main stacks. All target specs are byte-identical between main and 2.0 (Glossary.spec.ts differs only at line 535, an unrelated assets empty-state assertion) and #29931 is present on 2.0, so the results carry over. This PR CI run is the confirmation on 2.0 itself.

@siddhant1
siddhant1 requested a review from a team as a code owner August 3, 2026 06:56
@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!

@github-actions

github-actions Bot commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

🔴 Playwright Results — workflow failed

Validated commit 5264d88a42b0c630842042aa1b92892c1d41784e in Playwright run 30791852895, attempt 1.

✅ 0 passed · ❌ 0 failed · 🟡 0 flaky · ⏭️ 0 skipped · 🧰 0 lifecycle flaky

Pipeline and setup failures (6)

  • The build job finished with status failure.
  • Duration-aware shard planning finished with status skipped.
  • Fixture cache restoration finished with status skipped.
  • Seeded fixture preparation finished with status skipped.
  • The Playwright shard matrix was unexpectedly skipped.
  • No expected Playwright shards were declared.

Performance

⚪ Performance metrics unavailable; see the CI and reporting failures above.

Shard Passed Failed Flaky Skipped Lifecycle failed Lifecycle flaky

📦 Download artifacts

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

@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 siddhant1 changed the title Cherry-pick #30458 to 2.0: fix flaky BulkImport tests and re-enable Range selection test(e2e): 2.0 skip-list cleanup — BulkImport backport, drop 4 never-run glossary tests, re-enable 2 that pass Aug 3, 2026
@siddhant1 siddhant1 added safe to test Add this label to run secure Github workflows on PRs and removed UI UI specific issues labels Aug 3, 2026
siddhant1 and others added 2 commits August 3, 2026 12:59
…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)
(cherry picked from commit de76127)
Both were skipped for causes that have since been fixed:

- `Glossary › Term should stay approved when changes made by reviewer` — blocked on
  the async approval workflow reverting a PATCHed entityStatus. #29931 fixed exactly
  that machinery (approve/reject condition scheme, duplicate edges, stuck resolves)
  and 2.0 carries it. Measured on a main stack — which is byte-identical to 2.0 for
  this test — it passes 3/3 at 1.0m, 58.6s, 58.3s.
- `GlossaryStatusFilter › change filter while expanded updates visible root terms` —
  born skipped in #25428 claiming "re-filtering expanded state isn't fully
  implemented"; that shipped and the marker was never revisited. Passes at 2.8s.

Both target tests are byte-identical between main and 2.0 (Glossary.spec.ts differs
only at line 535, an unrelated assets empty-state assertion), so the main
measurements carry over.

Co-Authored-By: Claude <noreply@anthropic.com>
@siddhant1
siddhant1 force-pushed the backport/30458-bulkimport-to-2.0 branch from a3f94c0 to 811eab9 Compare August 3, 2026 07:29
@siddhant1 siddhant1 changed the title test(e2e): 2.0 skip-list cleanup — BulkImport backport, drop 4 never-run glossary tests, re-enable 2 that pass test(e2e): 2.0 glossary skip-list cleanup — drop 4 never-run tests, re-enable 2 that pass Aug 3, 2026
@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

❌ UI Checkstyle Failed

❌ Antd + Less Deprecation Guard

A new antd import or new .less file was added. Use UntitledUI + Tailwind for new work.

Affected files

at Function._resolveFilename (node:internal/modules/cjs/loader:1401:15)
at defaultResolveImpl (node:internal/modules/cjs/loader:1057:19)
at resolveForCJSWithHooks (node:internal/modules/cjs/loader:1062:22)
at Function._load (node:internal/modules/cjs/loader:1211:37)
at TracingChannel.traceSync (node:diagnostics_channel:322:14)
at wrapModuleLoad (node:internal/modules/cjs/loader:235:24)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:171:5)
at node:internal/main/run_main_module:36:49 {


Fix locally (fast - only checks files changed in this branch):

make ui-checkstyle-changed

@siddhant1 siddhant1 closed this Aug 3, 2026
@@ -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 remain above re-enabled tests

Both re-enabled tests still carry their old skip-justification comments, which now contradict the code. GlossaryStatusFilterNestedTerms.spec.ts:475 reads "Skip: Requires re-filtering expanded state which isn't fully implemented" and Glossary.spec.ts:1971 reads "Need to fix the workflow from BE end, as it constantly failing in the AUT's", yet both tests are now active. These misleading comments should be removed alongside the test.skip/eslint-disable directives they accompanied.

Was this helpful? React with 👍 / 👎

@siddhant1
siddhant1 deleted the backport/30458-bulkimport-to-2.0 branch August 3, 2026 07:38
@siddhant1

Copy link
Copy Markdown
Contributor Author

Correction to my previous comment: BulkImport is not outstanding on 2.0. @Rohit0301 landed the #30458 cherry-pick independently in 6d07f10b14 earlier today, so all six Bulk Import Export tests now run on 2.0 as well — this PR's BulkImport half was redundant, and no follow-up backport is needed.

@gitar-bot

gitar-bot Bot commented Aug 3, 2026

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

Cleans up the 2.0 test skip list by backporting BulkImport fixes, removing un-runnable glossary tests, and re-enabling passing ones. Consider removing the stale skip-reason comments above the re-enabled tests.

💡 Quality: Stale skip-reason comments remain 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 their old skip-justification comments, which now contradict the code. GlossaryStatusFilterNestedTerms.spec.ts:475 reads "Skip: Requires re-filtering expanded state which isn't fully implemented" and Glossary.spec.ts:1971 reads "Need to fix the workflow from BE end, as it constantly failing in the AUT's", yet both tests are now active. These misleading comments should be removed alongside the test.skip/eslint-disable directives they accompanied.

🤖 Prompt for agents
Code Review: Cleans up the 2.0 test skip list by backporting BulkImport fixes, removing un-runnable glossary tests, and re-enabling passing ones. Consider removing the stale skip-reason comments above the re-enabled tests.

1. 💡 Quality: Stale skip-reason comments remain 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 their old skip-justification comments, which now contradict the code. `GlossaryStatusFilterNestedTerms.spec.ts:475` reads "Skip: Requires re-filtering expanded state which isn't fully implemented" and `Glossary.spec.ts:1971` reads "Need to fix the workflow from BE end, as it constantly failing in the AUT's", yet both tests are now active. These misleading comments should be removed alongside the `test.skip`/eslint-disable directives they accompanied.

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

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.

1 participant