Skip to content

Commit

Permalink
CI: Tune Ubuntu 22.04 VM ASLR to workaround issue with clang ASAN
Browse files Browse the repository at this point in the history
  • Loading branch information
rouault committed May 10, 2024
1 parent a35fe0e commit 466a873
Show file tree
Hide file tree
Showing 10 changed files with 8 additions and 47 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/asan/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@ find -L \
! -name ogr_gpsbabel.py `# new-delete-type-mismatch error in gpsbabel binary that we can't suppress` \
! -name "__init__.py" \
! -path 'ogr/data/*' \
! -name test_gdal_merge.py \
! -name test_gdal_retile.py \
-print \
-exec ./pytest_wrapper.sh {} \; \
| tee ./test-output.txt
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/linux_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,7 @@ jobs:
container: ubuntu_22.04
build_script: build.sh
test_script: test.sh
# We force the host OS to be 20.04 to avoid "AddressSanitizer:DEADLYSIGNAL"
os: ubuntu-20.04
os: ubuntu-22.04

- name: Ubuntu 20.04, gcc
id: ubuntu_20.04
Expand Down Expand Up @@ -168,6 +167,13 @@ jobs:
echo "CACHE_CONTAINER_TAG_CLEAN=${CACHE_CONTAINER_TAG_CLEAN}" >> ${GITHUB_ENV}
echo "CONTAINER_NAME_FULL=${CONTAINER_REGISTRY}/${CONTAINER_REGISTRY_USER,,}/${CONTAINER_NAME}:${CONTAINER_TAG_CLEAN}" >>${GITHUB_ENV}
# Work around segfaults in ASan/MSan jobs
# Cf https://github.com/libjpeg-turbo/libjpeg-turbo/commit/2dfe6c0fe9e18671105e94f7cbf044d4a1d157e6
# and https://github.com/actions/runner-images/issues/9491
- name: Set up build
run: |
sudo sysctl vm.mmap_rnd_bits=28
- name: Checkout
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4

Expand Down
6 changes: 0 additions & 6 deletions autotest/osr/osr_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -1840,9 +1840,6 @@ def threaded_function(arg):

def test_Set_PROJ_DATA_config_option_sub_proccess_config_option_ok():

if gdaltest.is_travis_branch("sanitize"):
pytest.skip("fails on sanitize for unknown reason")

backup_search_paths = osr.GetPROJSearchPaths()
# conftest.py set 2 paths: autotest/gcore/tmp/proj_db_tmpdir and autotest/proj_grids
assert len(backup_search_paths) == 2
Expand All @@ -1861,9 +1858,6 @@ def test_Set_PROJ_DATA_config_option_sub_proccess_config_option_ok():

def test_Set_PROJ_DATA_config_option_sub_proccess_config_option_ko():

if gdaltest.is_travis_branch("sanitize"):
pytest.skip("fails on sanitize for unknown reason")

backup_search_paths = osr.GetPROJSearchPaths()
# conftest.py set 2 paths: autotest/gcore/tmp/proj_db_tmpdir and autotest/proj_grids
assert len(backup_search_paths) == 2
Expand Down
7 changes: 0 additions & 7 deletions autotest/pyscripts/test_gdal_calc.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
from collections import defaultdict
from copy import copy

import gdaltest
import pytest
import test_py_scripts

Expand Down Expand Up @@ -70,9 +69,6 @@ def script_path():

def test_gdal_calc_help(script_path):

if gdaltest.is_travis_branch("sanitize"):
pytest.skip("fails on sanitize for unknown reason")

assert "ERROR" not in test_py_scripts.run_py_script(
script_path, "gdal_calc", "--help"
)
Expand All @@ -84,9 +80,6 @@ def test_gdal_calc_help(script_path):

def test_gdal_calc_version(script_path):

if gdaltest.is_travis_branch("sanitize"):
pytest.skip("fails on sanitize for unknown reason")

assert "ERROR" not in test_py_scripts.run_py_script(
script_path, "gdal_calc", "--version"
)
Expand Down
4 changes: 0 additions & 4 deletions autotest/pyscripts/test_gdal_edit.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
import shutil
import sys

import gdaltest
import pytest
import test_py_scripts

Expand Down Expand Up @@ -141,9 +140,6 @@ def test_gdal_edit_py_1(script_path, tmp_path, read_only):

def test_gdal_edit_py_1b(script_path, tmp_path):

if gdaltest.is_travis_branch("sanitize"):
pytest.skip("fails on sanitize for unknown reason")

filename = str(tmp_path / "test_gdal_edit_py.tif")
shutil.copy(test_py_scripts.get_data_path("gcore") + "byte.tif", filename)

Expand Down
7 changes: 0 additions & 7 deletions autotest/pyscripts/test_gdal_fillnodata.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@

import struct

import gdaltest
import pytest
import test_py_scripts

Expand All @@ -53,9 +52,6 @@ def script_path():

def test_gdal_fillnodata_help(script_path):

if gdaltest.is_travis_branch("sanitize"):
pytest.skip("fails on sanitize for unknown reason")

assert "ERROR" not in test_py_scripts.run_py_script(
script_path, "gdal_fillnodata", "--help"
)
Expand All @@ -67,9 +63,6 @@ def test_gdal_fillnodata_help(script_path):

def test_gdal_fillnodata_version(script_path):

if gdaltest.is_travis_branch("sanitize"):
pytest.skip("fails on sanitize for unknown reason")

assert "ERROR" not in test_py_scripts.run_py_script(
script_path, "gdal_fillnodata", "--version"
)
Expand Down
4 changes: 0 additions & 4 deletions autotest/pyscripts/test_gdal_pansharpen.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
###############################################################################


import gdaltest
import pytest
import test_py_scripts

Expand Down Expand Up @@ -76,9 +75,6 @@ def small_world_pan_tif(tmp_path_factory):

def test_gdal_pansharpen_help(script_path):

if gdaltest.is_travis_branch("sanitize"):
pytest.skip("fails on sanitize for unknown reason")

assert "ERROR" not in test_py_scripts.run_py_script(
script_path, "gdal_pansharpen", "--help"
)
Expand Down
7 changes: 0 additions & 7 deletions autotest/pyscripts/test_gdal_proximity.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
# DEALINGS IN THE SOFTWARE.
###############################################################################

import gdaltest
import pytest
import test_py_scripts

Expand All @@ -52,9 +51,6 @@ def script_path():

def test_gdal_proximity_help(script_path):

if gdaltest.is_travis_branch("sanitize"):
pytest.skip("fails on sanitize for unknown reason")

assert "ERROR" not in test_py_scripts.run_py_script(
script_path, "gdal_proximity", "--help"
)
Expand All @@ -66,9 +62,6 @@ def test_gdal_proximity_help(script_path):

def test_gdal_proximity_version(script_path):

if gdaltest.is_travis_branch("sanitize"):
pytest.skip("fails on sanitize for unknown reason")

assert "ERROR" not in test_py_scripts.run_py_script(
script_path, "gdal_proximity", "--version"
)
Expand Down
4 changes: 0 additions & 4 deletions autotest/pyscripts/test_gdal_sieve.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
###############################################################################


import gdaltest
import pytest
import test_py_scripts

Expand All @@ -53,9 +52,6 @@ def script_path():

def test_gdal_sieve_help(script_path):

if gdaltest.is_travis_branch("sanitize"):
pytest.skip("fails on sanitize for unknown reason")

assert "ERROR" not in test_py_scripts.run_py_script(
script_path, "gdal_sieve", "--help"
)
Expand Down
4 changes: 0 additions & 4 deletions autotest/pyscripts/test_ogrmerge.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@

import sys

import gdaltest
import pytest
import test_py_scripts
from test_py_scripts import samples_path
Expand Down Expand Up @@ -246,9 +245,6 @@ def test_ogrmerge_7(script_path, tmp_path):

out_vrt = str(tmp_path / "out.vrt")

if gdaltest.is_travis_branch("sanitize"):
pytest.skip("fails on sanitize for unknown reason")

# No match in -single mode
test_py_scripts.run_py_script(
script_path,
Expand Down

0 comments on commit 466a873

Please sign in to comment.