Snapshot dependencies are being triggered even with no changes
We just upgraded to TeamCity 2021.1 and we noticed that build chains no longer behave the same way they did in 2018.1. It seems that 2021.1 sometimes triggers a full builds of the entire chain, but in 2018.1 it seems TeamCity would use artifacts that were acceptable.
Consider this scenario: Build Library and Build App are my build chain with snapshot and artifact dependencies. Build Library has checkout rules to limit what it sees in the repository. The whole build chain was built successfully, then I make a commit that is outside of the checkout rules for Build Library so it should only trigger Build App. I then trigger Build App but Build Library also triggers even with no changes (and TeamCity even shows me no changes).
In 2018.1: this would only trigger Build App and it would use the Build Library artifacts that matches the source from the last build.
Please sign in to leave a comment.
To clarify a bit, after pushing my feature branch to TeamCity, TeamCity correctly tells me that Build Library has no pending changes and only Build App has pending changes, but it still triggers Build Library anyway.
Actually, it seems like this isn't strictly related to a new branch. I'm seeing this happen on my default branch. A scheduled trigger just triggered a build step that need not have been built (no reported changes). I updated this post to indicate the behavior I now see.
Here is the log from a build that is currently sitting in the queue but that should not have been triggered at all because there are no changes. Even the log seems to indicate that it detected no changes and doesn't need a build, but yet it still built. What am I missing?
I'm building branch version/2.0.x.
610545c0be7c16e171956402a6d9a59ddba5f03d is the latest on master branch (default branch).
6bca026c32e87f3d51211cc9f8b195b1289cf6e9 is the latest on version/2.0.x branch.
8f8c6dce2543a3c48870bbf159af1cf68f313dcb is the commit before 6bca026 on version/2.0.x which has been previously built.
I created https://youtrack.jetbrains.com/issue/TW-72333