Skip to content

Comments

[EngSys] decouple filters in changed-files.js#36096

Merged
mikeharder merged 44 commits intoAzure:mainfrom
mikeharder:changed-files-filter-refactor
Jul 23, 2025
Merged

[EngSys] decouple filters in changed-files.js#36096
mikeharder merged 44 commits intoAzure:mainfrom
mikeharder:changed-files-filter-refactor

Conversation

@mikeharder
Copy link
Member

@mikeharder mikeharder commented Jul 22, 2025

  • filters should handle platform paths, via resolve()/normalize()/sep
  • filter specification() is removed
    • Instead, pass paths: ["specification"] to getChangedFiles()
  • preparation for getChangedFiles() to return absolute platform paths

e2e test for impacted checks: mikeharder#26

@openapi-pipeline-app
Copy link

openapi-pipeline-app bot commented Jul 22, 2025

Next Steps to Merge

Next steps that must be taken to merge this PR:
  • ❌ The required check named Protected Files has failed. Refer to the check in the PR's 'Checks' tab for details on how to fix it and consult the aka.ms/ci-fix guide

@openapi-pipeline-app
Copy link

openapi-pipeline-app bot commented Jul 22, 2025

PR validation pipeline restarted successfully. If there is ApiView generated, it will be updated in this comment.

@mikeharder mikeharder marked this pull request as ready for review July 22, 2025 05:56
@mikeharder mikeharder changed the title [changed-files] decouple filters [EngSys] decouple filters in changed-files.js Jul 22, 2025
@raych1
Copy link
Member

raych1 commented Jul 22, 2025

Tests need to be fixed, and the remained part looks good.

vi.clearAllMocks();

// Setup default mocks
mockPath.resolve.mockImplementation((...paths) => paths.join("/"));
Copy link
Member Author

@mikeharder mikeharder Jul 23, 2025

Choose a reason for hiding this comment

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

@raych1: These mocks broke tests in this PR on Windows, and I think they should be unnecessary, because the runtime implementation should work even in tests, on all OS.

@mikeharder mikeharder merged commit a03cddd into Azure:main Jul 23, 2025
65 of 67 checks passed
@mikeharder mikeharder self-assigned this Jul 23, 2025
@mikeharder mikeharder changed the title [EngSys] decouple filters in changed-files.js [EngSys] Remove specification() filter from changed-files.js Jul 23, 2025
@mikeharder mikeharder moved this from 🤔 Triage to 🔬 Dev in PR in Azure SDK EngSys 📆🎇 Jul 23, 2025
@weshaggard weshaggard moved this from 🔬 Dev in PR to 🎊 Closed in Azure SDK EngSys 📆🎇 Jul 24, 2025
@mikeharder mikeharder changed the title [EngSys] Remove specification() filter from changed-files.js [EngSys] decouple filters in changed-files.js Oct 22, 2025
@github-actions
Copy link

Next Steps to Merge

⌛ Please wait. Next steps to merge this PR are being evaluated by automation. ⌛

Comment generated by summarize-checks workflow run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants