2024-03-15 18:49:51 +01:00
|
|
|
name: Test UBSan
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
types: [opened, synchronize, reopened, ready_for_review]
|
|
|
|
paths-ignore:
|
|
|
|
- .mailmap
|
|
|
|
- '**.md'
|
|
|
|
- AUTHORS
|
|
|
|
- doc/**
|
|
|
|
- .github/**
|
2024-03-21 10:08:01 +01:00
|
|
|
- '!.github/workflows/test-ubsan.yml'
|
2024-03-15 18:49:51 +01:00
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
- canary
|
|
|
|
- v[0-9]+.x-staging
|
|
|
|
- v[0-9]+.x
|
|
|
|
paths-ignore:
|
|
|
|
- .mailmap
|
|
|
|
- '**.md'
|
|
|
|
- AUTHORS
|
|
|
|
- doc/**
|
|
|
|
- .github/**
|
2024-03-21 10:08:01 +01:00
|
|
|
- '!.github/workflows/test-ubsan.yml'
|
2024-03-15 18:49:51 +01:00
|
|
|
|
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
|
|
|
env:
|
2024-04-03 08:24:57 +02:00
|
|
|
PYTHON_VERSION: '3.12'
|
2024-03-15 18:49:51 +01:00
|
|
|
FLAKY_TESTS: keep_retrying
|
|
|
|
|
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
test-ubsan:
|
2024-04-17 07:38:20 +02:00
|
|
|
if: false # Temporary disabled. Reference: https://github.com/nodejs/node/pull/52293#issuecomment-2059270585
|
2024-04-05 21:27:31 +02:00
|
|
|
runs-on: ubuntu-latest
|
2024-03-15 18:49:51 +01:00
|
|
|
env:
|
2024-06-06 00:33:40 +02:00
|
|
|
CC: sccache gcc
|
|
|
|
CXX: sccache g++
|
|
|
|
LINK: sccache g++
|
2024-03-15 18:49:51 +01:00
|
|
|
CONFIG_FLAGS: --enable-ubsan
|
|
|
|
steps:
|
2024-11-03 20:03:33 +01:00
|
|
|
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
2024-03-15 18:49:51 +01:00
|
|
|
with:
|
|
|
|
persist-credentials: false
|
|
|
|
- name: Store suppressions path
|
|
|
|
run: |
|
|
|
|
echo "UBSAN_OPTIONS=suppressions=$GITHUB_WORKSPACE/suppressions.supp" >> $GITHUB_ENV
|
|
|
|
- name: Set up Python ${{ env.PYTHON_VERSION }}
|
2024-11-03 20:07:53 +01:00
|
|
|
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
|
2024-03-15 18:49:51 +01:00
|
|
|
with:
|
|
|
|
python-version: ${{ env.PYTHON_VERSION }}
|
2024-06-06 00:33:40 +02:00
|
|
|
- name: Set up sccache
|
2024-10-04 20:33:37 +02:00
|
|
|
uses: mozilla-actions/sccache-action@9e326ebed976843c9932b3aa0e021c6f50310eb4 # v0.0.6
|
2024-06-06 00:33:40 +02:00
|
|
|
with:
|
2024-09-04 16:39:41 +02:00
|
|
|
version: v0.8.1
|
2024-03-15 18:49:51 +01:00
|
|
|
- name: Environment Information
|
|
|
|
run: npx envinfo
|
|
|
|
- name: Build
|
|
|
|
run: make build-ci -j2 V=1
|
|
|
|
- name: Test
|
2024-03-21 10:08:01 +01:00
|
|
|
run: make run-ci -j2 V=1 TEST_CI_ARGS="-p actions --node-args='--test-reporter=spec' --node-args='--test-reporter-destination=stdout' -t 300 --measure-flakiness 9"
|