Skip to content

Conversation

michaeltlombardi
Copy link
Collaborator

PR Summary

Prior to this change, the pester tests made up the majority of the build time in CI. This change attempts to speed up the pester tests by parallelizing them roughly by folder:

  • The tests in the dsc folder run in their own cell.
  • The tests in the adapters folder run in their own cell.
  • The tests in the extensions folder run in their own cell.
  • The tests in the resources folder run in their own cell.

This should substantially reduce the time spent on tests, particularly on Windows, where the CLI tests take much longer.

This change makes minor changes to the new build script and helpers to support targeted test execution.

PR Context

Depends on #1161

@michaeltlombardi michaeltlombardi force-pushed the maint/main/speed-builds branch 6 times, most recently from 8b9a3eb to 184a2dc Compare October 8, 2025 21:25
@michaeltlombardi michaeltlombardi marked this pull request as ready for review October 8, 2025 22:15
@michaeltlombardi
Copy link
Collaborator Author

To see the run times: https://github.com/PowerShell/DSC/actions/runs/18358507549

image

This is a substantial improvement and shows that the majority of the remaining performance to squeeze from CI right now is parallelizing the windows tests for the dsc folder. We can probably further decompose the Windows suite, but I'm leaving it as-is for now.

Prior to this change, the pester tests made up the majority of the build time
in CI. This change attempts to speed up the pester tests by parallelizing them
roughly by folder:

- The tests in the `dsc` folder run in their own cell.
- The tests in the `adapters` folder run in their own cell.
- The tests in the `extensions` folder run in their own cell.
- The tests in the `resources` folder run in their own cell.

This should substantially reduce the time spent on tests, particularly on
Windows, where the CLI tests take much longer.

This change makes minor changes to the new build script and helpers to support
targeted test execution.
@michaeltlombardi michaeltlombardi force-pushed the maint/main/speed-builds branch from 184a2dc to 405ed02 Compare October 8, 2025 22:19
@SteveL-MSFT SteveL-MSFT added this pull request to the merge queue Oct 9, 2025
Merged via the queue into PowerShell:main with commit 58e246a Oct 9, 2025
19 checks passed
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