Skip to content

fix(playwright): retry logs viewer pipeline trigger - #29725

Merged
shah-harshit merged 2 commits into
mainfrom
fix/logs-viewer-pipeline-trigger-retry
Jul 3, 2026
Merged

shah-harshit merged 2 commits into
mainfrom
fix/logs-viewer-pipeline-trigger-retry

Conversation

@shah-harshit

@shah-harshit shah-harshit commented Jul 3, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Unskip the logs viewer Playwright suite.
  • Retry logs viewer pipeline trigger up to three times with a 10 second delay between failures.

Testing

  • xargs ./node_modules/.bin/organize-imports-cli < /tmp/om_pw_files.txt
  • xargs ./node_modules/.bin/eslint --no-error-on-unmatched-pattern --fix < /tmp/om_pw_files.txt
  • xargs ./node_modules/.bin/prettier --config './.prettierrc.yaml' --ignore-path './.prettierignore' --write < /tmp/om_pw_files.txt
  • git diff --check
  • ./node_modules/.bin/playwright test playwright/e2e/Pages/LogsViewer.spec.ts --list

Greptile Summary

This PR unskips the LogsViewer Playwright test suite and adds retry logic to the runIngestionPipeline helper to make pipeline triggering more resilient to transient API failures.

  • BundleTestSuiteClass.ts: Wraps the pipeline trigger POST in a loop of up to 3 attempts with a 10-second delay between retries; on all-attempts exhaustion it throws with the last HTTP status and body for diagnostics.
  • LogsViewer.spec.ts: Removes test.describe.skip so the suite now runs in CI, relying on the improved trigger reliability to prevent flaky failures.

Confidence Score: 5/5

Safe to merge — the changes are confined to Playwright test helpers and add well-structured retry logic with no production code impact.

The retry loop is correctly bounded (3 attempts), the delay is applied only between attempts and never after the last one, the response body is read for diagnostics on every failed attempt from that iteration's response, and a clear error is thrown when all attempts are exhausted. Unskipping the suite is the natural follow-on once the flakiness root cause is addressed.

No files require special attention.

Important Files Changed

Filename Overview
openmetadata-ui/src/main/resources/ui/playwright/support/entity/BundleTestSuiteClass.ts Adds retry loop (3 attempts, 10 s delay) around the pipeline trigger POST; preserves last HTTP status and body for the thrown error message on full failure.
openmetadata-ui/src/main/resources/ui/playwright/e2e/Pages/LogsViewer.spec.ts Removes test.describe.skip to re-enable the Logs Viewer test suite; no other changes to test logic.

Sequence Diagram

%%{init: {'theme': 'neutral'}}%%
sequenceDiagram
    participant Test as Playwright Test
    participant API as OpenMetadata API

    Test->>API: "POST /deploy/{pipelineId}"
    API-->>Test: (response ignored)
    Note over Test: wait 5s

    loop up to 3 attempts
        Test->>API: "POST /trigger/{pipelineId}"
        alt status 200
            API-->>Test: 200 OK
            Note over Test: return (success)
        else "status != 200"
            API-->>Test: error status
            Note over Test: read body for diagnostics
            alt "attempt < 3"
                Note over Test: wait 10s then retry
            else "attempt == 3"
                Note over Test: throw Error with status + body
            end
        end
    end
Loading
%%{init: {'theme': 'base', 'themeVariables': {"darkMode": true, "background": "#0d1117", "primaryColor": "#21262d", "primaryTextColor": "#e6edf3", "primaryBorderColor": "#8b949e", "lineColor": "#8b949e", "textColor": "#e6edf3", "edgeLabelBackground": "#161b22", "actorBkg": "#21262d", "actorBorder": "#8b949e", "actorTextColor": "#e6edf3", "actorLineColor": "#8b949e", "signalColor": "#8b949e", "signalTextColor": "#e6edf3", "noteBkgColor": "#373320", "noteBorderColor": "#d4a72c", "noteTextColor": "#f0e6c0", "labelBoxBkgColor": "#21262d", "labelBoxBorderColor": "#8b949e", "labelTextColor": "#e6edf3", "loopTextColor": "#e6edf3", "activationBkgColor": "#30363d", "activationBorderColor": "#8b949e"}}}%%
sequenceDiagram
    participant Test as Playwright Test
    participant API as OpenMetadata API

    Test->>API: "POST /deploy/{pipelineId}"
    API-->>Test: (response ignored)
    Note over Test: wait 5s

    loop up to 3 attempts
        Test->>API: "POST /trigger/{pipelineId}"
        alt status 200
            API-->>Test: 200 OK
            Note over Test: return (success)
        else "status != 200"
            API-->>Test: error status
            Note over Test: read body for diagnostics
            alt "attempt < 3"
                Note over Test: wait 10s then retry
            else "attempt == 3"
                Note over Test: throw Error with status + body
            end
        end
    end
Loading

Reviews (2): Last reviewed commit: "Merge branch 'main' into fix/logs-viewer..." | Re-trigger Greptile

@shah-harshit
shah-harshit requested a review from a team as a code owner July 3, 2026 09:06
@shah-harshit shah-harshit added safe to test Add this label to run secure Github workflows on PRs skip-pr-checks Bypass PR metadata validation check labels Jul 3, 2026
@shah-harshit shah-harshit self-assigned this Jul 3, 2026
@github-actions

github-actions Bot commented Jul 3, 2026 •

Copy link
Copy Markdown
Contributor

🟡 Playwright Results — all passed (23 flaky)

✅ 4481 passed · ❌ 0 failed · 🟡 23 flaky · ⏭️ 37 skipped

Shard Passed Failed Flaky Skipped
🟡 Shard 1 440 0 3 16
🟡 Shard 2 805 0 5 8
🟡 Shard 3 807 0 2 7
🟡 Shard 4 809 0 2 5
🟡 Shard 5 852 0 5 0
🟡 Shard 6 768 0 6 1
🟡 23 flaky test(s) (passed on retry)
  • Features/Glossary/GlossaryPagination.spec.ts › should check for nested glossary term search (shard 1, 1 retry)
  • Pages/Lineage/LineageRightPanel.spec.ts › Verify custom properties tab IS visible for supported type: metric (shard 1, 1 retry)
  • Flow/SearchRBAC.spec.ts › a dashboard-scoped user sees dashboards but never tables (shard 1, 1 retry)
  • Features/BulkEditEntity.spec.ts › Glossary (shard 2, 1 retry)
  • Features/BulkImport.spec.ts › Database service (shard 2, 1 retry)
  • Features/BulkImport.spec.ts › Database (shard 2, 1 retry)
  • Features/ContextCenterPermission.spec.ts › user with editAll permission can see restore action but not delete action on an archived document, and can restore it (shard 2, 1 retry)
  • Features/GlobalPageSize.spec.ts › Page size should persist across different pages (shard 2, 1 retry)
  • Features/IncidentManager.spec.ts › Next, Previous and page indicator (shard 3, 1 retry)
  • Features/SearchExport.spec.ts › Export queues a background job and downloads from the jobs tray (shard 3, 1 retry)
  • Pages/CustomProperties.spec.ts › Number (shard 4, 1 retry)
  • Pages/DataContractInheritance.spec.ts › Full Contract Inheritance - Asset inherits full contract from Data Product (shard 4, 1 retry)
  • Pages/DomainDataProductsRightPanel.spec.ts › Should display data product name link in panel in domain context (shard 5, 1 retry)
  • Pages/Domains.spec.ts › first-time add (no current domain) commits without showing the warning modal (shard 5, 1 retry)
  • Pages/ExploreBrowse.spec.ts › service type drill-down disables unrelated roots and query-panel Clear resets it (shard 5, 2 retries)
  • Pages/ExplorePageRightPanel_KnowledgeCenter.spec.ts › Should remove user owner for knowledgeCenter (shard 5, 1 retry)
  • Pages/ExplorePageRightPanel.spec.ts › Should perform CRUD and Removal operations for database (shard 5, 1 retry)
  • Pages/GlossaryImportExport.spec.ts › Glossary Bulk Import Export (shard 6, 1 retry)
  • Pages/GlossaryImportExport.spec.ts › Import partial success - some terms pass, some fail (shard 6, 1 retry)
  • Pages/Lineage/DataAssetLineage.spec.ts › Column lineage for dashboardDataModel -> topic (shard 6, 1 retry)
  • Pages/Lineage/DataAssetLineage.spec.ts › Column lineage for searchIndex -> mlModel (shard 6, 1 retry)
  • Pages/Lineage/LineageRightPanel.spec.ts › Verify custom properties tab is NOT visible for pipelineService in platform lineage (shard 6, 1 retry)
  • Pages/Lineage/LineageRightPanel.spec.ts › Verify custom properties tab is NOT visible for apiService in platform lineage (shard 6, 1 retry)

📦 Download artifacts

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

@shah-harshit
shah-harshit merged commit bbf5f03 into main Jul 3, 2026
59 of 60 checks passed
@shah-harshit
shah-harshit deleted the fix/logs-viewer-pipeline-trigger-retry branch July 3, 2026 14:37
@gitar-bot

gitar-bot Bot commented Jul 3, 2026

Copy link
Copy Markdown
Code Review ✅ Approved

Enables the logs viewer Playwright suite and adds a three-retry mechanism with delay for pipeline triggers to increase test reliability. No issues found.

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

This branch was previously deployed

1 inactive deployment
test — 69d83694 Deployed Jul 3, 2026 by shah-harshit via playwright-ci-postgresql (1, 6) #54542
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 skip-pr-checks Bypass PR metadata validation check

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants