Updating sources is misbehaving after upgrading to 2023.05
After upgrading from 2022.10.3 to 2023.05 agent side checkout against TFS has changed it's behaviour. For all my build configurations the "Updating sources" step is repeated equal to the number of checkout rules on my configuration.
For configs with 20 checkout rules I apperantly run "Updating sources" 20 times.
Can anyone help me with a solution on how to get back to expected behaviour - only update sources once?
Have there been changes to checkout rule syntax? I typically use newline delimited checkout rules as:
+:src\A\
+:src\B\A\
+:src\B\B\
+:src\C\
Example output log where checkout rules have been replaced with CHECKOUT RULES:
[19:17:18] : Updating sources: agent side checkout (5m:50s)
[19:17:18] : [Updating sources] Full checkout enforced. Reason: ["Delete all files before the build" turned on]
[19:17:18] : [Updating sources] VCS Root: TFS Root (26s)
[19:17:18] : [VCS Root: TFS Root] checkout rules: CHECKOUT RULES revision: 118396
[19:17:19] : [VCS Root: TFS Root] Using java working mode
[19:17:19] : [VCS Root: TFS Root] Clean checkout flag was set by the build agent
[19:17:19] : [VCS Root: TFS Root] Receiving workspace (8s)
[19:17:22] : [Receiving workspace] Invalid workspace TeamCity-Aa-cb4a7cf9501848e4a0195f1583a2220e;9e645871-10bf-4fa6-992d-7f37b032470b;836C2AB19220: different number of checkout rules
[19:17:22] : [Receiving workspace] Invalid workspace TeamCity-Aa-cb4a7cf9501848e4a0195f1583a2220e;9e645871-10bf-4fa6-992d-7f37b032470b;836C2AB19220: working folders do not coincide with checkout rules
[19:17:22] : [Receiving workspace] Removing workspace TeamCity-Aa-cb4a7cf9501848e4a0195f1583a2220e;9e645871-10bf-4fa6-992d-7f37b032470b;836C2AB19220
[19:17:24] : [Receiving workspace] Creating workspace TeamCity-Aa-e36d2afe09b243988316fcc6c78fe6dd
[19:17:27] : [Receiving workspace] Using workspace TeamCity-Aa-e36d2afe09b243988316fcc6c78fe6dd;9e645871-10bf-4fa6-992d-7f37b032470b;836C2AB19220
[19:17:27] : [VCS Root: TFS Root] Updating sources to revision: 118396
[19:17:45] : [Updating sources] VCS Root: TFS Root (22s)
[19:17:45] : [VCS Root: TFS Root] checkout rules: CHECKOUT RULES revision: 118396
[19:17:45] : [VCS Root: TFS Root] Using java working mode
[19:17:45] : [VCS Root: TFS Root] Clean checkout flag was set by the build agent
[19:17:45] : [VCS Root: TFS Root] Receiving workspace (2s)
[19:17:47] : [Receiving workspace] Using workspace TeamCity-Aa-e36d2afe09b243988316fcc6c78fe6dd;9e645871-10bf-4fa6-992d-7f37b032470b;836C2AB19220
[19:17:47] : [VCS Root: TFS Root] Updating sources to revision: 118396
....
[19:22:46] : [VCS Root: TFS Root] checkout rules: CHECKOUT RULES revision: 118396
[19:22:46] : [VCS Root: TFS Root] Using java working mode
[19:22:46] : [VCS Root: TFS Root] Clean checkout flag was set by the build agent
[19:22:46] : [VCS Root: TFS Root] Receiving workspace (2s)
[19:22:49] : [Receiving workspace] Using workspace TeamCity-Aa-e36d2afe09b243988316fcc6c78fe6dd;9e645871-10bf-4fa6-992d-7f37b032470b;836C2AB19220
[19:22:49] : [VCS Root: TFS Root] Updating sources to revision: 118396
[19:23:09] : Resolving artifact dependencies (2s)
Please sign in to leave a comment.
VCS checkout mode 'Always check out files on server' is only updating sources once. Problem does only apply to checkout on agent.
I'm seeing this behaviour too.
Hello,
Unfortunately this is a known issue. It will be fixed in 2023.05.1.
As a temporary workaround, please switch to the server side checkout.
Apart from the performance are there any other side effects?
Luckily for me there are no other side effects (I thought they were but that's been resolved). I'll just wait for the the upgrade. Thanks.