Skip to content

Commit f7cef9a

Browse files
committed
Test ASAN on Ubuntu 22.04 in nightly by increasing swap
See ef6bbaa. We previously ran into crashes that are apprently related to a decrease in memory on never runners. The crash can be avoided by increasing the swap file. Closes GH-12267
1 parent 9bfdb4c commit f7cef9a

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/nightly.yml

+11-1
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,18 @@ jobs:
6060
zts: [true, false]
6161
include: ${{ fromJson(needs.GENERATE_MATRIX.outputs.matrix-include) }}
6262
name: "${{ matrix.branch.name }}_LINUX_X64${{ matrix.name }}_${{ matrix.debug && 'DEBUG' || 'RELEASE' }}_${{ matrix.zts && 'ZTS' || 'NTS' }}"
63-
runs-on: ubuntu-${{ ((matrix.branch.ref == 'PHP-8.3' || matrix.branch.ref == 'master') && !matrix.asan) && '22.04' || '20.04' }}
63+
runs-on: ubuntu-${{ (matrix.branch.ref == 'PHP-8.3' || matrix.branch.ref == 'master') && '22.04' || '20.04' }}
6464
steps:
65+
# https://stackoverflow.com/a/76921482/1320374
66+
- name: Increase swapfile
67+
if: matrix.asan
68+
run: |
69+
sudo swapoff -a
70+
sudo fallocate -l 8G /swapfile
71+
sudo chmod 600 /swapfile
72+
sudo mkswap /swapfile
73+
sudo swapon /swapfile
74+
sudo swapon --show
6575
- name: git checkout
6676
uses: actions/checkout@v4
6777
with:

0 commit comments

Comments
 (0)