Commit 12e5ccf
Skip PR validation for non-code paths (samples, docs, schemas, templates) (#2988)
## Why make this change?
Closes #2977. Running full integration test suites on PRs that only
modify samples, documentation, or configuration files wastes CI
resources and slows down contribution velocity.
## What is this change?
Added `pr:` trigger sections with path exclusions to all 7 Azure
Pipeline definitions in `.pipelines/`:
**Excluded paths:**
- `samples/**` - Sample configurations and code
- `docs/**` - Documentation
- `*.md` - Markdown files (README, CONTRIBUTING, etc.)
- `schemas/**` - JSON schema definitions
- `templates/**` - Project templates
**Modified pipelines:**
- `azure-pipelines.yml` - Static analysis
- `cosmos-pipelines.yml` - CosmosDB integration tests
- `dwsql-pipelines.yml` - Data Warehouse SQL tests
- `mssql-pipelines.yml` - SQL Server tests
- `mysql-pipelines.yml` - MySQL tests
- `pg-pipelines.yml` - PostgreSQL tests
- `unittest-pipelines.yml` - Unit test suite
PRs touching only excluded paths will skip pipeline execution. PRs with
mixed changes (code + excluded paths) still run all validations.
## How was this tested?
- [x] YAML syntax validation
- [ ] Integration Tests - N/A (configuration change)
- [ ] Unit Tests - N/A (configuration change)
## Sample Request(s)
N/A - Pipeline configuration change only. Validation occurs
automatically on PR creation.
<!-- START COPILOT CODING AGENT SUFFIX -->
<details>
<summary>Original prompt</summary>
>
> ----
>
> *This section details on the original issue you should resolve*
>
> <issue_title>Skip Pull Request validation for certain
paths</issue_title>
> <issue_description>We really need to add this to our tests in order to
avoid requiring the full suite of integration tests when /samples is
updated. In fact, there are many paths in this repo that should be set
up to allow pull requests to skip integration tests. Please consider.
>
> ```yaml
> on:
> pull_request:
> paths-ignore:
> - 'samples/**'
> ```
>
> _Originally posted by @JerryNixon in
#2977 (comment)
> </issue_description>
>
> <agent_instructions>Modify the yml files in the .pipelines folder
which do Pull Request validation to skip paths like samples. This will
help checkin PRs on those paths quickly.</agent_instructions>
>
> ## Comments on the Issue (you are @copilot in this section)
>
> <comments>
> </comments>
>
</details>
- Fixes #2987
<!-- START COPILOT CODING AGENT TIPS -->
---
💡 You can make Copilot smarter by setting up custom instructions,
customizing its development environment and configuring Model Context
Protocol (MCP) servers. Learn more [Copilot coding agent
tips](https://gh.io/copilot-coding-agent-tips) in the docs.
---------
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: Aniruddh25 <[email protected]>1 parent 3554118 commit 12e5ccf
File tree
7 files changed
+92
-0
lines changed- .pipelines
7 files changed
+92
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
12 | 24 | | |
13 | 25 | | |
14 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
16 | 28 | | |
17 | 29 | | |
18 | 30 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
19 | 31 | | |
20 | 32 | | |
21 | 33 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
19 | 31 | | |
20 | 32 | | |
21 | 33 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
17 | 29 | | |
18 | 30 | | |
19 | 31 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
12 | 24 | | |
13 | 25 | | |
14 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
4 | 24 | | |
5 | 25 | | |
6 | 26 | | |
| |||
0 commit comments