fix(ci): 修正 E2E 多 reporter CLI 語法讓 blob 報告產出#484
Merged
Conversation
- 重複的 --reporter= flag 只有最後 list 生效,blob 從未產出,blob-report 為空 - 連帶 merge-reports 找不到報告而失敗,是 main CI 長期紅燈的真正根因 - 依 Playwright 官方文檔改為單一逗號語法 --reporter=blob,github,list,三者同時生效 - 與 PR482 路徑修正合計,E2E Merge Reports 應由 fail 轉 pass 測試:context7 核對 Playwright reporter 逗號語法;以 main push 的 E2E Merge Reports 轉 pass 驗證
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Contributor
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.Scanned FilesNone |
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.
根因(接續 #482)
#482 修了 merge 下載路徑,但 main CI 仍紅。深入發現真正根因:
E2E 測試步驟用三個分開的
--reporter=flag(--reporter=blob --reporter=github --reporter=list)。Playwright CLI 的--reporter多 reporter 必須逗號分隔;重複 flag 只有最後的list生效,blob從未產出 →apps/ratewise/blob-report為空 → upload 無檔(僅 warn)→ download 抓不到 → merge-reports 報「Directory does not exist」失敗。修法
依 Playwright 官方文檔改為單一逗號語法
--reporter=blob,github,list,blob/github/list 三者同時生效。依據
context7 / Playwright 官方 sharding 文檔:
--reporter支援逗號分隔多 reporter。驗證
合併後 main push 的 E2E Full 將產出 blob-report-1/2 artifact,E2E Merge Reports 由 fail 轉 pass。