Skip to content

Commit

Permalink
Temoporary run nightly.yml workflow for php-ir-test on push
Browse files Browse the repository at this point in the history
  • Loading branch information
dstogov committed Oct 18, 2023
1 parent d9dbe75 commit 29413f2
Show file tree
Hide file tree
Showing 2 changed files with 83 additions and 64 deletions.
3 changes: 2 additions & 1 deletion .github/nightly_matrix.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?php

const BRANCHES = ['master', 'PHP-8.3', 'PHP-8.2', 'PHP-8.1', 'PHP-8.0'];
//const BRANCHES = ['master', 'PHP-8.3', 'PHP-8.2', 'PHP-8.1', 'PHP-8.0'];
const BRANCHES = ['php-ir-test'];

function get_branch_commit_cache_file_path(): string {
return dirname(__DIR__) . '/branch-commit-cache.json';
Expand Down
144 changes: 81 additions & 63 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,32 @@
name: Nightly
#name: Nightly
#on:
# schedule:
# - cron: "0 1 * * *"
# workflow_dispatch: ~
#permissions:
# contents: read
name: PHP_IR_TEST
on:
schedule:
- cron: "0 1 * * *"
workflow_dispatch: ~
push:
paths-ignore:
- docs/*
- NEWS
- UPGRADING
- UPGRADING.INTERNALS
- '**/README.*'
- CONTRIBUTING.md
- CODING_STANDARDS.md
branches:
- php-ir-test
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.url || github.run_id }}
cancel-in-progress: true
jobs:
GENERATE_MATRIX:
name: Generate Matrix
if: github.repository_owner == 'php' || github.event_name == 'workflow_dispatch'
#if: github.repository_owner == 'php' || github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
outputs:
branches: ${{ steps.set-matrix.outputs.branches }}
Expand All @@ -33,11 +51,11 @@ jobs:
- name: Generate Matrix
id: set-matrix
run: php .github/nightly_matrix.php "${{ github.event_name }}" "${{ github.run_attempt }}"
- name: Notify Slack
if: failure()
uses: ./.github/actions/notify-slack
with:
token: ${{ secrets.ACTION_MONITORING_SLACK }}
#- name: Notify Slack
# if: failure()
# uses: ./.github/actions/notify-slack
# with:
# token: ${{ secrets.ACTION_MONITORING_SLACK }}
LINUX_X64:
needs: GENERATE_MATRIX
if: ${{ needs.GENERATE_MATRIX.outputs.branches != '[]' }}
Expand All @@ -60,7 +78,7 @@ jobs:
zts: [true, false]
include: ${{ fromJson(needs.GENERATE_MATRIX.outputs.matrix-include) }}
name: "${{ matrix.branch.name }}_LINUX_X64${{ matrix.name }}_${{ matrix.debug && 'DEBUG' || 'RELEASE' }}_${{ matrix.zts && 'ZTS' || 'NTS' }}"
runs-on: ubuntu-${{ ((matrix.branch.ref == 'PHP-8.3' || matrix.branch.ref == 'master') && !matrix.asan) && '22.04' || '20.04' }}
runs-on: ubuntu-${{ ((matrix.branch.ref == 'php-ir-test' || matrix.branch.ref == 'PHP-8.3' || matrix.branch.ref == 'master') && !matrix.asan) && '22.04' || '20.04' }}
steps:
- name: git checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -130,11 +148,11 @@ jobs:
-d opcache.enable_cli=1
- name: Verify generated files are up to date
uses: ./.github/actions/verify-generated-files
- name: Notify Slack
if: failure()
uses: ./.github/actions/notify-slack
with:
token: ${{ secrets.ACTION_MONITORING_SLACK }}
#- name: Notify Slack
# if: failure()
# uses: ./.github/actions/notify-slack
# with:
# token: ${{ secrets.ACTION_MONITORING_SLACK }}
LINUX_X32:
needs: GENERATE_MATRIX
if: ${{ needs.GENERATE_MATRIX.outputs.branches != '[]' }}
Expand All @@ -147,7 +165,7 @@ jobs:
name: "${{ matrix.branch.name }}_LINUX_X32_${{ matrix.debug && 'DEBUG' || 'RELEASE' }}_${{ matrix.zts && 'ZTS' || 'NTS' }}"
runs-on: ubuntu-latest
container:
image: ubuntu:${{ (matrix.branch.ref == 'PHP-8.3' || matrix.branch.ref == 'master') && '22.04' || '20.04' }}
image: ubuntu:${{ (matrix.branch.ref == 'php-ir-test' || matrix.branch.ref == 'PHP-8.3' || matrix.branch.ref == 'master') && '22.04' || '20.04' }}
env:
MYSQL_TEST_HOST: mysql
PDO_MYSQL_TEST_DSN: mysql:host=mysql;dbname=test
Expand Down Expand Up @@ -213,11 +231,11 @@ jobs:
${{ matrix.run_tests_parameters }}
-d zend_extension=opcache.so
-d opcache.enable_cli=1
- name: Notify Slack
if: failure()
uses: ./.github/actions/notify-slack
with:
token: ${{ secrets.ACTION_MONITORING_SLACK }}
#- name: Notify Slack
# if: failure()
# uses: ./.github/actions/notify-slack
# with:
# token: ${{ secrets.ACTION_MONITORING_SLACK }}
MACOS:
needs: GENERATE_MATRIX
if: ${{ needs.GENERATE_MATRIX.outputs.branches != '[]' }}
Expand Down Expand Up @@ -277,13 +295,13 @@ jobs:
-d opcache.enable_cli=1
- name: Verify generated files are up to date
uses: ./.github/actions/verify-generated-files
- name: Notify Slack
if: failure()
uses: ./.github/actions/notify-slack
with:
token: ${{ secrets.ACTION_MONITORING_SLACK }}
#- name: Notify Slack
# if: failure()
# uses: ./.github/actions/notify-slack
# with:
# token: ${{ secrets.ACTION_MONITORING_SLACK }}
COVERAGE_DEBUG_NTS:
if: github.repository_owner == 'php' || github.event_name == 'workflow_dispatch'
#if: github.repository_owner == 'php' || github.event_name == 'workflow_dispatch'
services:
postgres:
image: postgres
Expand Down Expand Up @@ -322,11 +340,11 @@ jobs:
- name: Upload Test Coverage to Codecov.io
if: always()
run: bash <(curl -s https://codecov.io/bash)
- name: Notify Slack
if: failure()
uses: ./.github/actions/notify-slack
with:
token: ${{ secrets.ACTION_MONITORING_SLACK }}
#- name: Notify Slack
# if: failure()
# uses: ./.github/actions/notify-slack
# with:
# token: ${{ secrets.ACTION_MONITORING_SLACK }}
COMMUNITY:
needs: GENERATE_MATRIX
if: ${{ needs.GENERATE_MATRIX.outputs.branches != '[]' }}
Expand All @@ -335,7 +353,7 @@ jobs:
matrix:
branch: ${{ fromJson(needs.GENERATE_MATRIX.outputs.branches) }}
name: "${{ matrix.branch.name }}_COMMUNITY"
runs-on: ubuntu-${{ (matrix.branch.ref == 'PHP-8.3' || matrix.branch.ref == 'master') && '22.04' || '20.04' }}
runs-on: ubuntu-${{ (matrix.branch.ref == 'php-ir-test' || matrix.branch.ref == 'PHP-8.3' || matrix.branch.ref == 'master') && '22.04' || '20.04' }}
env:
UBSAN_OPTIONS: print_stacktrace=1
USE_ZEND_ALLOC: 0
Expand Down Expand Up @@ -501,11 +519,11 @@ jobs:
if [ $EXIT_CODE -gt 128 ]; then
exit 1
fi
- name: Notify Slack
if: failure()
uses: ./.github/actions/notify-slack
with:
token: ${{ secrets.ACTION_MONITORING_SLACK }}
#- name: Notify Slack
# if: failure()
# uses: ./.github/actions/notify-slack
# with:
# token: ${{ secrets.ACTION_MONITORING_SLACK }}
OPCACHE_VARIATION:
needs: GENERATE_MATRIX
if: ${{ needs.GENERATE_MATRIX.outputs.branches != '[]' }}
Expand All @@ -521,7 +539,7 @@ jobs:
matrix:
branch: ${{ fromJson(needs.GENERATE_MATRIX.outputs.branches) }}
name: "${{ matrix.branch.name }}_OPCACHE_VARIATION"
runs-on: ubuntu-${{ (matrix.branch.ref == 'PHP-8.3' || matrix.branch.ref == 'master') && '22.04' || '20.04' }}
runs-on: ubuntu-${{ (matrix.branch.ref == 'php-ir-test' || matrix.branch.ref == 'PHP-8.3' || matrix.branch.ref == 'master') && '22.04' || '20.04' }}
steps:
- name: git checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -584,11 +602,11 @@ jobs:
-d opcache.file_cache_only=1
- name: Verify generated files are up to date
uses: ./.github/actions/verify-generated-files
- name: Notify Slack
if: failure()
uses: ./.github/actions/notify-slack
with:
token: ${{ secrets.ACTION_MONITORING_SLACK }}
#- name: Notify Slack
# if: failure()
# uses: ./.github/actions/notify-slack
# with:
# token: ${{ secrets.ACTION_MONITORING_SLACK }}
MSAN:
needs: GENERATE_MATRIX
if: ${{ needs.GENERATE_MATRIX.outputs.branches != '[]' }}
Expand All @@ -597,7 +615,7 @@ jobs:
matrix:
branch: ${{ fromJson(needs.GENERATE_MATRIX.outputs.branches) }}
name: "${{ matrix.branch.name }}_MSAN"
runs-on: ubuntu-${{ (matrix.branch.ref == 'PHP-8.3' || matrix.branch.ref == 'master') && '22.04' || '20.04' }}
runs-on: ubuntu-${{ (matrix.branch.ref == 'php-ir-test' || matrix.branch.ref == 'PHP-8.3' || matrix.branch.ref == 'master') && '22.04' || '20.04' }}
steps:
- name: git checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -682,11 +700,11 @@ jobs:
-d opcache.enable_cli=1
- name: Verify generated files are up to date
uses: ./.github/actions/verify-generated-files
- name: Notify Slack
if: failure()
uses: ./.github/actions/notify-slack
with:
token: ${{ secrets.ACTION_MONITORING_SLACK }}
#- name: Notify Slack
# if: failure()
# uses: ./.github/actions/notify-slack
# with:
# token: ${{ secrets.ACTION_MONITORING_SLACK }}
LIBMYSQLCLIENT:
needs: GENERATE_MATRIX
if: ${{ needs.GENERATE_MATRIX.outputs.branches != '[]' }}
Expand All @@ -697,7 +715,7 @@ jobs:
exclude:
- branch: { name: 'PHP-80', ref: 'PHP-8.0' }
name: "${{ matrix.branch.name }}_LIBMYSQLCLIENT"
runs-on: ubuntu-${{ (matrix.branch.ref == 'PHP-8.3' || matrix.branch.ref == 'master') && '22.04' || '20.04' }}
runs-on: ubuntu-${{ (matrix.branch.ref == 'php-ir-test' || matrix.branch.ref == 'PHP-8.3' || matrix.branch.ref == 'master') && '22.04' || '20.04' }}
steps:
- name: git checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -742,13 +760,13 @@ jobs:
withMysqli: ${{ matrix.branch.ref == 'PHP-8.1' }}
- name: Verify generated files are up to date
uses: ./.github/actions/verify-generated-files
- name: Notify Slack
if: failure()
uses: ./.github/actions/notify-slack
with:
token: ${{ secrets.ACTION_MONITORING_SLACK }}
#- name: Notify Slack
# if: failure()
# uses: ./.github/actions/notify-slack
# with:
# token: ${{ secrets.ACTION_MONITORING_SLACK }}
PECL:
if: github.repository_owner == 'php' || github.event_name == 'workflow_dispatch'
#if: github.repository_owner == 'php' || github.event_name == 'workflow_dispatch'
runs-on: ubuntu-22.04
env:
CC: ccache gcc
Expand Down Expand Up @@ -853,11 +871,11 @@ jobs:
/opt/php/bin/phpize
./configure --prefix=/opt/php --with-php-config=/opt/php/bin/php-config
make -j$(/usr/bin/nproc)
- name: Notify Slack
if: failure()
uses: ./.github/actions/notify-slack
with:
token: ${{ secrets.ACTION_MONITORING_SLACK }}
#- name: Notify Slack
# if: failure()
# uses: ./.github/actions/notify-slack
# with:
# token: ${{ secrets.ACTION_MONITORING_SLACK }}
WINDOWS:
needs: GENERATE_MATRIX
if: ${{ needs.GENERATE_MATRIX.outputs.branches != '[]' }}
Expand Down

0 comments on commit 29413f2

Please sign in to comment.