From ce78b1eb5f605e22f988aa219bcec9b6ca373bce Mon Sep 17 00:00:00 2001 From: Dengke Tang Date: Wed, 20 Mar 2024 16:08:13 -0700 Subject: [PATCH] =?UTF-8?q?Revert=20"Work=20around=20asan=20issue=20with?= =?UTF-8?q?=20GH=20runner=20image=20>=3D=2020240310.1.0=20(=E2=80=A6=20(#4?= =?UTF-8?q?13)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci.yml | 38 ++++------------------------------- .github/workflows/codecov.yml | 7 +------ 2 files changed, 5 insertions(+), 40 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 97372eccb..bd3421bf5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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: | @@ -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: | @@ -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: | @@ -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: | @@ -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: | @@ -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 diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index 42feb208c..edfd58ccb 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -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')"