Skip to content

Conversation

ilia-shipitsin
Copy link
Contributor

Description

reduce powershell startup time from ~20s to ~8s by storing modules anaylis cache permanently

Related issue:

https://github.com/actions/runner-images-internal/issues/5463

Check list

  • Related issue / work item is attached
  • Tests are written (if applicable)
  • Documentation is updated (if applicable)
  • Changes are tested and related VM images are successfully generated

PSModuleAnalysisCachePath points to modules analysis cache. By default
it is stored in user profile. We create user every time, and module
analysis cache rebuild takes ~20s.

by storing cache in permanent location, initial powershell startup
takes ~8s instead of ~20s
@Alexey-Ayupov
Copy link
Contributor

/azp run windows2091, windows2022

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@Alexey-Ayupov
Copy link
Contributor

/azp run windows2019

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@Alexey-Ayupov Alexey-Ayupov merged commit 92111d1 into actions:main Oct 10, 2023
@ilia-shipitsin ilia-shipitsin deleted the warmup_powershell branch October 10, 2023 11:48
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