Skip to content

Commit

Permalink
Don't run in containers
Browse files Browse the repository at this point in the history
Signed-off-by: Monthon Klongklaew <monthonk@amazon.com>
  • Loading branch information
monthonk committed Sep 20, 2024
1 parent 1f431d3 commit 6528d83
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
8 changes: 0 additions & 8 deletions .github/workflows/stress_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,7 @@ jobs:
mem-test:
name: Memory stress test
runs-on: [self-hosted, linux, arm64]
# Run this workflow in a container
container:
image: public.ecr.aws/amazonlinux/amazonlinux:2023
options: --cap-add SYS_ADMIN --device /dev/fuse --security-opt apparmor:unconfined

steps:
- name: Install git
run: dnf install -y git
- name: Checkout code
uses: actions/checkout@v4
with:
Expand All @@ -56,6 +49,5 @@ jobs:
with:
fuseVersion: 2
fio: true
run-as-root: true
- name: Run the test
run: ./.github/actions/scripts/stress-test.sh
4 changes: 2 additions & 2 deletions mountpoint-s3/scripts/fs_bench.sh
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ read_benchmark () {
cleanup() {
echo "read_benchmark:cleanup"
# unmount file system only if it is mounted
! mountpoint -q ${mount_dir} || umount ${mount_dir}
! mountpoint -q ${mount_dir} || sudo umount ${mount_dir}
rm -rf ${mount_dir}
rm -rf ${log_dir}
}
Expand Down Expand Up @@ -189,7 +189,7 @@ write_benchmark () {
cleanup() {
echo "write_benchmark:cleanup"
# unmount file system only if it is mounted
! mountpoint -q ${mount_dir} || umount ${mount_dir}
! mountpoint -q ${mount_dir} || sudo umount ${mount_dir}
rm -rf ${mount_dir}
rm -rf ${log_dir}
}
Expand Down

0 comments on commit 6528d83

Please sign in to comment.