Verify generated files are up to date in CI

Closes GH-8295
This commit is contained in:
Michael Voříšek 2022-04-02 22:59:21 +02:00 committed by Ilija Tovilo
parent dad5cb442d
commit 36de002cc6
No known key found for this signature in database
GPG Key ID: A4F5D403F118200A
8 changed files with 31 additions and 6 deletions

View File

@ -59,10 +59,10 @@ runs:
libpng-dev \
libfreetype6-dev
mkdir /opt/oracle
wget https://download.oracle.com/otn_software/linux/instantclient/instantclient-basiclite-linuxx64.zip
unzip instantclient-basiclite-linuxx64.zip
wget https://download.oracle.com/otn_software/linux/instantclient/instantclient-sdk-linuxx64.zip
unzip instantclient-sdk-linuxx64.zip
wget -nv https://download.oracle.com/otn_software/linux/instantclient/instantclient-basiclite-linuxx64.zip
unzip instantclient-basiclite-linuxx64.zip && rm instantclient-basiclite-linuxx64.zip
wget -nv https://download.oracle.com/otn_software/linux/instantclient/instantclient-sdk-linuxx64.zip
unzip instantclient-sdk-linuxx64.zip && rm instantclient-sdk-linuxx64.zip
mv instantclient_*_* /opt/oracle/instantclient
# Interferes with libldap2 headers.
rm /opt/oracle/instantclient/sdk/include/ldap.h

View File

@ -0,0 +1,12 @@
name: Verify generated files are up to date
runs:
using: composite
steps:
- shell: bash
run: |
set -x
[[ "$OSTYPE" == "darwin"* ]] && export PATH="/usr/local/opt/bison/bin:$PATH"
scripts/dev/genfiles
Zend/zend_vm_gen.php
build/gen_stub.php -f
git add . -N && git diff --exit-code

View File

@ -93,6 +93,8 @@ jobs:
-d opcache.enable_cli=1
-d opcache.jit_buffer_size=16M
-d opcache.jit=1205
- name: Verify generated files are up to date
uses: ./.github/actions/verify-generated-files
MACOS:
needs: GENERATE_MATRIX
if: ${{ needs.GENERATE_MATRIX.outputs.branches != '[]' }}
@ -149,3 +151,5 @@ jobs:
-d opcache.protect_memory=1
-d opcache.jit_buffer_size=16M
-d opcache.jit=1205
- name: Verify generated files are up to date
uses: ./.github/actions/verify-generated-files

View File

@ -57,6 +57,8 @@ jobs:
-d zend_extension=opcache.so
-d opcache.enable_cli=1
-d opcache.jit_buffer_size=16M
- name: Verify generated files are up to date
uses: ./.github/actions/verify-generated-files
MACOS_DEBUG_NTS:
runs-on: macos-10.15
steps:
@ -84,3 +86,5 @@ jobs:
-d opcache.enable_cli=1
-d opcache.protect_memory=1
-d opcache.jit_buffer_size=16M
- name: Verify generated files are up to date
uses: ./.github/actions/verify-generated-files

View File

@ -1801,7 +1801,7 @@ function initPhpParser() {
}
$isInitialized = true;
$version = "4.9.0";
$version = "4.13.0";
$phpParserDir = __DIR__ . "/PHP-Parser-$version";
if (!is_dir($phpParserDir)) {
installPhpParser($version, $phpParserDir);

View File

@ -59,6 +59,7 @@ if (strlen($key) != fwrite($fp, $key)) {
if (!$link->query("SET @@session.old_passwords=2")) {
@unlink($file);
die(sprintf("skip Cannot set @@session.old_passwords=2 [%d] %s", $link->errno, $link->error));
}

View File

@ -18,6 +18,10 @@ pg_close($dbh);
require_once(__DIR__.'/../../dba/tests/test.inc');
require_once(__DIR__.'/../../dba/tests/dba_handler.inc');
?>
--CLEAN--
<?php
require_once(__DIR__.'/../../dba/tests/clean.inc');
?>
--EXPECTF--
database handler: %s

View File

@ -829,7 +829,7 @@ ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_trim, 0, 1, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, string, IS_STRING, 0)
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, characters, IS_STRING, 0, "\" \\n\\r\\t\\v\\0\"")
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, characters, IS_STRING, 0, "\" \\n\\r\\t\\v\\x00\"")
ZEND_END_ARG_INFO()
#define arginfo_rtrim arginfo_trim