mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-15 16:38:23 +01:00
ci: update asan-lsan-ubsan
Github-Pull: #32989
Rebased-From: 884251441b
Co-authored-by: Max Edwards <youwontforgetthis@gmail.com>
This commit is contained in:
51
.github/workflows/ci.yml
vendored
51
.github/workflows/ci.yml
vendored
@@ -329,49 +329,10 @@ jobs:
|
|||||||
shell: cmd
|
shell: cmd
|
||||||
run: py -3 test\fuzz\test_runner.py --par %NUMBER_OF_PROCESSORS% --loglevel DEBUG %RUNNER_TEMP%\qa-assets\fuzz_seed_corpus
|
run: py -3 test\fuzz\test_runner.py --par %NUMBER_OF_PROCESSORS% --loglevel DEBUG %RUNNER_TEMP%\qa-assets\fuzz_seed_corpus
|
||||||
|
|
||||||
asan-lsan-ubsan-integer-no-depends-usdt:
|
|
||||||
name: 'ASan + LSan + UBSan + integer, no depends, USDT'
|
|
||||||
runs-on: ubuntu-24.04 # has to match container in ci/test/00_setup_env_native_asan.sh for tracing tools
|
|
||||||
# No need to run on the read-only mirror, unless it is a PR.
|
|
||||||
if: github.repository != 'bitcoin-core/gui' || github.event_name == 'pull_request'
|
|
||||||
timeout-minutes: 120
|
|
||||||
env:
|
|
||||||
FILE_ENV: "./ci/test/00_setup_env_native_asan.sh"
|
|
||||||
DANGER_CI_ON_HOST_CACHE_FOLDERS: 1
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Set Ccache directory
|
|
||||||
run: echo "CCACHE_DIR=${RUNNER_TEMP}/ccache_dir" >> "$GITHUB_ENV"
|
|
||||||
|
|
||||||
- name: Set base root directory
|
|
||||||
run: echo "BASE_ROOT_DIR=${RUNNER_TEMP}" >> "$GITHUB_ENV"
|
|
||||||
|
|
||||||
- name: Restore Ccache cache
|
|
||||||
id: ccache-cache
|
|
||||||
uses: actions/cache/restore@v4
|
|
||||||
with:
|
|
||||||
path: ${{ env.CCACHE_DIR }}
|
|
||||||
key: ${{ github.job }}-ccache-${{ github.run_id }}
|
|
||||||
restore-keys: ${{ github.job }}-ccache-
|
|
||||||
|
|
||||||
- name: Enable bpfcc script
|
|
||||||
# In the image build step, no external environment variables are available,
|
|
||||||
# so any settings will need to be written to the settings env file:
|
|
||||||
run: sed -i "s|\${INSTALL_BCC_TRACING_TOOLS}|true|g" ./ci/test/00_setup_env_native_asan.sh
|
|
||||||
|
|
||||||
- name: CI script
|
- name: CI script
|
||||||
run: ./ci/test_run_all.sh
|
run: ./ci/test_run_all.sh
|
||||||
|
|
||||||
- name: Save Ccache cache
|
|
||||||
uses: actions/cache/save@v4
|
|
||||||
if: github.event_name != 'pull_request' && steps.ccache-cache.outputs.cache-hit != 'true'
|
|
||||||
with:
|
|
||||||
path: ${{ env.CCACHE_DIR }}
|
|
||||||
# https://github.com/actions/cache/blob/main/tips-and-workarounds.md#update-a-cache
|
|
||||||
key: ${{ github.job }}-ccache-${{ github.run_id }}
|
|
||||||
|
|
||||||
ci-matrix:
|
ci-matrix:
|
||||||
name: ${{ matrix.name }}
|
name: ${{ matrix.name }}
|
||||||
needs: runners
|
needs: runners
|
||||||
@@ -393,6 +354,12 @@ jobs:
|
|||||||
timeout-minutes: 120
|
timeout-minutes: 120
|
||||||
file-env: './ci/test/00_setup_env_arm.sh'
|
file-env: './ci/test/00_setup_env_arm.sh'
|
||||||
|
|
||||||
|
- name: 'ASan + LSan + UBSan + integer, no depends, USDT'
|
||||||
|
cirrus-runner: 'ghcr.io/cirruslabs/ubuntu-runner-amd64:24.04-lg' # has to match container in ci/test/00_setup_env_native_asan.sh for tracing tools
|
||||||
|
fallback-runner: 'ubuntu-24.04'
|
||||||
|
timeout-minutes: 120
|
||||||
|
file-env: './ci/test/00_setup_env_native_asan.sh'
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v5
|
uses: actions/checkout@v5
|
||||||
@@ -409,6 +376,12 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
use-cirrus: ${{ needs.runners.outputs.use-cirrus-runners }}
|
use-cirrus: ${{ needs.runners.outputs.use-cirrus-runners }}
|
||||||
|
|
||||||
|
- name: Enable bpfcc script
|
||||||
|
if: ${{ env.CONTAINER_NAME == 'ci_native_asan' }}
|
||||||
|
# In the image build step, no external environment variables are available,
|
||||||
|
# so any settings will need to be written to the settings env file:
|
||||||
|
run: sed -i "s|\${INSTALL_BCC_TRACING_TOOLS}|true|g" ./ci/test/00_setup_env_native_asan.sh
|
||||||
|
|
||||||
- name: CI script
|
- name: CI script
|
||||||
run: ./ci/test_run_all.sh
|
run: ./ci/test_run_all.sh
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user