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 switch to make a swap file #1751

Merged
merged 17 commits into from
Aug 29, 2023
Merged
Show file tree
Hide file tree
Changes from 16 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions conda_smithy/configure_feedstock.py
Original file line number Diff line number Diff line change
Expand Up @@ -1733,6 +1733,7 @@ def _load_forge_config(forge_dir, exclusive_config_file, forge_yml=None):
"vmImage": "ubuntu-latest",
},
"timeoutInMinutes": 360,
"swapfile_size": "0GiB",
},
"settings_osx": {
"pool": {
Expand Down
8 changes: 8 additions & 0 deletions conda_smithy/templates/azure-pipelines-linux.yml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,14 @@ jobs:
sudo docker image prune --all --force
df -h
displayName: Manage disk space
{%- endif %}
{%- if not (azure.swapfile_size|string).startswith("0") %}
mikemhenry marked this conversation as resolved.
Show resolved Hide resolved
- script: |
sudo fallocate -l {{ azure.settings_linux.swapfile_size }} /swapfile || true
sudo chmod 600 /swapfile || true
sudo mkswap /swapfile || true
sudo swapon /swapfile || true
displayName: Create swap file
{%- endif %}
# configure qemu binfmt-misc running. This allows us to run docker containers
# embedded qemu-static
Expand Down
23 changes: 23 additions & 0 deletions news/make_swap.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
**Added:**

* <news item>

**Changed:**

* Created option to create a swap file on the default linux image on Azure Pipelines

**Deprecated:**

* <news item>

**Removed:**

* <news item>

**Fixed:**

* <news item>

**Security:**

* <news item>
Loading