Repository navigation
fix(playwright): retry logs viewer pipeline trigger - #29725
Merged
Merged
Conversation
Contributor
🟡 Playwright Results — all passed (23 flaky)✅ 4481 passed · ❌ 0 failed · 🟡 23 flaky · ⏭️ 37 skipped
🟡 23 flaky test(s) (passed on retry)
How to debug locally# Download playwright-test-results-<shard> artifact and unzip
npx playwright show-trace path/to/trace.zip # view trace |
shah-harshit
enabled auto-merge (squash)
July 3, 2026 14:11
chirag-madlani
approved these changes
Jul 3, 2026
Code Review ✅ ApprovedEnables the logs viewer Playwright suite and adds a three-retry mechanism with delay for pipeline triggers to increase test reliability. No issues found. OptionsDisplay: compact → Showing less information. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Gitar |
4 tasks done
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Testing
Greptile Summary
This PR unskips the
LogsViewerPlaywright test suite and adds retry logic to therunIngestionPipelinehelper 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: Removestest.describe.skipso 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
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%%{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 endReviews (2): Last reviewed commit: "Merge branch 'main' into fix/logs-viewer..." | Re-trigger Greptile