Skip to content

Commit e3b5464

Browse files
pdillingermeta-codesync[bot]
authored andcommitted
GitHub Actions nightly crash test runs on ARM (facebook#14172)
Summary: To help find potential issues not showing up in ARM unit tests. I'm running it with and without TransactionDB (write-committed) for better coverage. The job expands the size of /dev/shm for adequate space on maximum performance storage, and adds swap space to reduce risk of OOM in case we fill that up. Pull Request resolved: facebook#14172 Test Plan: earlier drafts of this PR added the job to PR jobs, and the last before putting in "nightly" can be seen here: https://github.com/facebook/rocksdb/actions/runs/19945493840/job/57193797390?pr=14172 Reviewed By: archang19 Differential Revision: D88429479 Pulled By: pdillinger fbshipit-source-id: bd4d9cda9256950c3c6c126c299a44dbbbc30c7e
1 parent 7c48905 commit e3b5464

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

.github/workflows/nightly.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,20 @@ jobs:
110110
- run: sudo apt-get update && sudo apt-get install -y build-essential libgflags-dev
111111
- run: make V=1 J=4 -j4 check
112112
- uses: "./.github/actions/post-steps"
113+
build-linux-arm-crashtest:
114+
if: ${{ github.repository_owner == 'facebook' }}
115+
runs-on:
116+
labels: 4-core-ubuntu-arm
117+
steps:
118+
- uses: actions/checkout@v4.1.0
119+
- uses: "./.github/actions/pre-steps"
120+
- run: sudo apt-get update && sudo apt-get install -y build-essential libgflags-dev libsnappy-dev zlib1g-dev libbz2-dev liblz4-dev libzstd-dev
121+
- run: sudo mount -o remount,size=16G /dev/shm
122+
- run: sudo dd bs=1048576 count=4096 if=/dev/zero of=/swapfile && sudo chmod 600 /swapfile && sudo mkswap /swapfile && sudo swapon /swapfile
123+
- run: ulimit -S -n `ulimit -H -n` && make V=1 -j8 CRASH_TEST_EXT_ARGS='--duration=1800 --max_key=2500000' blackbox_crash_test_with_atomic_flush
124+
- run: rm -rf /dev/shm/rocksdb.*
125+
- run: ulimit -S -n `ulimit -H -n` && make V=1 -j8 CRASH_TEST_EXT_ARGS='--duration=1800 --max_key=2500000' blackbox_crash_test_with_multiops_wc_txn
126+
- uses: "./.github/actions/post-steps"
113127
build-examples:
114128
if: ${{ github.repository_owner == 'facebook' }}
115129
runs-on:

0 commit comments

Comments
 (0)