Skip to content

Commit da54664

Browse files
committed
[skip ci] Skip function JIT in nightly for ASAN
This avoids the 6h timeout.
1 parent ac50830 commit da54664

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.github/nightly_matrix.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ function get_matrix_include(array $branches) {
5252
'zts' => true,
5353
'configuration_parameters' => "CFLAGS='-fsanitize=undefined,address -DZEND_TRACK_ARENA_ALLOC' LDFLAGS='-fsanitize=undefined,address'",
5454
'run_tests_parameters' => '--asan',
55-
'timeout_minutes' => 480,
55+
'test_function_jit' => false,
5656
];
5757
}
5858
return $jobs;

.github/workflows/nightly.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,11 @@ jobs:
4141
debug: [true, false]
4242
name: ['']
4343
run_tests_parameters: ['']
44-
timeout_minutes: [360]
44+
test_function_jit: [true]
4545
zts: [true, false]
4646
include: ${{ fromJson(needs.GENERATE_MATRIX.outputs.matrix-include) }}
4747
name: "${{ matrix.branch.name }}_LINUX_X64${{ matrix.name }}_${{ matrix.debug && 'DEBUG' || 'RELEASE' }}_${{ matrix.zts && 'ZTS' || 'NTS' }}"
4848
runs-on: ubuntu-20.04
49-
timeout-minutes: ${{ matrix.timeout_minutes }}
5049
steps:
5150
- name: git checkout
5251
uses: actions/checkout@v3
@@ -92,6 +91,9 @@ jobs:
9291
-d zend_extension=opcache.so
9392
-d opcache.enable_cli=1
9493
- name: Test Function JIT
94+
# ASAN frequently timeouts. Each test run takes ~90 minutes, we can
95+
# avoid running into the 6 hour timeout by skipping the function JIT.
96+
if: matrix.test_function_jit
9597
uses: ./.github/actions/test-linux
9698
with:
9799
runTestsParameters: >-

0 commit comments

Comments
 (0)