CI: use -O1 optimized builds for sanitizer and valgrind runs.
What changed, and why it matters
This commit only changes the project's automated testing configuration. It switches some continuous integration (CI) test runs to use a lower compiler optimization level (-O1) so that sanitizer and Valgrind checks finish faster. There is no change to the actual Core Lightning software that users run, and nothing in the commit suggests a security fix or vulnerability.
No security action needed. Treat as a normal CI optimization change.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The patch modifies .github/workflows/ci.yaml to add a new compile-gcc-O1 matrix entry and to use -O1 optimization for existing sanitizer (ASAN/UBSAN) and Valgrind CI jobs. The stated goal is reduced CI runtime (sanitizer runs reportedly drop from ~84.5 min to ~13.3 min). No source code, build system defaults, or runtime behavior of Core Lightning is altered. This is a pure CI infrastructure/performance change.
Changed components
.github/workflows/ci.yamlInspect captured patch +8 / −2
diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml
index b39bcd3c..20e1b528 100644
--- a/.github/workflows/ci.yaml
+++ b/.github/workflows/ci.yaml
@@ -118,6 +118,11 @@ jobs:
VALGRIND: 1
COMPILER: gcc
DEBUG_BUILD: --enable-debugbuild
+ - CFG: compile-gcc-O1
+ VALGRIND: 1
+ COMPILER: gcc
+ COPTFLAGS_VAR: COPTFLAGS="-O1"
+ DEBUG_BUILD: --enable-debugbuild
- CFG: compile-gcc-O3
VALGRIND: 1
COMPILER: gcc
@@ -133,6 +138,7 @@ jobs:
ASAN: 1
UBSAN: 1
VALGRIND: 0
+ COPTFLAGS_VAR: COPTFLAGS="-O1"
DEBUG_BUILD:
steps:
- name: Checkout
@@ -240,7 +246,7 @@ jobs:
fail-fast: true
matrix:
include:
- - CFG: compile-gcc
+ - CFG: compile-gcc-O1
VALGRIND: 1
- CFG: compile-clang-sanitizers
VALGRIND: 0
@@ -521,7 +527,7 @@ jobs:
strategy:
fail-fast: false
matrix:
- CFG: [compile-gcc]
+ CFG: [compile-gcc-O1]
GROUP: [1,2,3,4,5,6,7,8,9,10]
steps:
- name: Checkout
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.