al-cheb / configure-pagefile-action Goto Github PK
View Code? Open in Web Editor NEWSet PageFileSize on GitHub Windows Hosted Agents
License: MIT License
Set PageFileSize on GitHub Windows Hosted Agents
License: MIT License
Hi. I'd like to increase minimum-size to 16GB ore more, but it appears that 12GB is upper limit. Any idea?
- uses: al-cheb/[email protected]
with:
minimum-size: 12GB
maximum-size: 16GB
works finely, but
- uses: al-cheb/[email protected]
with:
minimum-size: 13GB
maximum-size: 16GB
results in:
Error: Exception calling "SetPageFileSize" with "3" argument(s): "The operation completed successfully"
At D:\a\_actions\al-cheb\configure-pagefile-action\v1.3\scripts\SetPageFileSize.ps1:193 char:1
+ [Util.PageFile]::SetPageFileSize($minimumSize, $maximumSize, $diskRoo ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : Win32Exception
Hey @al-cheb, were you planning to update the action to Node@16? Seems like Node@12 is deprecated and all actions should be updated to 16. Happy to submit a PR if that helps.
The script is occasionally flaky, resulting in Script has finished with exit code 'null'
. Can't reproduce.
steps:
- name: Configure Windows Pagefile
uses: al-cheb/[email protected]
if: matrix.os == 'windows-latest'
with:
minimum-size: 8GB
maximum-size: 12GB
disk-root: "D:"
2023-02-28T10:59:09.5259190Z Requested labels: windows-latest
2023-02-28T10:59:09.5259238Z Job defined at: ankidroid/Anki-Android/.github/workflows/tests_unit.yml@refs/pull/13362/merge
2023-02-28T10:59:09.5259277Z Waiting for a runner to pick up this job...
2023-02-28T10:59:12.0206863Z Job is waiting for a hosted runner to come online.
2023-02-28T10:59:23.6478195Z Job is about to start running on the hosted runner: GitHub Actions 8 (hosted)
2023-02-28T10:59:28.7869602Z Current runner version: '2.301.1'
2023-02-28T10:59:28.7894844Z ##[group]Operating System
2023-02-28T10:59:28.7895432Z Microsoft Windows Server 2022
2023-02-28T10:59:28.7895698Z 10.0.20348
2023-02-28T10:59:28.7895980Z Datacenter
2023-02-28T10:59:28.7896303Z ##[endgroup]
2023-02-28T10:59:28.7896547Z ##[group]Runner Image
2023-02-28T10:59:28.7896859Z Image: windows-2022
2023-02-28T10:59:28.7897160Z Version: 20230219.1
2023-02-28T10:59:28.7897586Z Included Software: https://github.com/actions/runner-images/blob/win22/20230219.1/images/win/Windows2022-Readme.md
2023-02-28T10:59:28.7898189Z Image Release: https://github.com/actions/runner-images/releases/tag/win22%2F20230219.1
2023-02-28T10:59:28.7898591Z ##[endgroup]
2023-02-28T10:59:28.7898862Z ##[group]Runner Image Provisioner
2023-02-28T10:59:28.7899175Z 2.0.117.1
2023-02-28T10:59:28.7899434Z ##[endgroup]
2023-02-28T10:59:28.7900302Z ##[group]GITHUB_TOKEN Permissions
2023-02-28T10:59:28.7900905Z Actions: read
2023-02-28T10:59:28.7901316Z Checks: read
2023-02-28T10:59:28.7901605Z Contents: read
2023-02-28T10:59:28.7901916Z Deployments: read
2023-02-28T10:59:28.7902194Z Discussions: read
2023-02-28T10:59:28.7902490Z Issues: read
2023-02-28T10:59:28.7902725Z Metadata: read
2023-02-28T10:59:28.7903004Z Packages: read
2023-02-28T10:59:28.7903299Z Pages: read
2023-02-28T10:59:28.7903544Z PullRequests: read
2023-02-28T10:59:28.7903872Z RepositoryProjects: read
2023-02-28T10:59:28.7904193Z SecurityEvents: read
2023-02-28T10:59:28.7904448Z Statuses: read
2023-02-28T10:59:28.7904750Z ##[endgroup]
2023-02-28T10:59:28.7908165Z Secret source: Dependabot
2023-02-28T10:59:28.7908599Z Prepare workflow directory
2023-02-28T10:59:28.8643251Z Prepare all required actions
2023-02-28T10:59:28.8823863Z Getting action download info
2023-02-28T10:59:29.1963246Z Download action repository 'al-cheb/[email protected]' (SHA:86589fd789a4de3e62ba628dda2cb10027b66d67)
2023-02-28T10:59:29.5668516Z Download action repository 'actions/checkout@v3' (SHA:ac593985615ec2ede58e132d2e21d2b1cbd6127c)
2023-02-28T10:59:29.7909503Z Download action repository 'actions/setup-java@v3' (SHA:3f07048e3d294f56e9b90ac5ea2c6f74e9ad0f98)
2023-02-28T10:59:30.0675052Z Download action repository 'gradle/gradle-build-action@v2' (SHA:6095a76664413da4c8c134ee32e8a8ae900f0f1f)
2023-02-28T10:59:30.3432239Z Download action repository 'nick-invision/retry@v2' (SHA:943e742917ac94714d2f408a0e8320f2d1fcafcd)
2023-02-28T10:59:30.5630534Z Download action repository 'codecov/codecov-action@v3' (SHA:d9f34f8cd5cb3b3eb79b3e4b5dae3a16df499a70)
2023-02-28T10:59:30.9270109Z Complete job name: JUnit Tests (windows-latest, legacy_schema = true)
2023-02-28T10:59:31.2267941Z ##[group]Run al-cheb/[email protected]
2023-02-28T10:59:31.2268401Z with:
2023-02-28T10:59:31.2268599Z minimum-size: 8GB
2023-02-28T10:59:31.2268821Z maximum-size: 12GB
2023-02-28T10:59:31.2269078Z disk-root: D:
2023-02-28T10:59:31.2269324Z ##[endgroup]
2023-02-28T11:01:34.1796242Z Pagefile configuration:
2023-02-28T11:01:34.1797081Z - Minimum size: 8GB
2023-02-28T11:01:34.1797380Z - Maximum size: 12GB
2023-02-28T11:01:34.1797614Z - Disk root: D:
2023-02-28T11:02:35.5089245Z
2023-02-28T11:02:35.5131573Z ##[error]Script has finished with exit code 'null'
2023-02-28T11:02:38.3040142Z Cleaning up orphan processes
2023-02-28T11:02:39.2514995Z Terminate orphan process: pid (5564) (csc)
https://github.com/ankidroid/Anki-Android/actions/runs/4292215431/jobs/7478378622 (Feb 28 2023, 11:02 UTC)
Other instances (no logs)
Until some time yesterday or the day before, everything was working great, but now the script does not seem to be working anymore. At the moment I am getting the following error:
Error: Exception calling "SetPageFileSize" with "3" argument(s): "The operation completed successfully"
At D:\a\_actions\al-cheb\configure-pagefile-action\v1.2\scripts\SetPageFileSize.ps1:193 char:1
+ [Util.PageFile]::SetPageFileSize($minimumSize, $maximumSize, $diskRoo ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : Win32Exception
I've also confirmed with wmic pagefile list /format:list
that the size of the page file does not change.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.