You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bump Node.js requirement from to >=12.2 to >=12.6 #8839
Seems we have to look into #7621 and prisma/ecosystem-tests#1750 again and possibly write an explicit test that justifies this requirement change (by failing with current node, but succeeding with 12.6).
✔ Generated Prisma Client (2.31.0-dev.13) to ./node_modules/@prisma/client in 56ms
You can now start using Prisma Client in your code. Reference: pris.ly/d/client
```
import { PrismaClient } from '@prisma/client'
const prisma = new PrismaClient()
```
2021-08-27T07:20:06.012Z prisma:getConfig Using Node-API Query Engine at: /home/runner/work/e2e-tests/e2e-tests/generic/basic/node_modules/@prisma/engines/libquery_engine-debian-openssl-1.1.x.so.node
Done in 2.40s.
-----------------------------
run.sh was successful (code 0), running generic/basic/test.sh...
yarn run v1.22.11
warning ../../package.json: No license field
$ ts-node ./script.ts
PrismaClientKnownRequestError3 [PrismaClientKnownRequestError]:
Invalid `prisma.user.deleteMany()` invocation:
at cb (/home/runner/work/e2e-tests/e2e-tests/generic/basic/node_modules/@prisma/client/runtime/index.js:36068:17) {
code: 'InvalidArg',
clientVersion: '2.31.0-dev.13',
meta: undefined
}
error Command failed with exit code 1.
Activity
janpio commentedon Aug 24, 2021
We should see if Node-API makes our tests fail in any way before merging the requirement change.
In theory e2e tests should cover this -
and if not we should add tests for that.https://github.com/prisma/e2e-tests/blob/422b057cfaa948f4e39d6308ae25765cdee57f34/.github/workflows/test.yaml#L281janpio commentedon Aug 26, 2021
Node 12.2 tests seem to pass fine with binary and library after the default change:
https://github.com/prisma/e2e-tests/runs/3432494666
https://github.com/prisma/e2e-tests/runs/3432494707
Seems we have to look into #7621 and prisma/ecosystem-tests#1750 again and possibly write an explicit test that justifies this requirement change (by failing with current node, but succeeding with 12.6).
williamluke4 commentedon Aug 27, 2021
Hmm just had a look at the
12.2e2e test with node-api the test passes for some weird reason despite it actually failing... see hereJolg42 commentedon Aug 27, 2021
It actually makes sense that tests are passing since it's only a warning
UnhandledPromiseRejectionWarningIt can be changed like this
Since v15: Changed default mode to throw. Previously, a warning was emitted.
see: https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode
Jolg42 commentedon Aug 27, 2021
Actually it's now failing since
2.31.0-dev.13with https://github.com/prisma/e2e-tests/runs/3440731303?check_suite_focus=true#step:6:356The 3 in
PrismaClientKnownRequestError3is 🤔Jolg42 commentedon Aug 27, 2021
Created a PR to see if 12.6 still errors or not in e2e at prisma/ecosystem-tests#2023
Update: test is passing https://github.com/prisma/e2e-tests/runs/3441985146?check_suite_focus=true#step:6:118
janpio commentedon Aug 27, 2021
Known problem with issue at #7035
janpio commentedon Aug 27, 2021
What made it fail now?
Wth does this error message mean?
Is this really the same problem as what was tracked in the two bug issues re the unhandled promise rejection?
Jolg42 commentedon Aug 27, 2021
Only relevant bit of information from error message is
code: 'InvalidArg',not sure what that means here.williamluke4 commentedon Aug 27, 2021
The reason this is failing now is because #8867 was merged. This was my original explanation on the
code: 'InvalidArg',#7621 (comment)Jolg42 commentedon Aug 27, 2021
So we need to bump then from what I read.
janpio commentedon Aug 27, 2021
Bump here, then merge prisma/ecosystem-tests#2023 to (test and then) reflect the new requirement.
janpio commentedon Aug 31, 2021
PR at #9049
update node requirement from 12.2 to 12.6
update node requirement from 12.2 to 12.6 (#2245)
Prisma 3 docs epic (#2183)