Miguel Heitor
02/08/2024, 9:46 AMMatt (pactflow.io / pact-js / pact-go)
Miguel Heitor
02/08/2024, 9:58 AMMiguel Heitor
02/08/2024, 10:00 AMYousaf Nabi (pactflow.io)
Yousaf Nabi (pactflow.io)
Miguel Heitor
02/08/2024, 10:07 AMand issues merging contents.because when pact runs, it merges the new test execution to the previous?
Yousaf Nabi (pactflow.io)
Yousaf Nabi (pactflow.io)
Miguel Heitor
02/08/2024, 10:11 AMrm -rf pacts && run_pact_tests
Miguel Heitor
02/08/2024, 10:13 AMYousaf Nabi (pactflow.io)
not really getting the part of not pushing them and having to generate again in the pipeline to be able to publish.If you don’t generate them in the pipeline, then the results could be erroneous. you should never pregenerate pact contracts, and publish them from CI from a build that hasn’t ran the tests. the code could have changed from the content in the contract
Yousaf Nabi (pactflow.io)
Miguel Heitor
02/08/2024, 10:17 AMMiguel Heitor
02/08/2024, 10:18 AMYousaf Nabi (pactflow.io)
as long as I had run them in my local before pushing of courseThat is manual effort on your part, that you or others might forget. You might not check in the updated files
Yousaf Nabi (pactflow.io)
Miguel Heitor
02/08/2024, 10:21 AMYousaf Nabi (pactflow.io)
Miguel Heitor
02/08/2024, 10:27 AMand we trust CI more, and can associate a version with the contract, so we have high confidence on which commit the contract was associated with.actually this makes some more sense to me, thank you for the TL;DR