Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 29, 2026

SDK test workflows currently trigger on any file change within their directory (e.g., nodejs/**), including documentation and assets that don't affect behavior.

Changes

Added paths-ignore filters to all SDK test workflows to skip CI for:

  • Documentation: **/*.md
  • Licenses: **/LICENSE*
  • Editor config: **/.gitignore, **/.editorconfig
  • Images: **/*.png, **/*.jpg, **/*.jpeg, **/*.gif, **/*.svg

Example from nodejs-sdk-tests.yml:

on:
  pull_request:
    paths:
      - 'nodejs/**'
      - 'test/**'
      - '.github/workflows/nodejs-sdk-tests.yml'
      - '.github/actions/setup-copilot/**'
    paths-ignore:
      - '**/*.md'
      - '**/LICENSE*'
      - '**/.gitignore'
      - '**/.editorconfig'
      - '**/*.png'
      - '**/*.jpg'
      - '**/*.jpeg'
      - '**/*.gif'
      - '**/*.svg'

Notably excludes **/*.txt from ignore patterns since files like python/test-requirements.txt contain dependency specifications that affect test behavior.

Applied to: nodejs-sdk-tests.yml, python-sdk-tests.yml, dotnet-sdk-tests.yml, go-sdk-tests.yml

Original prompt

the e2e workflow actions filter on changes per directory, but we don't distinguish between edits that change the behavior vs. edits that don't. eg. editing readme.md doesn't change the behavior of the code so it doesn't really make sense to run CI in those cases. find a better heuristic that will more reliably filter CI execution going forward


💡 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 in the docs.

Copilot AI and others added 2 commits January 29, 2026 22:20
Co-authored-by: friggeri <106686+friggeri@users.noreply.github.com>
Co-authored-by: friggeri <106686+friggeri@users.noreply.github.com>
Copilot AI changed the title [WIP] Refactor CI execution logic for better filtering Add paths-ignore filters to SDK test workflows Jan 29, 2026
Copilot AI requested a review from friggeri January 29, 2026 22:26
@friggeri friggeri marked this pull request as ready for review January 29, 2026 22:55
Copilot AI review requested due to automatic review settings January 29, 2026 22:55
@friggeri friggeri requested a review from a team as a code owner January 29, 2026 22:55
@friggeri friggeri merged commit 828cec1 into main Jan 29, 2026
13 checks passed
@friggeri friggeri deleted the copilot/improve-ci-execution-filter branch January 29, 2026 22:55
Copy link
Contributor

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

Reduces unnecessary CI runs by adding paths-ignore filters to SDK test workflows so documentation, licenses, editor config files, and common image formats don’t trigger SDK test jobs.

Changes:

  • Added paths-ignore entries for **/*.md, **/LICENSE*, **/.gitignore, **/.editorconfig, and common image extensions to SDK test workflows.
  • Kept .txt files unignored to avoid skipping dependency/spec changes (e.g., requirements files).

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
.github/workflows/nodejs-sdk-tests.yml Adds paths-ignore to avoid running Node.js SDK tests on doc/license/editor-config/image-only changes.
.github/workflows/python-sdk-tests.yml Adds paths-ignore to avoid running Python SDK tests on doc/license/editor-config/image-only changes.
.github/workflows/go-sdk-tests.yml Adds paths-ignore to avoid running Go SDK tests on doc/license/editor-config/image-only changes.
.github/workflows/dotnet-sdk-tests.yml Adds paths-ignore to avoid running .NET SDK tests on doc/license/editor-config/image-only changes.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

2 participants