Skip to content

Fix/puppeteer browser install windows#812

Open
l2ysho wants to merge 2 commits into
masterfrom
fix/puppeteer-browser-install-windows
Open

Fix/puppeteer browser install windows#812
l2ysho wants to merge 2 commits into
masterfrom
fix/puppeteer-browser-install-windows

Conversation

@l2ysho

@l2ysho l2ysho commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

fixes #806 pipeline
fixes #808 pipeline

follow up #813 to fix win properly

@l2ysho l2ysho marked this pull request as ready for review June 18, 2026 11:40
@l2ysho l2ysho requested review from B4nan, DaveHanns, vdusek and vladfrangu and removed request for vdusek and vladfrangu June 18, 2026 11:44
@l2ysho l2ysho self-assigned this Jun 18, 2026
@l2ysho l2ysho added the adhoc Ad-hoc unplanned task added during the sprint. label Jun 18, 2026
@github-actions github-actions Bot added this to the 143rd sprint - Tooling team milestone Jun 18, 2026
@github-actions github-actions Bot added t-tooling Issues with this label are in the ownership of the tooling team. tested Temporary label used only programatically for some analytics. labels Jun 18, 2026
@l2ysho l2ysho enabled auto-merge (squash) June 18, 2026 12:06

@vladfrangu vladfrangu left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also please run a /simplify or smth, the amount of comments to code changes are insaaane

Comment on lines +11 to +18
# Pinned to windows-2022 rather than windows-latest: the js-langchain
# template depends on the native hnswlib-node addon, which is compiled with
# node-gyp at install time. The windows-latest image ships Visual Studio 18
# (2026), which the bundled node-gyp cannot detect ("find VS unknown version"),
# so the native build fails. windows-2022 ships VS 2022, which node-gyp
# supports. See https://github.com/apify/actor-templates/issues/813 for
# removing the native dependency.
os: [ubuntu-24.04, windows-2022]

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm surprised thats the issue... I would rather figure out how to fix node-gyp, not downgrade windows to 2022

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I forgot to link followup issue #813

l2ysho and others added 2 commits June 18, 2026 12:48
…emplate tests

The `Test Node.js templates (windows-latest, 24)` job has been failing daily.
Puppeteer templates download their pinned Chrome via a postinstall hook into the
shared user-level cache (~/.cache/puppeteer), reused across template runs. On
Windows a partially-written entry from one puppeteer template poisons the next
template's install ("browser folder exists but the executable is missing"), so
`npm install` exits 1 and the test fails.

Pin Puppeteer's cache to one explicit PUPPETEER_CACHE_DIR shared by every step:
- Workflow: pre-install the pinned browsers (chrome + chrome-headless-shell)
  into PUPPETEER_CACHE_DIR before the tests, mirroring the Playwright step, so
  templates start from a complete cache.
- Harness: honor an externally provided PUPPETEER_CACHE_DIR (falling back to a
  temp dir locally) so `npm install` and `apify run` agree on one location, and
  retry `npm install` for puppeteer templates, clearing the cache between
  attempts so a corrupted entry can't wedge every retry.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
js-langchain's native hnswlib-node addon fails to build on the windows-latest
image: it now ships Visual Studio 2026, which the bundled node-gyp can't detect,
so `npm install` exits 1. windows-2022 ships VS 2022, which node-gyp supports.
Removing the native dependency is tracked in #813.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@l2ysho l2ysho force-pushed the fix/puppeteer-browser-install-windows branch from da15cc0 to e1bc3f4 Compare June 18, 2026 12:49
@l2ysho l2ysho requested a review from vladfrangu June 18, 2026 12:50
@vdusek vdusek removed their request for review June 18, 2026 14:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

adhoc Ad-hoc unplanned task added during the sprint. t-tooling Issues with this label are in the ownership of the tooling team. tested Temporary label used only programatically for some analytics.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants