Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a pagefile fix which for windows workflows #146

Merged
merged 1 commit into from
Mar 14, 2023

Conversation

mdedetrich
Copy link
Contributor

@mdedetrich mdedetrich commented Mar 14, 2023

For context of this change, read sirthias/parboiled2#434 (comment) and scala-native/scala-native#3195 (comment).

The tl;dr is that Windows is a lot more strict than *unix when it comes to how it treats its pagefile usage and because of this its possible to get out of memory memories when running scala-native jobs on Windows CI. This PR adds a workflow step that works similarly as the Windows related core.autocrlf workaround but in addition also has a githubWorkflowWindowsPagefileFix key which either lets you disable this workaround or override the min/max size.

The only open question here is whether it should be enabled by default if you have a windows workflow. The argument against having it enabled by default is that its only relevant if you are running scala-native (and depending on what you do with scala-native it may not even be necessary). The argument for having this as a default is that it doesn't appear to do any harm unless you use an excessive amount of disk storage (in which case you can always disable it). See scala-native/scala-native#3195 (comment) for the discussion on this.

Also note that scala-native itself uses this fix for its Windows related workflows.

@mdedetrich
Copy link
Contributor Author

#148 is a related issue

Copy link
Member

@eed3si9n eed3si9n left a comment

Choose a reason for hiding this comment

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

Thanks

githubWorkflowAddedJobs := Seq())
githubWorkflowAddedJobs := Seq(),
githubWorkflowWindowsPagefileFix := Some(
windows.PagefileFix("2GB", "8GB")
Copy link
Member

Choose a reason for hiding this comment

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

LGTM

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