code review changes

Signed-off-by: Pratik Mankawde <pmankawde@ripple.com>
This commit is contained in:
Pratik Mankawde
2025-11-05 09:46:56 +00:00
parent 7ae3a85f21
commit e95299dac5
5 changed files with 14 additions and 17 deletions

View File

@@ -22,10 +22,9 @@ inputs:
required: false
default: "verbose"
sanitizers:
description: "The sanitizers to enable ('None', 'Address', 'Thread')."
description: "The sanitizers to enable ('Address+UndefinedBehaviour' or 'Thread+UndefinedBehaviour')."
required: true
type: string
default: "None"
default: ""
runs:
using: composite

View File

@@ -124,11 +124,12 @@ def generate_strategy_matrix(all: bool, config: Config) -> list:
cmake_args = f'{cmake_args} -Dwextra=ON'
if build_type == 'Release':
cmake_args = f'{cmake_args} -Dassert=ON'
if sanitizers == 'Address':
cmake_args = f'{cmake_args} -fsanitize=address,undefined,float-divide-by-zero,unsigned-integer-overflow'
elif sanitizers == 'Thread':
cmake_args = f'{cmake_args} -fsanitize=thread,undefined,float-divide-by-zero,unsigned-integer-overflow'
if os['distro_version'] == 'bookworm':
if sanitizers == 'Address':
cmake_args += ' -fsanitize=address,undefined,float-divide-by-zero,unsigned-integer-overflow'
elif sanitizers == 'Thread':
cmake_args += ' -fsanitize=thread,undefined,float-divide-by-zero,unsigned-integer-overflow'
# We skip all RHEL on arm64 due to a build failure that needs further
# investigation.

View File

@@ -25,10 +25,9 @@ on:
type: string
required: true
sanitizers:
description: "The sanitizers to enable ('None', 'Address', 'Thread')."
description: "The sanitizers to enable ('Address+UndefinedBehaviour' or 'Thread+UndefinedBehaviour')."
required: true
type: string
default: "None"
default: ""
runs_on:
description: Runner to run the job on as a JSON string

View File

@@ -24,10 +24,9 @@ on:
type: string
default: "minimal"
sanitizers:
description: "The sanitizers to enable ('None', 'Address', 'Thread')."
description: "The sanitizers to enable ('Address+UndefinedBehaviour' or 'Thread+UndefinedBehaviour')."
required: true
type: string
default: "None"
default: ""
secrets:
CODECOV_TOKEN:
description: "The Codecov token to use for uploading coverage reports."

View File

@@ -20,10 +20,9 @@ on:
required: true
type: string
sanitizers:
description: "The sanitizers to enable ('None', 'Address', 'Thread')."
description: "The sanitizers to enable ('Address+UndefinedBehaviour' or 'Thread+UndefinedBehaviour')."
required: true
type: string
default: "None"
default: ""
runs_on:
description: Runner to run the job on as a JSON string