Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pact Builder Error thrown in RedHat Pipelines for Provider test #603

Open
3 of 5 tasks
TheTreeofGrace opened this issue Jan 13, 2025 · 2 comments
Open
3 of 5 tasks
Labels
awaiting feedback Awaiting Feedback from OP bug Indicates an unexpected problem or unintended behavior triage This issue is yet to be triaged by a maintainer

Comments

@TheTreeofGrace
Copy link

Software versions

  • OS: Docker node:20-slim | Linux/amd64 | RedHat
  • Pact Node version: pact-core 15.2.1
  • Node Version: 20.18.0
  • Other Versions: Last working version is pact-core 15.1.0

Issue Checklist

Please confirm the following:

  • I have upgraded to the latest
  • I have the read the FAQs in the Readme
  • I have triple checked, that there are no unhandled promises in my code
  • I have set my log level to debug and attached a log file showing the complete request/response cycle
  • For bonus points and virtual high fives, I have created a reproduceable git repository (see below) to illustrate the problem

Expected behaviour

Pact provider test runs.

Actual behaviour

The Apollo server starts as expected. Pact loads in the pact file but then exits with an error.

"Verification failed at node_modules/@pact-foundation/pact-core/src/verifier/nativeVerifier.ts:52:20"

"Request Failed - builder error"

Steps to reproduce

Maybe will be able to replicate with the Docker image. Pact file version is pactSpecification version 4.

For extra bonus points and internet karma, provide a repository, gist or reproducible code snippet so that we can test the problem.

We recommend forking the project and modifying a relevant example in the examples folder

Relevant log files

Please ensure you set logging to DEBUG and attach any relevant log files here (or link to a gist).

GitHub is blocked by corporate firewall so unable to provide example currently.

@TheTreeofGrace TheTreeofGrace added the bug Indicates an unexpected problem or unintended behavior label Jan 13, 2025
@mefellows
Copy link
Member

Thanks for raising this, we'll really need a repro for this, logs etc. to understand the issue. Is it happening on the consumer test or provider verification?

@mefellows mefellows added awaiting feedback Awaiting Feedback from OP triage This issue is yet to be triaged by a maintainer labels Jan 13, 2025
@TheTreeofGrace
Copy link
Author

Hi Matt, it is in the provider test only. I'll have to put this together outside of work for an example as company firewall blocks committing to GitHub. It's just a simple setup with local pact file for the provider test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting feedback Awaiting Feedback from OP bug Indicates an unexpected problem or unintended behavior triage This issue is yet to be triaged by a maintainer
Projects
None yet
Development

No branches or pull requests

2 participants