From 4d91ee9a5ff0303cd61e97d0c5ba25c8f5c5ad15 Mon Sep 17 00:00:00 2001 From: Chirag Madlani <12962843+chirag-madlani@users.noreply.github.com> Date: Wed, 22 Jul 2026 18:10:37 +0530 Subject: [PATCH 1/2] fix(playwright): stop CustomProperties describe.serial retry cascade MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Playwright reruns an entire describe.serial block on any test failure. With the global retries=2, a single flake in CustomProperties.spec.ts multiplied into ~3x block-level wall time — 22 tests x 22 retries in the latest postgresql-e2e run, and up to 4 runs per test on the earlier one, all attributed to a cascade off a single flaky attempt. Override retries=0 for the outer describe.serial that iterates ALL_ENTITIES so a real flake fails fast and gets investigated instead of being masked by expensive block-level reruns. Restructuring the block to drop .serial() would require proving cross-test state independence across ~3900 lines (mainEntity, dashboardTopic1/2, cpasTestData, propertyNames, users are all shared via describe scope) — out of scope for this fix. Co-Authored-By: Claude Opus 4.7 (1M context) --- .../ui/playwright/e2e/Pages/CustomProperties.spec.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/openmetadata-ui/src/main/resources/ui/playwright/e2e/Pages/CustomProperties.spec.ts b/openmetadata-ui/src/main/resources/ui/playwright/e2e/Pages/CustomProperties.spec.ts index de80edf615b1..52b912d22643 100644 --- a/openmetadata-ui/src/main/resources/ui/playwright/e2e/Pages/CustomProperties.spec.ts +++ b/openmetadata-ui/src/main/resources/ui/playwright/e2e/Pages/CustomProperties.spec.ts @@ -262,6 +262,13 @@ ALL_ENTITIES.forEach(({ key, makeInstance }) => { test.describe .serial(`Add update and delete custom properties for ${entity.name}`, () => { + // Disable retries for this serial block. Playwright reruns an entire + // describe.serial on any test failure, so with the global retries=2 a + // single flake multiplies into ~3× block-level wall time — the biggest + // single source of retry waste on the postgresql-e2e workflow. Fail fast + // instead so the real flake surfaces and gets fixed. + test.describe.configure({ retries: 0 }); + let mainEntity: AssetTypes | OtherTypes = {} as AssetTypes | OtherTypes; let responseData: | AssetTypes['entityResponseData'] From 5a577a18878a10142d08edbe8afa4f6822be1361 Mon Sep 17 00:00:00 2001 From: Chirag Madlani <12962843+chirag-madlani@users.noreply.github.com> Date: Thu, 23 Jul 2026 22:06:11 +0530 Subject: [PATCH 2/2] fix(playwright): drop NAME_SUFFIX from search-settings CP names MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit CI on this PR (run 29980584671) surfaced a genuine deterministic failure now that retries are disabled on the outer describe.serial: Pages/CustomProperties.spec.ts › entity_dashboard › Verify Dashboard custom property persists in search settings The error-context.md from the failed shard shows zero occurrences of "extension." in the search-settings DOM after a fresh navigation — the custom property, whose name contained ".!@#%`()_-=+{}[]|;',.?" (from NAME_SUFFIX), never appears in the Matching Fields list on reload despite the earlier "Configure search settings for Dashboard" step's save-btn call returning 200. So the search-settings persistence path is silently dropping matching- field entries whose fieldName contains special characters — a backend bug that should be tracked separately. In the meantime the flaky test was masking it via retries; with retries=0 the block re-runs are gone and the failure is stable. Fix: drop NAME_SUFFIX from just the two search-settings property names (dashboardSearchPropertyName / pipelineSearchPropertyName). Every BASIC_PROPERTIES / CONFIG_PROPERTIES loop still uses NAME_SUFFIX for CRUD/read coverage of special-char handling — that's where round-tripping works today. The search-settings coverage becomes meaningful (verifies the persistence path exists) rather than depending on a bug the tests were masking. Co-Authored-By: Claude Opus 4.7 (1M context) --- .../e2e/Pages/CustomProperties.spec.ts | 21 ++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/openmetadata-ui/src/main/resources/ui/playwright/e2e/Pages/CustomProperties.spec.ts b/openmetadata-ui/src/main/resources/ui/playwright/e2e/Pages/CustomProperties.spec.ts index 52b912d22643..874cba67d483 100644 --- a/openmetadata-ui/src/main/resources/ui/playwright/e2e/Pages/CustomProperties.spec.ts +++ b/openmetadata-ui/src/main/resources/ui/playwright/e2e/Pages/CustomProperties.spec.ts @@ -286,15 +286,22 @@ ALL_ENTITIES.forEach(({ key, makeInstance }) => { createdCPData: [], }; const propertyNames: Record = {}; - const dashboardSearchPropertyName = `cp-${uuid()}-${ - entity.name - }${NAME_SUFFIX}`; + // NOTE: NAME_SUFFIX is intentionally omitted for the two + // search-settings property names below. Special characters + // (`!@#%\`()_-=+{}[]|;',.?`) round-trip through the general CRUD + // paths — every BASIC_PROPERTIES / CONFIG_PROPERTIES iteration + // still stresses them — but the search-settings persistence path + // currently drops matching-field entries whose fieldName contains + // those characters, which makes "Verify … persists in search + // settings" fail deterministically the moment retries are disabled + // on this block. Track separately as a backend bug; here we just + // use a plain name so the persistence coverage is meaningful and + // the retry-0 config on the outer describe is safe to land. + const dashboardSearchPropertyName = `cp-${uuid()}-${entity.name}`; const dashboardPropertyValue = `EXECUTIVE_DASHBOARD_${uuid()}`; - // Pipeline-specific state - const pipelineSearchPropertyName = `cp-${uuid()}-${ - entity.name - }${NAME_SUFFIX}`; + // Pipeline-specific state (same NAME_SUFFIX carve-out as above). + const pipelineSearchPropertyName = `cp-${uuid()}-${entity.name}`; const pipelinePropertyValue = `ETL_PRODUCTION_${uuid()}`; test.beforeAll(async ({ browser }) => {