Skip to content

Changes in embedded dirs should also trigger templates testing #62806

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

ilonatommy
Copy link
Member

Follow up for #62752 (comment).

Description

PR #6275 did not trigger the template test, even though its change was under path listed in trigger mechanisms:

- src/ProjectTemplates/*

Investigating further, we need double wildcard there if we want changes to files embedded deeper in the structure to also trigger the job:
https://learn.microsoft.com/en-us/azure/devops/pipelines/tasks/file-matching-patterns?view=azure-devops

@ilonatommy ilonatommy self-assigned this Jul 18, 2025
@ilonatommy ilonatommy added the area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework label Jul 18, 2025
@ilonatommy
Copy link
Member Author

After the 1st commit:
image

Testing what happens when I add changes from the PR that originally did not trigger this job either.

@ilonatommy
Copy link
Member Author

Working:
image

Removing the temporary change.

@ilonatommy ilonatommy marked this pull request as ready for review July 18, 2025 14:02
@Copilot Copilot AI review requested due to automatic review settings July 18, 2025 14:02
@ilonatommy ilonatommy requested review from wtgodbe and a team as code owners July 18, 2025 14:02
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates the Azure DevOps pipeline trigger patterns to properly detect changes in deeply nested directories within the templates testing workflow. The change ensures that modifications to files embedded in subdirectories will trigger template tests, addressing an issue where a previous PR failed to trigger tests despite making changes in paths that should have been covered.

  • Updated file matching patterns from single wildcard (*) to double wildcard (**) syntax
  • Applied the change to three key source directories: ProjectTemplates, Components, and Mvc

@ilonatommy ilonatommy added this to the 10.0-preview7 milestone Jul 18, 2025
Copy link
Member

@wtgodbe wtgodbe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The reason for this was that the templates pipeline wasn't classified in Product Catalog, so nothing was able to trigger it. Dnceng fixed that yesterday. The single * is actually the correct syntax - you can confirm by opening a PR today against a file in an embedded dir

@ilonatommy ilonatommy closed this Jul 18, 2025
@wtgodbe
Copy link
Member

wtgodbe commented Jul 18, 2025

#62808

@ilonatommy
Copy link
Member Author

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy