Tatiana
05/30/2023, 6:39 PMmain 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?Matt (pactflow.io / pact-js / pact-go)
Tatiana
05/31/2023, 12:39 AMapp 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 hereTatiana
05/31/2023, 12:43 AMapp 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.Tatiana
05/31/2023, 12:44 AMTatiana
05/31/2023, 1:48 AMinfra 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.Matt (pactflow.io / pact-js / pact-go)
app and infra directories?Matt (pactflow.io / pact-js / pact-go)
Tatiana
05/31/2023, 1:58 AMinfra contains terraform files and everything related to the infra
app contains the code of the app (API for example)Tatiana
05/31/2023, 1:59 AMMatt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Slackbot
05/31/2023, 2:00 AMMatt (pactflow.io / pact-js / pact-go)
Tatiana
05/31/2023, 2:01 AMMatt (pactflow.io / pact-js / pact-go)
Tatiana
05/31/2023, 2:07 AMN/A tag.Matt (pactflow.io / pact-js / pact-go)
Tatiana
05/31/2023, 2:13 AMMatt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Tatiana
05/31/2023, 11:09 AM