dylibso / chicory

Native JVM WebAssembly runtime
Apache License 2.0
459 stars 35 forks source link

Cloudflare failure #580

Closed andreaTP closed 2 days ago

andreaTP commented 2 days ago

The build of the docs in Cloudflare failed on main, but I'm unable to access the logs to try to fix it :sweat:

The failure is here: https://github.com/dylibso/chicory/runs/31630153048

bhelx commented 2 days ago

Seems like the yarn failure again:


12:04:17.719 | Cloning repository...
-- | --
12:04:19.039 | From https://github.com/dylibso/chicory
12:04:19.039 | * branch            c1a462a0801720090a58cf4a95624f40a0378dd2 -> FETCH_HEAD
12:04:19.039 |  
12:04:19.200 | HEAD is now at c1a462a [chore] proper docs testing with approvals and jbang
12:04:19.201 |  
12:04:19.286 |  
12:04:19.286 | Using v2 root directory strategy
12:04:19.311 | Success: Finished cloning repository files
12:04:20.976 | Checking for configuration in a wrangler.toml configuration file (BETA)
12:04:20.976 |  
12:04:21.123 | No wrangler.toml file found. Continuing.
12:04:21.271 | Detected the following tools from environment: yarn@3.6.3, nodejs@18.17.1
12:04:21.271 | Installing project dependencies: yarn
12:04:22.023 | ➤ YN0070: Migrating from Yarn 1; automatically enabling the compatibility node-modules linker 👍
12:04:22.024 |  
12:04:22.152 | ➤ YN0000: ┌ Resolution step
12:04:22.979 | ➤ YN0061: │ natives@npm:1.1.6 is deprecated: This module relies on Node.js's internals and will break at some point. Do not use it, and update to graceful-fs@4.x.
12:04:23.260 | ➤ YN0061: │ rimraf@npm:2.6.3 is deprecated: Rimraf versions prior to v4 are no longer supported
12:04:23.385 | ➤ YN0061: │ glob@npm:7.2.3 is deprecated: Glob versions prior to v9 are no longer supported
12:04:23.453 | ➤ YN0032: │ fsevents@npm:2.3.3: Implicit dependencies on node-gyp are discouraged
12:04:23.562 | ➤ YN0061: │ inflight@npm:1.0.6 is deprecated: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
12:04:26.146 | ➤ YN0061: │ rimraf@npm:3.0.2 is deprecated: Rimraf versions prior to v4 are no longer supported
12:04:31.985 | ➤ YN0002: │ @algolia/autocomplete-core@npm:1.9.3 doesn't provide @algolia/client-search (pbc410), requested by @algolia/autocomplete-shared
12:04:31.985 | ➤ YN0002: │ @algolia/autocomplete-core@npm:1.9.3 doesn't provide algoliasearch (p8ad5b), requested by @algolia/autocomplete-shared
12:04:31.985 | ➤ YN0002: │ @algolia/autocomplete-core@npm:1.9.3 doesn't provide search-insights (pfdb70), requested by @algolia/autocomplete-plugin-algolia-insights
12:04:31.985 | ➤ YN0002: │ @algolia/autocomplete-plugin-algolia-insights@npm:1.9.3 [e43f4] doesn't provide @algolia/client-search (pdf3b9), requested by @algolia/autocomplete-shared
12:04:31.986 | ➤ YN0002: │ @algolia/autocomplete-plugin-algolia-insights@npm:1.9.3 [e43f4] doesn't provide algoliasearch (p0f6bb), requested by @algolia/autocomplete-shared
12:04:31.986 | ➤ YN0002: │ @docsearch/react@npm:3.6.1 [f7484] doesn't provide @algolia/client-search (p89478), requested by @algolia/autocomplete-preset-algolia
12:04:31.986 | ➤ YN0002: │ @docusaurus/plugin-content-blog@npm:3.5.2 [e6b2d] doesn't provide @mdx-js/react (pcd100), requested by @docusaurus/core
12:04:31.986 | ➤ YN0002: │ @docusaurus/plugin-content-docs@npm:3.5.2 [e6b2d] doesn't provide @mdx-js/react (p12656), requested by @docusaurus/core
12:04:31.986 | ➤ YN0002: │ @docusaurus/plugin-content-pages@npm:3.5.2 [e6b2d] doesn't provide @mdx-js/react (p127e4), requested by @docusaurus/core
12:04:31.986 | ➤ YN0002: │ @docusaurus/plugin-debug@npm:3.5.2 [e6b2d] doesn't provide @mdx-js/react (pfc20b), requested by @docusaurus/core
12:04:31.986 | ➤ YN0002: │ @docusaurus/plugin-google-analytics@npm:3.5.2 [e6b2d] doesn't provide @mdx-js/react (pe5a00), requested by @docusaurus/core
12:04:31.986 | ➤ YN0002: │ @docusaurus/plugin-google-gtag@npm:3.5.2 [e6b2d] doesn't provide @mdx-js/react (p58360), requested by @docusaurus/core
12:04:31.986 | ➤ YN0002: │ @docusaurus/plugin-google-tag-manager@npm:3.5.2 [e6b2d] doesn't provide @mdx-js/react (pf87f6), requested by @docusaurus/core
12:04:31.987 | ➤ YN0002: │ @docusaurus/plugin-sitemap@npm:3.5.2 [e6b2d] doesn't provide @mdx-js/react (pb9837), requested by @docusaurus/core
12:04:31.987 | ➤ YN0002: │ @docusaurus/preset-classic@npm:3.5.2 [f245e] doesn't provide @mdx-js/react (pc1039), requested by @docusaurus/core
12:04:31.987 | ➤ YN0002: │ @docusaurus/theme-search-algolia@npm:3.5.2 [e6b2d] doesn't provide @mdx-js/react (p19f62), requested by @docusaurus/core
12:04:31.987 | ➤ YN0002: │ approvals@npm:7.1.3 doesn't provide eslint (p9b85e), requested by @typescript-eslint/eslint-plugin
12:04:31.987 | ➤ YN0002: │ approvals@npm:7.1.3 doesn't provide eslint (p36065), requested by @typescript-eslint/parser
12:04:31.987 | ➤ YN0002: │ approvals@npm:7.1.3 doesn't provide typescript (pc344c), requested by ts-jest
12:04:31.987 | ➤ YN0002: │ docs@workspace:. doesn't provide @types/react (p9b52f), requested by @mdx-js/react
12:04:31.987 | ➤ YN0000: │ Some peer dependencies are incorrectly met; run yarn explain peer-requirements <hash> for details, where <hash> is the six-letter p-prefixed code
12:04:31.989 | ➤ YN0000: └ Completed in 9s 836ms
12:04:32.068 | ➤ YN0000: ┌ Post-resolution validation
12:04:32.068 | ➤ YN0028: │ The lockfile would have been modified by this install, which is explicitly forbidden.
12:04:32.068 | ➤ YN0000: └ Completed
12:04:32.068 | ➤ YN0000: Failed with errors in 9s 918ms
12:04:32.139 | Error: Exit with error code: 1
12:04:32.139 | at ChildProcess.<anonymous> (/snapshot/dist/run-build.js)
12:04:32.140 | at Object.onceWrapper (node:events:652:26)
12:04:32.140 | at ChildProcess.emit (node:events:537:28)
12:04:32.140 | at ChildProcess._handle.onexit (node:internal/child_process:291:12)
12:04:32.149 | Failed: build command exited with code: 1
12:04:32.981 | Failed: error occurred while running build command

Could you change it to use npm instead of yarn? https://github.com/dylibso/chicory/commit/c1a462a0801720090a58cf4a95624f40a0378dd2#diff-944291df2c9c06359d37cc8833d182d705c9e8c3108e7cfe132d61a06e9133ddR64

Also do not commit yarn.lock https://github.com/dylibso/chicory/commit/c1a462a0801720090a58cf4a95624f40a0378dd2#diff-70d70f37fcec325b7c24abaf02dc84e7a0651d480a8f2058933e8ed8624ff232

maybe let's add to the gitignore.

andreaTP commented 2 days ago

I can, but, after thinking about it, the ideal solution would be to have a yarn.lock that will not be modified I guess, to have more reproducible builds ...

Not sure why it differs on Cloudflare though...

bhelx commented 2 days ago

I'll give it a try. not sure how it got out of sync and why cloudflare keeps building a different version of it.

bhelx commented 2 days ago

Give this a try. I'm still kind of wary about using yarn as it might just lead to more hours wasted: https://github.com/dylibso/chicory/pull/581