Skip to content

Commit afe52c6

Browse files
committed
Testing
1 parent ee19427 commit afe52c6

File tree

3 files changed

+46
-23
lines changed

3 files changed

+46
-23
lines changed

.github/nightly_matrix.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,7 @@ function get_branches() {
3939
if ($discard_cache) {
4040
@unlink(get_branch_commit_cache_file_path());
4141
}
42-
$branch = $argv[3] ?? 'master';
43-
$branches = $branch === 'master' ? get_branches() : [$branch];
42+
$branches = get_branches();
4443

4544
$f = fopen(getenv('GITHUB_OUTPUT'), 'a');
4645
fwrite($f, 'branches=' . json_encode($branches, JSON_UNESCAPED_SLASHES) . "\n");

.github/workflows/nightly.yml

Lines changed: 29 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ permissions:
3030
contents: read
3131
jobs:
3232
ALPINE:
33-
if: inputs.run_alpine
33+
if: false
3434
name: ALPINE_X64_ASAN_UBSAN_DEBUG_ZTS
3535
runs-on: ubuntu-22.04
3636
container:
@@ -85,6 +85,7 @@ jobs:
8585
token: ${{ secrets.ACTION_MONITORING_SLACK }}
8686

8787
LINUX_X64:
88+
if: false
8889
services:
8990
mysql:
9091
image: mysql:8.3
@@ -218,6 +219,7 @@ jobs:
218219
with:
219220
token: ${{ secrets.ACTION_MONITORING_SLACK }}
220221
LINUX_X32:
222+
if: false
221223
strategy:
222224
fail-fast: false
223225
matrix:
@@ -294,6 +296,7 @@ jobs:
294296
with:
295297
token: ${{ secrets.ACTION_MONITORING_SLACK }}
296298
MACOS:
299+
if: false
297300
strategy:
298301
fail-fast: false
299302
matrix:
@@ -355,7 +358,8 @@ jobs:
355358
with:
356359
token: ${{ secrets.ACTION_MONITORING_SLACK }}
357360
COVERAGE_DEBUG_NTS:
358-
if: inputs.branch == 'master'
361+
if: false
362+
# if: inputs.branch == 'master'
359363
services:
360364
mysql:
361365
image: mysql:8.3
@@ -483,7 +487,8 @@ jobs:
483487
echo opcache.jit_hot_side_exit=1 >> /etc/php.d/opcache.ini
484488
php -v
485489
- name: Test AMPHP
486-
if: always()
490+
if: false
491+
# if: always()
487492
run: |
488493
repositories="amp cache dns file http parallel parser pipeline process serialization socket sync websocket-client websocket-server"
489494
X=0
@@ -501,7 +506,8 @@ jobs:
501506
done
502507
exit $X
503508
- name: Test Laravel
504-
if: always()
509+
if: false
510+
# if: always()
505511
run: |
506512
git clone https://github.com/laravel/framework.git --branch=master --depth=1
507513
cd framework
@@ -514,7 +520,8 @@ jobs:
514520
exit 1
515521
fi
516522
- name: Test ReactPHP
517-
if: always()
523+
if: false
524+
# if: always()
518525
run: |
519526
repositories="async cache child-process datagram dns event-loop promise promise-stream promise-timer stream"
520527
X=0
@@ -532,7 +539,8 @@ jobs:
532539
done
533540
exit $X
534541
- name: Test Revolt PHP
535-
if: always()
542+
if: false
543+
# if: always()
536544
run: |
537545
git clone https://github.com/revoltphp/event-loop.git --depth=1
538546
cd event-loop
@@ -555,16 +563,10 @@ jobs:
555563
# Buggy FFI test in Symfony, see https://github.com/symfony/symfony/issues/47668
556564
php -r '$c = file_get_contents("src/Symfony/Component/VarDumper/Tests/Caster/FFICasterTest.php"); $c = str_replace("public function testCastNonTrailingCharPointer()", "/** @group skip */\n public function testCastNonTrailingCharPointer()", $c); file_put_contents("src/Symfony/Component/VarDumper/Tests/Caster/FFICasterTest.php", $c);'
557565
export SYMFONY_DEPRECATIONS_HELPER=max[total]=999
558-
X=0
559-
for component in $(find src/Symfony -mindepth 2 -type f -name phpunit.xml.dist -printf '%h\n'); do
560-
php ./phpunit $component --exclude-group tty,benchmark,intl-data,transient --exclude-group skip || EXIT_CODE=$?
561-
if [ ${EXIT_CODE:-0} -gt 128 ]; then
562-
X=1;
563-
fi
564-
done
565-
exit $X
566+
php -d opcache.jit_debug=0x1ff405 ./phpunit src/Symfony/Bundle/WebProfilerBundle
566567
- name: Test PHPUnit
567-
if: always()
568+
if: false
569+
# if: always()
568570
run: |
569571
git clone https://github.com/sebastianbergmann/phpunit.git --branch=main --depth=1
570572
cd phpunit
@@ -575,15 +577,17 @@ jobs:
575577
exit 1
576578
fi
577579
- name: 'Symfony Preloading'
578-
if: always()
580+
if: false
581+
# if: always()
579582
run: |
580583
php /usr/bin/composer create-project symfony/symfony-demo symfony_demo --no-progress --ignore-platform-reqs
581584
cd symfony_demo
582585
git rev-parse HEAD
583586
sed -i 's/PHP_SAPI/"cli-server"/g' var/cache/dev/App_KernelDevDebugContainer.preload.php
584587
php -d opcache.preload=var/cache/dev/App_KernelDevDebugContainer.preload.php public/index.php
585588
- name: Test Wordpress
586-
if: always()
589+
if: false
590+
# if: always()
587591
run: |
588592
git clone https://github.com/WordPress/wordpress-develop.git wordpress --depth=1
589593
cd wordpress
@@ -598,11 +602,13 @@ jobs:
598602
exit 1
599603
fi
600604
- name: Notify Slack
601-
if: failure()
605+
if: false
606+
# if: failure()
602607
uses: ./.github/actions/notify-slack
603608
with:
604609
token: ${{ secrets.ACTION_MONITORING_SLACK }}
605610
OPCACHE_VARIATION:
611+
if: false
606612
services:
607613
mysql:
608614
image: mysql:8.3
@@ -694,6 +700,7 @@ jobs:
694700
with:
695701
token: ${{ secrets.ACTION_MONITORING_SLACK }}
696702
MSAN:
703+
if: false
697704
name: MSAN
698705
runs-on: ubuntu-${{ inputs.ubuntu_version }}
699706
steps:
@@ -786,6 +793,7 @@ jobs:
786793
with:
787794
token: ${{ secrets.ACTION_MONITORING_SLACK }}
788795
LIBMYSQLCLIENT:
796+
if: false
789797
name: LIBMYSQLCLIENT
790798
runs-on: ubuntu-${{ inputs.ubuntu_version }}
791799
steps:
@@ -831,7 +839,8 @@ jobs:
831839
with:
832840
token: ${{ secrets.ACTION_MONITORING_SLACK }}
833841
PECL:
834-
if: inputs.branch == 'master'
842+
if: false
843+
# if: inputs.branch == 'master'
835844
runs-on: ubuntu-22.04
836845
env:
837846
CC: ccache gcc
@@ -943,6 +952,7 @@ jobs:
943952
with:
944953
token: ${{ secrets.ACTION_MONITORING_SLACK }}
945954
WINDOWS:
955+
if: false
946956
strategy:
947957
fail-fast: false
948958
matrix:

.github/workflows/root.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ permissions:
88
jobs:
99
GENERATE_MATRIX:
1010
name: Generate Matrix
11-
if: github.repository == 'php/php-src' || github.event_name == 'workflow_dispatch'
11+
if: github.repository == 'php/php-src' || (github.event_name == 'workflow_dispatch' && (github.head_ref || github.ref_name) == 'master')
1212
runs-on: ubuntu-latest
1313
outputs:
1414
branches: ${{ steps.set-matrix.outputs.branches }}
@@ -30,7 +30,7 @@ jobs:
3030
nightly-
3131
- name: Generate Matrix
3232
id: set-matrix
33-
run: php .github/nightly_matrix.php "${{ github.event_name }}" "${{ github.run_attempt }}" "${{ github.head_ref || github.ref_name }}"
33+
run: php .github/nightly_matrix.php "${{ github.event_name }}" "${{ github.run_attempt }}"
3434
- name: Notify Slack
3535
if: failure()
3636
uses: ./.github/actions/notify-slack
@@ -111,3 +111,17 @@ jobs:
111111
ubuntu_version: '20.04'
112112
windows_version: '2019'
113113
secrets: inherit
114+
NIGHTLY_CUSTOM:
115+
name: Custom
116+
if: github.event_name == 'workflow_dispatch' && (github.head_ref || github.ref_name) != 'master'
117+
uses: ./.github/workflows/nightly.yml
118+
with:
119+
asan_ubuntu_version: '20.04'
120+
branch: ${{ github.head_ref || github.ref_name }}
121+
community_verify_type_inference: true
122+
libmysqlclient_with_mysqli: false
123+
run_alpine: true
124+
run_macos_arm64: true
125+
ubuntu_version: '22.04'
126+
windows_version: '2022'
127+
secrets: inherit

0 commit comments

Comments
 (0)