Hi team! I have a question regarding tags in PactF...
# pactflow
t
Hi team! I have a question regarding tags in PactFlow. I have the following situation: I publish contracts with
main
tag to PactFlow only when changes were introduced to the
app
directory. Also, I assign a contract version as a commit id. However, I encountered a situation when
main
tag is unassigned from the contract. Contract has no tag and a new contract wasn’t published. It happens when changes are made NOT in the
app
directory, changes merged to a main branch, and in the end
main
tag is unassigned from the contract somehow. I am confused here, why the contract loses the tag if another contract wasn’t published, we didn’t run contract publishing job. Did you encounter such situation? Do you have any ideas why it may happen?
m
Hi Tatiana, Sorry I can’t fully follow this scenario. Would you mind clarifying by perhaps stepping through the sequence of events (e.g. CLI calls and/or screenshots of each step)? Tags shouldn’t disappear on their own, but I think this is what your question is? You could also consider looking at the audit trail API, you might be able to see any calls that have modified/deleted resources relating to the integration.
👀 1
t
1️⃣ Changes were introduced in the
app
directory and merged to the
main
branch. Pipeline was created and contract tests were executed and a contract was published to the PactFlow with
main
tag and
commit id
as a version. On screenshot you can see
main
tag was assigned. And you can see
publish contracts
job in the pipeline Everything is ok here
2️⃣ Changes were made NOT in the
app
directory, in the
infra
directory for example. The changes from the
infra
directory were merged to the
main
branch. According to the pipeline rules, we do not run
publish contracts
when changes were made in
infra
. So, new contract wasn’t published to the PactFlow. But the latest published contract lost
main
tag (I don’t have screenshot) but there was
N/A
in the tags.
yes, I am trying to understand why it disappeared. Do I understand correctly that the tag should be overwritten only when a new contract version was published to the PactFlow?
👍 1
I am checking audit endpoint right now, and I see some events for the second changes made in the
infra
dir. I see the following events: • branch_version • pacticipant_version_tag these events repeated several times But why I see these events in the
audit
for the second change? I didn’t communicate with PactFlow in the Ci/CD when these changes were made….I would expect to see NO events for the second change.
👍 1
m
Thanks. Can you please help me understand the relevance of the
app
and
infra
directories?
Any chance you could share the URL of the contract with the tag on it and when it has been removed? We can look at our side and tell you what we see
t
infra
contains terraform files and everything related to the infra
app
contains the code of the app (API for example)
👍 1
Let me ask my manager first if I can do that. If they allow me to share the contract, can I send you this info in the private message?
m
I think in this case, it might be best to raise a support ticket and this way we can track it.
(see smartbearsupport 👇 )
s
Please create a ticket here with the issue details so that we can properly track the resolution and the PactFlow product support team will continue to work through it with you: https://support.smartbear.com/pactflow/message
m
You can share a link to this conversation so you don’t need to repeat yourself, it will get escalated to the right people straight away
👍 1
t
ok, thank you. Anyways, do you have any thoughts why it may happen?
m
My only guess is that somebody else is publishing over the top of it and it’s a new version that is missing the tag (if you check the URL and note a different version then that could be it)
t
but there is no new contract in the PactFlow, just a contract from the case 1 with
N/A
tag.
m
is it a new version of the contract though? That’s one question we need to clarify
t
ok, let me ask my manger if I can share data and I’ll create a request. Also, my company uses Enterprise plan of PactFlow. Would it better to send an email to our supporting person from Pact or create a request as you mentioned above?
m
The support link above is for enterprise customers, so you should be good. But you can share the link to your account manager who can follow along
👍 1
do you know who the account manager is?
t
Yes, I know. Thank you!
🙌 1