@@ -3,6 +3,8 @@ name: JIT Hang Bisect
33# hang seen in the nightly COMMUNITY_asan job. Runs on a native x86-64 runner
44# (the bug does not reproduce on ARM or under qemu emulation).
55on :
6+ pull_request :
7+ types : [opened, reopened]
68 workflow_dispatch :
79 inputs :
810 good :
3032 timeout-minutes : 350
3133 env :
3234 SYMFONY_DIR : ${{ runner.temp }}/symfony
33- TEST_TIMEOUT : ${{ inputs.test_timeout }}
34- USE_ASAN : ${{ inputs.use_asan }}
35+ TEST_TIMEOUT : ${{ inputs.test_timeout || '300' }}
36+ USE_ASAN : ${{ inputs.use_asan || 'true' }}
3537 # Mirror the COMMUNITY_asan runtime environment
3638 USE_ZEND_ALLOC : ' 0'
3739 USE_TRACKED_ALLOC : ' 1'
4850 run : |
4951 git remote add upstream https://github.com/php/php-src.git || true
5052 git fetch --tags --quiet upstream
51- git rev-parse "${{ inputs.good }}^{commit}"
52- git rev-parse "${{ inputs.bad }}^{commit}"
53+ git rev-parse "${{ inputs.good || 'php-8.3.0' }}^{commit}"
54+ git rev-parse "${{ inputs.bad || '27c10ddce6302912a46d72a4dcd47c89f1209544' }}^{commit}"
5355
5456 - name : Install build dependencies
5557 run : |
6264 - name : Set up Symfony test bed (pinned commit)
6365 run : |
6466 git clone --no-checkout --filter=blob:none https://github.com/symfony/symfony.git "$SYMFONY_DIR"
65- git -C "$SYMFONY_DIR" fetch --depth=1 origin "${{ inputs.symfony_commit }}"
66- git -C "$SYMFONY_DIR" checkout "${{ inputs.symfony_commit }}"
67+ git -C "$SYMFONY_DIR" fetch --depth=1 origin "${{ inputs.symfony_commit || 'dce1b899ab0c0e4cef9159c083ef535387a8db12' }}"
68+ git -C "$SYMFONY_DIR" checkout "${{ inputs.symfony_commit || 'dce1b899ab0c0e4cef9159c083ef535387a8db12' }}"
6769 ( cd "$SYMFONY_DIR" && composer install --no-progress --ignore-platform-req=php+ && php ./phpunit install )
6870
6971 - name : Write bisect predicate
@@ -119,8 +121,8 @@ jobs:
119121 run : |
120122 git bisect reset >/dev/null 2>&1 || true
121123 git bisect start
122- git bisect bad "${{ inputs.bad }}"
123- git bisect good "${{ inputs.good }}"
124+ git bisect bad "${{ inputs.bad || '27c10ddce6302912a46d72a4dcd47c89f1209544' }}"
125+ git bisect good "${{ inputs.good || 'php-8.3.0' }}"
124126 set +e
125127 git bisect run "${{ runner.temp }}/bisect_step.sh" | tee "${{ runner.temp }}/bisect_out.txt"
126128 set -e
0 commit comments