Skip to content

Commit

Permalink
Disable lots of tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tbradsha committed Dec 13, 2024
1 parent 549c75c commit da5a8ee
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 47 deletions.
93 changes: 47 additions & 46 deletions .github/files/generate-ci-matrix.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@
$matrix = array();

// Add PHP tests.

Check warning on line 61 in .github/files/generate-ci-matrix.php

View workflow job for this annotation

GitHub Actions / PHP Code Sniffer (non-excluded files only)

This comment is 52% valid code; is this commented out code? (Squiz.PHP.CommentedOutCode.Found)
foreach ( array( '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4' ) as $php ) {
// foreach ( array( '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4' ) as $php ) {
foreach ( array( '8.2' ) as $php ) {
$matrix[] = array(
'name' => "PHP tests: PHP $php WP latest",
'script' => 'test-php',
Expand All @@ -69,51 +70,51 @@
);
}

foreach ( array( 'previous', 'trunk' ) as $wp ) {
$phpver = $versions['PHP_VERSION'];
$matrix[] = array(
'name' => "PHP tests: PHP {$phpver} WP $wp",
'script' => 'test-php',
'php' => $phpver,
'wp' => $wp,
'timeout' => 15, // 2024-11-12: Successful runs seem to take ~7 minutes with PHP 8.2.
);
}

// Add WooCommerce tests.
$matrix[] = array(
'name' => 'PHP tests: PHP 7.4 WP latest with WooCommerce',
'script' => 'test-php',
'php' => '7.4',
'wp' => 'latest',
'timeout' => 20,
'with-woocommerce' => true,
);

// Add wpcomsh tests.
$matrix[] = array(
'name' => 'PHP tests: PHP 8.1 WP latest with wpcomsh',
'script' => 'test-php',
'php' => '8.1',
'wp' => 'latest',
'timeout' => 20,
'with-wpcomsh' => true,
);

// Add JS tests.
$matrix[] = array(
'name' => 'JS tests',
'script' => 'test-js',
'timeout' => 15, // 2024-11-12: Successful runs seem to take ~5 minutes.
);

// Add Coverage tests.
$matrix[] = array(
'name' => 'Code coverage',
'script' => 'test-coverage',
'wp' => 'latest',
'timeout' => 40, // 2024-11-12: Successful runs seem to take ~14 minutes.
);
// foreach ( array( 'previous', 'trunk' ) as $wp ) {

Check warning on line 73 in .github/files/generate-ci-matrix.php

View workflow job for this annotation

GitHub Actions / PHP Code Sniffer (non-excluded files only)

This comment is 53% valid code; is this commented out code? (Squiz.PHP.CommentedOutCode.Found)
// $phpver = $versions['PHP_VERSION'];

Check failure on line 74 in .github/files/generate-ci-matrix.php

View workflow job for this annotation

GitHub Actions / PHP Code Sniffer (non-excluded files only)

Spaces must be used for mid-line alignment; tabs are not allowed (Universal.WhiteSpace.DisallowInlineTabs.NonIndentTabsUsed)

Check failure on line 74 in .github/files/generate-ci-matrix.php

View workflow job for this annotation

GitHub Actions / PHP Code Sniffer (non-excluded files only)

Expected 1 space before comment text but found 2; use block comment if you need indentation (Squiz.Commenting.InlineComment.SpacingBefore)
// $matrix[] = array(

Check failure on line 75 in .github/files/generate-ci-matrix.php

View workflow job for this annotation

GitHub Actions / PHP Code Sniffer (non-excluded files only)

Spaces must be used for mid-line alignment; tabs are not allowed (Universal.WhiteSpace.DisallowInlineTabs.NonIndentTabsUsed)

Check failure on line 75 in .github/files/generate-ci-matrix.php

View workflow job for this annotation

GitHub Actions / PHP Code Sniffer (non-excluded files only)

Expected 1 space before comment text but found 2; use block comment if you need indentation (Squiz.Commenting.InlineComment.SpacingBefore)
// 'name' => "PHP tests: PHP {$phpver} WP $wp",

Check failure on line 76 in .github/files/generate-ci-matrix.php

View workflow job for this annotation

GitHub Actions / PHP Code Sniffer (non-excluded files only)

Spaces must be used for mid-line alignment; tabs are not allowed (Universal.WhiteSpace.DisallowInlineTabs.NonIndentTabsUsed)

Check failure on line 76 in .github/files/generate-ci-matrix.php

View workflow job for this annotation

GitHub Actions / PHP Code Sniffer (non-excluded files only)

Expected 1 space before comment text but found 6; use block comment if you need indentation (Squiz.Commenting.InlineComment.SpacingBefore)
// 'script' => 'test-php',

Check failure on line 77 in .github/files/generate-ci-matrix.php

View workflow job for this annotation

GitHub Actions / PHP Code Sniffer (non-excluded files only)

Spaces must be used for mid-line alignment; tabs are not allowed (Universal.WhiteSpace.DisallowInlineTabs.NonIndentTabsUsed)

Check failure on line 77 in .github/files/generate-ci-matrix.php

View workflow job for this annotation

GitHub Actions / PHP Code Sniffer (non-excluded files only)

Expected 1 space before comment text but found 6; use block comment if you need indentation (Squiz.Commenting.InlineComment.SpacingBefore)
// 'php' => $phpver,

Check failure on line 78 in .github/files/generate-ci-matrix.php

View workflow job for this annotation

GitHub Actions / PHP Code Sniffer (non-excluded files only)

Spaces must be used for mid-line alignment; tabs are not allowed (Universal.WhiteSpace.DisallowInlineTabs.NonIndentTabsUsed)

Check failure on line 78 in .github/files/generate-ci-matrix.php

View workflow job for this annotation

GitHub Actions / PHP Code Sniffer (non-excluded files only)

Expected 1 space before comment text but found 6; use block comment if you need indentation (Squiz.Commenting.InlineComment.SpacingBefore)
// 'wp' => $wp,
// 'timeout' => 15, // 2024-11-12: Successful runs seem to take ~7 minutes with PHP 8.2.
// );
// }

// // Add WooCommerce tests.

Check warning on line 84 in .github/files/generate-ci-matrix.php

View workflow job for this annotation

GitHub Actions / PHP Code Sniffer (non-excluded files only)

This comment is 51% valid code; is this commented out code? (Squiz.PHP.CommentedOutCode.Found)
// $matrix[] = array(
// 'name' => 'PHP tests: PHP 7.4 WP latest with WooCommerce',
// 'script' => 'test-php',
// 'php' => '7.4',
// 'wp' => 'latest',
// 'timeout' => 20,
// 'with-woocommerce' => true,
// );

// // Add wpcomsh tests.

Check warning on line 94 in .github/files/generate-ci-matrix.php

View workflow job for this annotation

GitHub Actions / PHP Code Sniffer (non-excluded files only)

This comment is 51% valid code; is this commented out code? (Squiz.PHP.CommentedOutCode.Found)
// $matrix[] = array(
// 'name' => 'PHP tests: PHP 8.1 WP latest with wpcomsh',
// 'script' => 'test-php',
// 'php' => '8.1',
// 'wp' => 'latest',
// 'timeout' => 20,
// 'with-wpcomsh' => true,
// );

// // Add JS tests.

Check warning on line 104 in .github/files/generate-ci-matrix.php

View workflow job for this annotation

GitHub Actions / PHP Code Sniffer (non-excluded files only)

This comment is 50% valid code; is this commented out code? (Squiz.PHP.CommentedOutCode.Found)
// $matrix[] = array(
// 'name' => 'JS tests',
// 'script' => 'test-js',
// 'timeout' => 15, // 2024-11-12: Successful runs seem to take ~5 minutes.
// );

// // Add Coverage tests.

Check warning on line 111 in .github/files/generate-ci-matrix.php

View workflow job for this annotation

GitHub Actions / PHP Code Sniffer (non-excluded files only)

This comment is 50% valid code; is this commented out code? (Squiz.PHP.CommentedOutCode.Found)
// $matrix[] = array(
// 'name' => 'Code coverage',
// 'script' => 'test-coverage',
// 'wp' => 'latest',
// 'timeout' => 40, // 2024-11-12: Successful runs seem to take ~14 minutes.
// );

// END matrix definitions.
// Now, validation.
Expand Down
2 changes: 1 addition & 1 deletion projects/plugins/jetpack/tests/action-test-php.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ if [[ "$WITH_WPCOMSH" == true ]]; then
fi

echo "::group::Jetpack tests"
phpunit
phpunit --filter WP_Test_Jetpack_Sync_Themes
echo "::endgroup::"

if [[ "$WP_BRANCH" == "trunk" ]]; then
Expand Down

0 comments on commit da5a8ee

Please sign in to comment.