Skip to content

[BUG]: VSTest TIA : fails to identify git repository in case of multi-repository checkout #21189

@ssoni-celonis

Description

@ssoni-celonis

New issue checklist

Task name

VSTest

Task version

3

Issue Description

Hi,

VSTest@3 task while using runOnlyImpactedTests fails to identify git repository in case of multi repository checkout.

************************************************************************************************
Configuration started on 2025/07/31, 12:20:20.
OS Version : Microsoft Windows NT 6.2.9200.0

V, 2025/07/31, 12:20:20.604, PERF: CommandUtility.GetBaseLineBuild: took 358.2128 ms
V, 2025/07/31, 12:20:20.604, PERF WARNING: CommandUtility.GetBaseLineBuild: took 358.2128 ms
V, 2025/07/31, 12:20:20.604, Baseline build id = 83060
V, 2025/07/31, 12:20:20.744, PERF: CommandUtility.GetCommitsAssociatedBetweenBuilds: took 141.1547 ms
V, 2025/07/31, 12:20:20.744, PERF WARNING: CommandUtility.GetCommitsAssociatedBetweenBuilds: took 141.1547 ms
V, 2025/07/31, 12:20:20.749, Generating code changes for GitHub.
fatal: not a git repository (or any of the parent directories): .git
V, 2025/07/31, 12:20:20.964, PERF: GenerateGitHubCodeChanges: took 215.102 ms
V, 2025/07/31, 12:20:20.964, PERF WARNING: GenerateGitHubCodeChanges: took 215.102 ms
V, 2025/07/31, 12:20:20.964, Publishing code changes to server.
V, 2025/07/31, 12:20:20.964, Total files changed = 0
***************************** Section 'Get Files that were changed' Ended ********************************

I have tried using environment variables to point the BUILD_SOURCESDIRECTORY, BUILD_REPOSITORY_LOCALPATH to my main repository but it still doesn't work.

When I remove the checkout step for the 2nd repository, it works fine. Is there a parameter/configuration that can be used to make it work?

Environment type (Please select at least one enviroment where you face this issue)

  • Self-Hosted
  • Microsoft Hosted
  • VMSS Pool
  • Container

Azure DevOps Server type

dev.azure.com (formerly visualstudio.com)

Azure DevOps Server Version (if applicable)

No response

Operation system

windows-latest

Relevant log output

************************************************************************************************
Configuration started on 2025/07/31, 12:20:20.
OS Version : Microsoft Windows NT 6.2.9200.0

V, 2025/07/31, 12:20:20.604, PERF: CommandUtility.GetBaseLineBuild: took 358.2128 ms
V, 2025/07/31, 12:20:20.604, PERF WARNING: CommandUtility.GetBaseLineBuild: took 358.2128 ms
V, 2025/07/31, 12:20:20.604, Baseline build id = 83060
V, 2025/07/31, 12:20:20.744, PERF: CommandUtility.GetCommitsAssociatedBetweenBuilds: took 141.1547 ms
V, 2025/07/31, 12:20:20.744, PERF WARNING: CommandUtility.GetCommitsAssociatedBetweenBuilds: took 141.1547 ms
V, 2025/07/31, 12:20:20.749, Generating code changes for GitHub.
fatal: not a git repository (or any of the parent directories): .git
V, 2025/07/31, 12:20:20.964, PERF: GenerateGitHubCodeChanges: took 215.102 ms
V, 2025/07/31, 12:20:20.964, PERF WARNING: GenerateGitHubCodeChanges: took 215.102 ms
V, 2025/07/31, 12:20:20.964, Publishing code changes to server.
V, 2025/07/31, 12:20:20.964, Total files changed = 0
***************************** Section 'Get Files that were changed' Ended ********************************

Full task logs with system.debug enabled

No response

Repro steps

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions