Skip to content

Test summaries #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/actions/test-linux/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ runs:
--offline \
--show-diff \
--show-slow 1000 \
--set-timeout 120
--set-timeout 120 \
-s test-summary.txt
- uses: actions/upload-artifact@v4
if: always() && inputs.testArtifacts != null
with:
Expand Down
3 changes: 2 additions & 1 deletion .github/actions/test-macos/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ runs:
--offline \
--show-diff \
--show-slow 1000 \
--set-timeout 120
--set-timeout 120 \
-s test-summary.txt
- uses: actions/upload-artifact@v4
if: always() && inputs.testArtifacts != null
with:
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,9 @@ jobs:
- name: Verify generated files are up to date
if: ${{ !matrix.asan }}
uses: ./.github/actions/verify-generated-files
- name: Add test results to the CI run summary
run: |
echo test-summary.txt >> $GITHUB_STEP_SUMMARY
MACOS_DEBUG_NTS:
if: github.repository_owner == 'php' || github.event_name == 'pull_request'
strategy:
Expand Down Expand Up @@ -187,6 +190,9 @@ jobs:
-d opcache.enable_cli=1
- name: Verify generated files are up to date
uses: ./.github/actions/verify-generated-files
- name: Add test results to the CI run summary
run: |
echo test-summary.txt >> $GITHUB_STEP_SUMMARY
WINDOWS:
if: github.repository_owner == 'php' || github.event_name == 'pull_request'
name: WINDOWS_X64_ZTS
Expand Down
10 changes: 3 additions & 7 deletions run-tests.php
Original file line number Diff line number Diff line change
Expand Up @@ -903,11 +903,7 @@ function save_results(string $output_file, bool $prompt_to_save_results): void
{
global $sum_results, $failed_test_summary, $PHP_FAILED_TESTS, $php;

if (getenv('NO_INTERACTION') || TRAVIS_CI) {
return;
}

if ($prompt_to_save_results) {
if ($prompt_to_save_results && !getenv('NO_INTERACTION') && !TRAVIS_CI) {
/* We got failed Tests, offer the user to save a QA report */
$fp = fopen("php://stdin", "r+");
if ($sum_results['FAILED'] || $sum_results['BORKED'] || $sum_results['WARNED'] || $sum_results['LEAKED']) {
Expand Down Expand Up @@ -3032,8 +3028,8 @@ function get_summary(bool $show_ext_summary): string
=====================================================================
TEST RESULT SUMMARY
---------------------------------------------------------------------
Exts skipped : ' . sprintf('%5d', count($exts_skipped)) . ($exts_skipped ? ' (' . implode(', ', $exts_skipped) . ')' : '') . '
Exts tested : ' . sprintf('%5d', count($exts_tested)) . '
Exts skipped : ' . sprintf('%5d', $exts_skipped ? count($exts_skipped) : 0) . ($exts_skipped ? ' (' . implode(', ', $exts_skipped) . ')' : '') . '
Exts tested : ' . sprintf('%5d', $exts_tested ? count($exts_tested) : 0) . '
---------------------------------------------------------------------
';
}
Expand Down