Skip to content

Commit

Permalink
Revert "Work around asan issue with GH runner image >= 20240310.1.0 (… (
Browse files Browse the repository at this point in the history
  • Loading branch information
TingDaoK authored Mar 20, 2024
1 parent 741674c commit ce78b1e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 40 deletions.
38 changes: 4 additions & 34 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,6 @@ jobs:
- gcc-7
- gcc-8
steps:
- name: Fix kernel mmap rnd bits
# High entropy setting in GH runner images >= 20240310.1.0
# causes ASAN blowing up here and there:
# https://github.com/actions/runner-images/issues/9491
run: sudo sysctl vm.mmap_rnd_bits=28
# We can't use the `uses: docker://image` version yet, GitHub lacks authentication for actions -> packages
- name: Build ${{ env.PACKAGE_NAME }}
run: |
Expand All @@ -73,11 +68,6 @@ jobs:
matrix:
sanitizers: [",thread", ",address,undefined"]
steps:
- name: Fix kernel mmap rnd bits
# High entropy setting in GH runner images >= 20240310.1.0
# causes ASAN blowing up here and there:
# https://github.com/actions/runner-images/issues/9491
run: sudo sysctl vm.mmap_rnd_bits=28
# We can't use the `uses: docker://image` version yet, GitHub lacks authentication for actions -> packages
- name: Build ${{ env.PACKAGE_NAME }}
run: |
Expand All @@ -87,11 +77,6 @@ jobs:
linux-shared-libs:
runs-on: ubuntu-22.04 # latest
steps:
- name: Fix kernel mmap rnd bits
# High entropy setting in GH runner images >= 20240310.1.0
# causes ASAN blowing up here and there:
# https://github.com/actions/runner-images/issues/9491
run: sudo sysctl vm.mmap_rnd_bits=28
# We can't use the `uses: docker://image` version yet, GitHub lacks authentication for actions -> packages
- name: Build ${{ env.PACKAGE_NAME }}
run: |
Expand All @@ -101,11 +86,6 @@ jobs:
byo-crypto:
runs-on: ubuntu-22.04 # latest
steps:
- name: Fix kernel mmap rnd bits
# High entropy setting in GH runner images >= 20240310.1.0
# causes ASAN blowing up here and there:
# https://github.com/actions/runner-images/issues/9491
run: sudo sysctl vm.mmap_rnd_bits=28
# We can't use the `uses: docker://image` version yet, GitHub lacks authentication for actions -> packages
- name: Build ${{ env.PACKAGE_NAME }}
run: |
Expand Down Expand Up @@ -166,11 +146,6 @@ jobs:
downstream:
runs-on: ubuntu-22.04 # latest
steps:
- name: Fix kernel mmap rnd bits
# High entropy setting in GH runner images >= 20240310.1.0
# causes ASAN blowing up here and there:
# https://github.com/actions/runner-images/issues/9491
run: sudo sysctl vm.mmap_rnd_bits=28
# We can't use the `uses: docker://image` version yet, GitHub lacks authentication for actions -> packages
- name: Build ${{ env.PACKAGE_NAME }}
run: |
Expand All @@ -180,12 +155,7 @@ jobs:
linux-debug:
runs-on: ubuntu-22.04 # latest
steps:
- name: Fix kernel mmap rnd bits
# High entropy setting in GH runner images >= 20240310.1.0
# causes ASAN blowing up here and there:
# https://github.com/actions/runner-images/issues/9491
run: sudo sysctl vm.mmap_rnd_bits=28
- name: Build ${{ env.PACKAGE_NAME }}
run: |
aws s3 cp s3://aws-crt-test-stuff/ci/${{ env.BUILDER_VERSION }}/linux-container-ci.sh ./linux-container-ci.sh && chmod a+x ./linux-container-ci.sh
./linux-container-ci.sh ${{ env.BUILDER_VERSION }} aws-crt-${{ env.LINUX_BASE_IMAGE }} build -p ${{ env.PACKAGE_NAME }} --cmake-extra=-DASSERT_LOCK_HELD=ON --config Debug
- name: Build ${{ env.PACKAGE_NAME }}
run: |
aws s3 cp s3://aws-crt-test-stuff/ci/${{ env.BUILDER_VERSION }}/linux-container-ci.sh ./linux-container-ci.sh && chmod a+x ./linux-container-ci.sh
./linux-container-ci.sh ${{ env.BUILDER_VERSION }} aws-crt-${{ env.LINUX_BASE_IMAGE }} build -p ${{ env.PACKAGE_NAME }} --cmake-extra=-DASSERT_LOCK_HELD=ON --config Debug
7 changes: 1 addition & 6 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,7 @@ jobs:
runs-on: ubuntu-22.04
steps:
- name: Checkout Sources
uses: actions/checkout@v4
- name: Fix kernel mmap rnd bits
# High entropy setting in GH runner images >= 20240310.1.0
# causes ASAN blowing up here and there:
# https://github.com/actions/runner-images/issues/9491
run: sudo sysctl vm.mmap_rnd_bits=28
uses: actions/checkout@v3
- name: Build ${{ env.PACKAGE_NAME }} + consumers
run: |
python3 -c "from urllib.request import urlretrieve; urlretrieve('${{ env.BUILDER_HOST }}/${{ env.BUILDER_SOURCE }}/${{ env.BUILDER_VERSION }}/builder.pyz?run=${{ env.RUN }}', 'builder')"
Expand Down

0 comments on commit ce78b1e

Please sign in to comment.