Build number set from Artifact Dependency does not match with the artifacts

We have a build that is in a build pipeline. We recently changed it to run tests in parallel and since we have done that it sometimes produces artifacts with the wrong build number.

The build number format is set to %dep.HealthCareAssistantApi_PrepareNewVersion.build.number%.%build.counter%

and the artifacts are set to the following:

The build dependencies have the following settings:

If it has the wrong artifacts, we can rerun the build and it will produce the correct artifact names. It only seems to do it if there are changes pushed to one of the repositories in the build pipeline. Even then it sometime works and sometime does not.

Thanks,

0
6 comments

Hi Damien, 

Does the issue happen when you don't have enough free agents to run all parallel test builds simultaneously? The description of this bug sounds similar to what you experience: https://youtrack.jetbrains.com/issue/TW-75264/Unsynchronized-build-number-in-auto-generated-config-if-next-build-was-queued-before-previous-parallel-tests-chain-was-finished.

0

I think it maybe. I will keep a closer eye on the scenarios that it happens in. Is there a reason the ticket you references has been in the backlog for 2 years? Are there plans on fixing this issue in the near future. It really disrupts our build pipeline.

Thanks

0

Sometimes it build two identical artifacts with different build numbers:

 

0

Hi Damien,

Tickets are prioritized based on a combination of different factors. It doesn't look like this problem affected anyone in the past—or at least no one reported it or voted for the bug report. Your vote was the first one. 

At any rate, we are not yet sure if this is the same problem. It does look similar to the issue you encountered, but we need logs to confirm that. For the most recent example, please provide the entire build log downloaded from the UI and teamcity-server.log covering the same timeframe. You can upload the archive with logs to our upload service: https://uploads.jetbrains.com/; please let me know the upload ID once done. 

0

Mikhail,

Both files have been uploaded. The upload id is 2024_06_28_XZgXarTyESgGpE5Q5S4gBE

 

Thanks,

0
Hi Damien,

It indeed looks like the bug report I linked earlier. I see a second build queued in the server logs before the first build chain is finished. Feel free to vote for the request, leave comments, and subscribe to the updates. See https://intellij-support.jetbrains.com/hc/articles/207241135 if you are still getting familiar with YouTrack.
0

Please sign in to leave a comment.