Hello! I have been toying with the example ruby ap...
# pact-broker
p
Hello! I have been toying with the example ruby application and pact broker. I thought things were really starting to make sense, but I do not understand what the environments tab is showing me. It seems insistent that the provider version is always identical. It complains that the 'pact from main has changed', but I don't think it has?
For example, I got back and try and verify the provider again against he main branch in QA, now the provider changes for both environments. Every other tab makes sense, more or less. Perhaps I am missing something fundamental here...
I am referencing from here: https://docs.pact.io/pact_broker/recording_deployments_and_releases#environments I am using the
pact-broker record-deployment
command. And so far the can-i-deploy tool seems to be consistent when my understanding as well.
I'm guessing this has something to do with branches, versions, and the behavior of implicit/explicit 'latest'.
t
I’m confused too. I would have thought that the second row should have both displaying
env: qa
👍 1
Is 835f23f also deployed in qa?
I wonder if the last verified warning state is global (as in, there’s a change to the pact on the branch that this contract is from, but it’s not deployed to qa?)
I’m not super familiar with the broker UI - I mostly use can-i-deploy and trust that
b
It seems insistent that the provider version is always identical.
I don’t understand what you mean by that
It complains that the ‘pact from main has changed’, but I don’t think it has?
This logic may or may not be helpful. I wouldn’t pay too much attention to it if it’s not what you expect, and everything else is working fine.
p
I have the main branch/versions of the provider consumer deployed in QA , which makes sense in the 'no filter' tab. But when I switch to the environment tab, it's showing a different consumer version from a different branch which was deployed to a different environment in the same row, and showing a verification warning.
I guess I just don't understand why this is happening, or what the environment tab is trying to show me. It seems inconsistent to me? I would expect each row to represent the latest versions deployed to that environment. I would not expect two different environments in the same row. But I expect I am simply misunderstanding something.
b
If the same version is deployed to two environments, it bunches them together.
I’m afraid I don’t have the time right now to fully understand the problem.
If you’d like to raise an issue in the pact_broker repo, then please either share your database with me, or recreate the scenario using this tool https://github.com/pact-foundation/pact_broker/blob/master/ISSUES.md
👍 1