-
-
Notifications
You must be signed in to change notification settings - Fork 178
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
How Pact Distinguishes "latest" for a tag #155
Comments
This is my fault: https://github.com/pact-foundation/pact_broker/wiki/Configuration#ordering-versions-by-date Now, if I'm using the docker image. Would you recommend I build |
I would just use our image as the base, create a custom IIRC there is also a runtime toggle where you can configure this via the DB (no API exposed as of yet). Try this at your own risk (i.e. back up first)
|
Great thanks! |
I've just put out a new version of the docker broker (2.6.0-3) that will load the configuration from the database DiUS/pact_broker-docker@d373f48 Grab the latest copy, and run the line that Matt suggested, and you won't need a custom build. |
Amazing. |
* chore: suggest multilevel parameters * Update versions/1.0.0.md Co-authored-by: Frank Kilcommins <fkilcommins@gmail.com> * Update examples/1.0.0/ExtendedParametersExample.workflow.yaml Co-authored-by: Frank Kilcommins <fkilcommins@gmail.com> * Update versions/1.0.0.md Co-authored-by: Frank Kilcommins <fkilcommins@gmail.com> --------- Co-authored-by: Frank Kilcommins <fkilcommins@gmail.com>
* feat: adding support for share success and failure actions * Merging latest 'main' changes in to Action Object Extensions branch (pact-foundation#170) * chore: suggest multilevel parameters (pact-foundation#155) * chore: suggest multilevel parameters * Update versions/1.0.0.md Co-authored-by: Frank Kilcommins <fkilcommins@gmail.com> * Update examples/1.0.0/ExtendedParametersExample.workflow.yaml Co-authored-by: Frank Kilcommins <fkilcommins@gmail.com> * Update versions/1.0.0.md Co-authored-by: Frank Kilcommins <fkilcommins@gmail.com> --------- Co-authored-by: Frank Kilcommins <fkilcommins@gmail.com> * Remove references to WHATWG to avoid confusion (pact-foundation#145) * Remove references to WHATWG to avoid confusion * Correct relative reference wording * Section 4.2 not 4.1! * Simplify URI wording * Adjust Step Parameters desc to cater for Workflow parameters addition (pact-foundation#169) * feat: add `dependsOn` capability for workflow level (pact-foundation#164) * feat: add `dependsOn` capability for workflow level * chore: typo fix * chore: grammer fix * feat: Add Request Body Object (pact-foundation#162) * feat: Add Request Body Object * chore: fix typos in examples * Clarity on referencing Components Parameters (pact-foundation#149) * Clarity on referencing Components Parameters * Remove Reference Object to avoid clash with JSON Schema keyword. Replace with expression based referencing * chore: keep fixed field link names consistent * chore: Name component parameters as type Reusable Parameter Object * chore: adjust Workflow level parameters to use Reusable Parameter Objects --------- Co-authored-by: Dmytro Anansky <dmytro@redocly.com> Co-authored-by: Nick Denny <nick@apimetrics.com> * Add Reusable Object and referencing ability * chore: fix yaml example indentation * chore: fix JSON examples * chore: fix typo in `workflowStepActions` --------- Co-authored-by: Dmytro Anansky <dmytro@redocly.com> Co-authored-by: Nick Denny <nick@apimetrics.com>
Have a question regarding the broker. It doesn't seem like its finding the latest versions of the tags I'm using.
Our setup:
Version: Git SHA
Tag: branch
Pacts can be pushed locally via
go test ./... -tags=pact
and also via our CI pipeline when running tests.We did this way so we can always say give me the "master" (production) version of the pact.
When hitting: https://my.pact.net/pacts/provider/granola/consumer/service-clients/latest/master to get the latest for tag master I get a pact that was created: Fri 27 Oct 2017, 8:36pm +00:00
When I go in HAL browser and look for the specific SHA for the latest master (version 4ff6fe1be3bd1e2a23fc516223460378df2ba938) that pact is created on:"createdAt": "2017-11-01T15:29:34+00:00"
Am I misunderstanding how it attributes the the latest tagged version? I've read the wiki, and I think I'm using tags and versions as recommended there.
Also notice the first page of the broker references the pacts that I deployed over a week ago (on some random branch). We've been iterating pretty quickly on pacts. I probably deployed 5 pacts for this consumer/provider pair today alone
The text was updated successfully, but these errors were encountered: