Skip to content

Commit

Permalink
add workaround for GitHub runner for random crashes
Browse files Browse the repository at this point in the history
  • Loading branch information
rajeev-0 committed Mar 18, 2024
1 parent dba9f5e commit 9bdbc50
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
1 change: 0 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ jobs:
test_all:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- name: Fix kernel mmap rnd bits
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/quality_check_sonarcloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,17 @@ jobs:
build:
name: Build and analyze
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: Install sonar-scanner
uses: SonarSource/sonarcloud-github-c-cpp@v2
- name: Fix kernel mmap rnd bits
# Asan in llvm 14 provided in ubuntu 22.04 is incompatible with
# high-entropy ASLR in much newer kernels that GitHub runners are
# using leading to random crashes: https://reviews.llvm.org/D148280
run: sudo sysctl vm.mmap_rnd_bits=28
- name: cmake
run: |
USE_LIBCMP=1 cmake .
Expand Down
2 changes: 1 addition & 1 deletion Makefile_v1
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ else
endif

.phony: demo demo_all demo_Insta demo_EJBCA demo_CloudCA
demo: demo_EJBCA
demo: demo_Insta
demo_all: demo demo_EJBCA demo_CloudCA
demo_Insta: get_Insta_crls
$(MAKE) -f Makefile_v1 run_demo BIN_DIR="$(BIN_DIR)" CA_SECTION="Insta" SLEEP="sleep 1"
Expand Down

0 comments on commit 9bdbc50

Please sign in to comment.