Skip to content

fix: playwright driver の CDN 404 で定期実行が失敗する問題を解消 - #107

Merged
ara-ta3 merged 1 commit into
mainfrom
devin/1783580111-fix-playwright-cdn
Jul 9, 2026
Merged

fix: playwright driver の CDN 404 で定期実行が失敗する問題を解消#107
ara-ta3 merged 1 commit into
mainfrom
devin/1783580111-fix-playwright-cdn

Conversation

@devin-ai-integration

Copy link
Copy Markdown
Contributor

Summary

定期実行 (scheduled-crawler.ymlmake run) が playwright install failed で失敗していた原因を修正。

原因は Microsoft が旧 driver 配布用 CDN (playwright.azureedge.net など) を廃止したこと。playwright-go はこの CDN から driver zip を DL していたため 404 になっていた:

got non 200 status code: 404 (404 Not Found) from https://playwright.azureedge.net/builds/driver/playwright-1.60.0-linux.zip

これは playwright-go v0.6100.0 (PR mxschmitt/playwright-go#615) で修正済み。以降は npm (playwright-core) + nodejs.org/dist から driver を組み立てる方式に変わり、廃止 CDN に依存しなくなった。

なお v0.6100.0 はモジュールパスが github.com/playwright-community/playwright-go から github.com/mxschmitt/playwright-go に戻っているため、import パスも合わせて変更している(パッケージ名 playwright は不変なのでコード本体の変更は不要)。

  • go.mod: playwright-community/playwright-go v0.6000.0mxschmitt/playwright-go v0.6100.0
  • pkg/domains/nihontsushin.go: import パスを mxschmitt/playwright-go に変更

検証

  • make build / make test OK
  • playwright.Install(SkipInstallBrowsers: true) を単体実行し、driver DL が成功することを確認 (INSTALL OK)

Link to Devin session: https://app.devin.ai/sessions/7f595434415b47c4afbaf8a659015cc5

Co-Authored-By: ara-ta3 <2089153+ara-ta3@users.noreply.github.com>
@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment, CI, and merge conflict monitoring

@ara-ta3
ara-ta3 merged commit 76b1df2 into main Jul 9, 2026
1 check passed
@ara-ta3
ara-ta3 deleted the devin/1783580111-fix-playwright-cdn branch July 9, 2026 07:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant