WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Conversation

@semihokur
Copy link
Contributor

Context

Azure DevOps is one of the major AutoManagedVHD customers, and one of their pipelines performs a “changed files” check inside the repository.
Previously, the .autoManagedVhd marker file was created inside the sources directory, which caused that step to incorrectly detect the marker as a modified file. This issue could easily impact other customers with similar checks.

To avoid interfering with repository-level file-change detection, it is safer and more correct to place the marker file in the parent directory of the sources directory. This still allows the agent to reliably detect that the existing working directory originates from an AutoManagedVHD.

Description

This PR updates the detection logic so the .autoManagedVhd marker file is looked up in the parent directory of the repository instead of inside it.

Risk Assessment (Low / Medium / High)

The change only applies when a .autoManagedVhd file is present and does not affect normal checkout scenarios.

Unit Tests Added or Updated (Yes / No)

No

@semihokur semihokur requested review from a team as code owners December 2, 2025 08:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants