ecosystem-tests icon indicating copy to clipboard operation
ecosystem-tests copied to clipboard

(Serverless initiative): test Prisma error messages in unsupported systems

Open jkomyno opened this issue 3 years ago • 3 comments

Prisma may throw a number of different error messages when loading the Prisma Engines fails. Although we already attempt to provide meaningful user-facing explanations of what went wrong, we should strive to be more precise.

We should thus add some ecosystem-tests that try to install and run Prisma on scenarios where we know it would fail.

Relevant unsupported systems we should test the new conditional error messages on:

  • [x] Linux Alpine on arm64 arch (only x86_64 is supported for Linux Alpine, see https://github.com/prisma/prisma/issues/8478)
  • [x] Distroless without libz.so.1 (see this comment)
  • [x] Debian Buster without any libssl version installed (see this comment)
  • [x] Linux Alpine 3.17 on x86_64 arch with binaryTargets: ["linux-musl"] (it ships openssl-3.0.x, but will try to dynamically load openssl-1.1.x, see https://github.com/prisma/prisma/issues/16553)
  • [ ] ~~Assert failures causes by Prisma not being able to load its engines~~.

jkomyno avatar Dec 21 '22 17:12 jkomyno

This is probably not something that should be run with every version. But it totally makes sense as a manual thing we can run.

janpio avatar Dec 21 '22 20:12 janpio

Folks, can we fix the milestone on this issue please. 4.9.0 has already sailed.

mcbethio avatar Feb 04 '23 15:02 mcbethio

Note: we tried assertions in https://github.com/prisma/prisma/pull/17762, but they didn't make it to the release due to bundling issues with jest.spyOn. We did manual testing using the setup from ecosystem-tests / docker on an integration release for the time being.

jkomyno avatar Feb 07 '23 12:02 jkomyno