-
Notifications
You must be signed in to change notification settings - Fork 7
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
Cache Provider Contract on Pact Broker #91
Comments
This issue has been linked to a Canny post: Cache Provider Contract on Pact Broker 🎉 |
Beth - June 20, 2021
|
Matt Fellows - August 2, 2021
1 like |
Joel Whalen - Feb 8, 2024
|
The use case for a cached provider contract is when a consumer has not been tested against a version of a provider before.
This will speed up the verification of new consumer versions against existing provider versions, as the consumers don't have to wait long for the provider pipelines to generate contracts, esp for the provider versions which have been already been a part of some verification before in older builds.
With the cache feature in place, the consumer triggered provider pipeline can first call a broker API (with required provider version / tag) to download the cached provider contract (if exists) and do the verification. If the cache doesn't exist then the pipeline will continue as usual with checking out the relevant commit, generating the contract, doing the verification and finally uploading both the contract and the verification result to the broker for the relevant provider version / tag.
I had a discussion on this with Matt Fellows on Slack, link to the conversion below:
https://pact-foundation.slack.com/archives/C5F4KFKR8/p1624080302205500
https://pact.canny.io/admin/board/feature-requests/p/cache-provider-contract-on-pact-broker
The text was updated successfully, but these errors were encountered: