Skip to content

Commit bcf45df

Browse files
committed
WIP: debug
1 parent 57902a9 commit bcf45df

File tree

1 file changed

+21
-87
lines changed

1 file changed

+21
-87
lines changed

.github/workflows/push.yml

Lines changed: 21 additions & 87 deletions
Original file line numberDiff line numberDiff line change
@@ -53,90 +53,24 @@ jobs:
5353
uses: ./.github/actions/install-linux
5454
- name: Setup
5555
uses: ./.github/actions/setup-x64
56-
- name: Test
57-
uses: ./.github/actions/test-linux
58-
with:
59-
testArtifacts: ${{ matrix.debug && 'DEBUG' || 'RELEASE' }}_${{ matrix.zts && 'ZTS' || 'NTS' }}
60-
- name: Test Tracing JIT
61-
uses: ./.github/actions/test-linux
62-
with:
63-
testArtifacts: ${{ matrix.debug && 'DEBUG' || 'RELEASE' }}_${{ matrix.zts && 'ZTS' || 'NTS' }} Tracing JIT
64-
runTestsParameters: >-
65-
-d zend_extension=opcache.so
66-
-d opcache.enable_cli=1
67-
-d opcache.jit_buffer_size=16M
68-
- name: Verify generated files are up to date
69-
uses: ./.github/actions/verify-generated-files
70-
LINUX_X32:
71-
name: LINUX_X32_DEBUG_ZTS
72-
runs-on: ubuntu-latest
73-
container:
74-
image: ubuntu:20.04
75-
env:
76-
MYSQL_TEST_HOST: mysql
77-
PDO_MYSQL_TEST_DSN: mysql:host=mysql;dbname=test
78-
PDO_MYSQL_TEST_HOST: mysql
79-
services:
80-
mysql:
81-
image: mysql:8
82-
ports:
83-
- 3306:3306
84-
env:
85-
MYSQL_DATABASE: test
86-
MYSQL_ROOT_PASSWORD: root
87-
steps:
88-
- name: git checkout
89-
uses: actions/checkout@v3
90-
- name: apt
91-
uses: ./.github/actions/apt-x32
92-
- name: ./configure
93-
uses: ./.github/actions/configure-x32
94-
with:
95-
configurationParameters: >-
96-
--enable-debug
97-
--enable-zts
98-
- name: make
99-
run: make -j$(/usr/bin/nproc) >/dev/null
100-
- name: make install
101-
uses: ./.github/actions/install-linux-x32
102-
- name: Test
103-
uses: ./.github/actions/test-linux
104-
- name: Test Tracing JIT
105-
uses: ./.github/actions/test-linux
106-
with:
107-
runTestsParameters: >-
108-
-d zend_extension=opcache.so
109-
-d opcache.enable_cli=1
110-
-d opcache.jit_buffer_size=16M
111-
MACOS_DEBUG_NTS:
112-
runs-on: macos-11
113-
steps:
114-
- name: git checkout
115-
uses: actions/checkout@v3
116-
- name: brew
117-
uses: ./.github/actions/brew
118-
- name: ./configure
119-
uses: ./.github/actions/configure-macos
120-
with:
121-
configurationParameters: --enable-debug --disable-zts
122-
- name: make
123-
run: |-
124-
export PATH="/usr/local/opt/bison/bin:$PATH"
125-
make -j$(sysctl -n hw.logicalcpu) >/dev/null
126-
- name: make install
127-
run: sudo make install
128-
- name: Test
129-
uses: ./.github/actions/test-macos
130-
with:
131-
testArtifacts: ${{ matrix.debug && 'DEBUG' || 'RELEASE' }}_${{ matrix.zts && 'ZTS' || 'NTS' }}
132-
- name: Test Tracing JIT
133-
uses: ./.github/actions/test-macos
134-
with:
135-
testArtifacts: ${{ matrix.debug && 'DEBUG' || 'RELEASE' }}_${{ matrix.zts && 'ZTS' || 'NTS' }} Tracing JIT
136-
runTestsParameters: >-
137-
-d zend_extension=opcache.so
138-
-d opcache.enable_cli=1
139-
-d opcache.protect_memory=1
140-
-d opcache.jit_buffer_size=16M
141-
- name: Verify generated files are up to date
142-
uses: ./.github/actions/verify-generated-files
56+
- name: Test Drupal
57+
run: |
58+
php -i|grep memory_limit
59+
git clone https://git.drupalcode.org/project/drupal.git drupal --branch=10.1.x --depth=1
60+
cd drupal
61+
git rev-parse HEAD
62+
php /usr/bin/composer install --no-progress --ignore-platform-reqs
63+
rm -f core/tests/Drupal/Tests/ComposerIntegrationTest.php core/tests/Drupal/Tests/Core/Command/GenerateThemeTest.php
64+
export ASAN_OPTIONS=exitcode=139
65+
php core/scripts/drupal install --no-interaction minimal || EXIT_CODE=$?
66+
[ ${EXIT_CODE:-0} -gt 128 ] && exit 1
67+
export PHP_CLI_SERVER_WORKERS=$(/usr/bin/nproc)
68+
php core/scripts/drupal server --port=8888 --host=localhost --suppress-login 1>&- 2>&- &
69+
export SIMPLETEST_BASE_URL=http://localhost:8888
70+
export SIMPLETEST_DB=sqlite://localhost/tests.db
71+
vendor/bin/phpunit -c core/phpunit.xml.dist --testsuite=unit || EXIT_CODE=$?
72+
[ ${EXIT_CODE:-0} -gt 128 ] && exit 1
73+
vendor/bin/phpunit -c core/phpunit.xml.dist --testsuite=build || EXIT_CODE=$?
74+
[ ${EXIT_CODE:-0} -gt 128 ] && exit 1
75+
php core/scripts/run-tests.sh --concurrency $(/usr/bin/nproc) --php php --sqlite ./test.db --dburl mysql://root:root@localhost/test --url http://localhost:8888/ --types "PHPUnit-Kernel,PHPUnit-Functional" --module content_moderation || EXIT_CODE=$?
76+
[ ${EXIT_CODE:-0} -gt 128 ] && exit 1

0 commit comments

Comments
 (0)