apache / datafusion-ballista

Apache DataFusion Ballista Distributed Query Engine

Home Page:https://datafusion.apache.org/ballista

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Broken build in CI: yarn failing to build

andygrove opened this issue · comments

Describe the bug
PRs are failing with

yarn install v1.22.19
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
warning "@emotion/styled > @emotion/babel-plugin@11.2.0" has unmet peer dependency "@babel/core@^7.0.0".
warning "@emotion/styled > @emotion/babel-plugin > @babel/plugin-syntax-jsx@7.12.13" has unmet peer dependency "@babel/core@^7.0.0-0".
warning " > @testing-library/user-event@12.7.3" has unmet peer dependency "@testing-library/dom@>=7.21.4".
[4/4] Building fresh packages...
success Saved lockfile.
Done in 42.34s.
yarn run v1.22.19
$ react-scripts build
node:internal/modules/cjs/loader:571
      throw e;
      ^

Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './lib/tokenize' is not defined by "exports" in /home/runner/work/arrow-ballista/arrow-ballista/ballista/scheduler/ui/node_modules/postcss-safe-parser/node_modules/postcss/package.json
    at new NodeError (node:internal/errors:399:5)
    at exportsNotFound (node:internal/modules/esm/resolve:361:10)
    at packageExportsResolve (node:internal/modules/esm/resolve:697:9)
    at resolveExports (node:internal/modules/cjs/loader:565:36)
    at Module._findPath (node:internal/modules/cjs/loader:634:31)
    at Module._resolveFilename (node:internal/modules/cjs/loader:1061:27)
    at Module._load (node:internal/modules/cjs/loader:920:27)
    at Module.require (node:internal/modules/cjs/loader:1141:19)
    at require (node:internal/modules/cjs/helpers:110:18)
    at Object.<anonymous> (/home/runner/work/arrow-ballista/arrow-ballista/ballista/scheduler/ui/node_modules/postcss-safe-parser/lib/safe-parser.js:1:17) {
  code: 'ERR_PACKAGE_PATH_NOT_EXPORTED'
}

To Reproduce
See PRs

Expected behavior
A clear and concise description of what you expected to happen.

Additional context
Add any other context about the problem here.

Notes:

npm ERR! Could not resolve dependency:
npm ERR! peer react@">=18" from @chakra-ui/system@2.5.1
npm ERR! node_modules/@chakra-ui/system
npm ERR!   peer @chakra-ui/system@">=1.0.0" from @chakra-ui/icons@1.0.4
npm ERR!   node_modules/@chakra-ui/icons
npm ERR!     @chakra-ui/icons@"1.0.4" from the root project

also

warning "@emotion/styled > @emotion/babel-plugin@11.2.0" has unmet peer dependency "@babel/core@^7.0.0".
warning "@emotion/styled > @emotion/babel-plugin > @babel/plugin-syntax-jsx@7.12.13" has unmet peer dependency "@babel/core@^7.0.0-0".
warning " > @testing-library/user-event@12.7.3" has unmet peer dependency "@testing-library/dom@>=7.21.4".
warning " > react-timeago@5.2.0" has incorrect peer dependency "react@^16.0.0".

@avantgardnerio @iajoiner @thinkharderdev @Dandandan @yahoNanJing I spent an hour trying to fix this but I am not very familiar with the yarn ecosystem. I think some dependency changes in the last 10 days and caused this? Would appreciate some help trying to resolve so that we can get the next Ballista release out.

Got a link to the PRs?

@avantgardnerio Here is one PR where the error is happening:

#676

Specific build step, for future reference: https://github.com/apache/arrow-ballista/actions/runs/4243213882/jobs/7375668846

$ react-scripts build
Creating an optimized production build...
Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:71:19)

@avantgardnerio I had pushed some changes on that PR in an attempt to fix the issue, and that led to this "unsupported" issue. I have just reverted my changes there to get us back to the original error. Sorry for adding confusion to this.

Fixed in #682