Skip to content

Commit

Permalink
E2E: refresh, keep only green setup (#201)
Browse files Browse the repository at this point in the history
  • Loading branch information
janedbal authored Nov 19, 2024
1 parent affb57c commit 96321e0
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 13 deletions.
31 changes: 19 additions & 12 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,24 +24,27 @@ jobs:
repo: cdn77/RabbitMQBundle
-
repo: contao/contao
cdaArgs: --config=depcheck.php
cdaArgs: --disable-ext-analysis --config=depcheck.php
-
repo: idleberg/php-vite-manifest
cdaArgs: --disable-ext-analysis
-
repo: idleberg/php-wordpress-vite-assets
-
repo: inspirum/arrayable-php
-
repo: inspirum/balikobot-php
cdaArgs: --disable-ext-analysis
-
repo: inspirum/balikobot-php-symfony
-
repo: inspirum/xml-php
cdaArgs: --disable-ext-analysis
-
repo: kreait/firebase-php
-
repo: numero2/contao-marketing-suite
cdaArgs: --config=depcheck.php
cdaArgs: --disable-ext-analysis --config=depcheck.php
-
repo: numero2/contao-opengraph3
cdaArgs: --config=depcheck.php
Expand All @@ -56,26 +59,33 @@ jobs:
-
repo: oveleon/contao-cookiebar
composerArgs: --no-plugins
cdaArgs: --config=depcheck.php
cdaArgs: --disable-ext-analysis --config=depcheck.php
-
repo: oveleon/contao-glossary-bundle
composerArgs: --no-plugins
cdaArgs: --config=depcheck.php
cdaArgs: --disable-ext-analysis --config=depcheck.php
-
repo: oveleon/contao-theme-compiler-bundle
composerArgs: --no-plugins
cdaArgs: --config=depcheck.php
cdaArgs: --disable-ext-analysis --config=depcheck.php
-
repo: phpstan/phpstan-src
cdaArgs: --config=build/composer-dependency-analyser.php
cdaArgs: --disable-ext-analysis --config=build/composer-dependency-analyser.php
-
repo: qossmic/deptrac-src
cdaArgs: --disable-ext-analysis
-
repo: rectorphp/rector-src
-
repo: rectorphp/swiss-knife
-
repo: sensiolabs/GotenbergBundle
-
repo: shapecode/cron-bundle
-
repo: shipmonk-rnd/dead-code-detector
-
repo: shipmonk-rnd/doctrine-entity-preloader
-
repo: shipmonk-rnd/doctrine-hint-driven-sql-walker
-
Expand All @@ -90,11 +100,13 @@ jobs:
repo: shipmonk-rnd/name-collision-detector
-
repo: shipmonk-rnd/phpstan-rules
-
repo: symplify/config-transformer
-
repo: teamneusta/pimcore-testing-framework
-
repo: wallabag/wallabag

cdaArgs: --disable-ext-analysis
fail-fast: false
steps:
-
Expand Down Expand Up @@ -141,11 +153,6 @@ jobs:
working-directory: ${{ matrix.repo }}
run: composer install --no-progress --no-interaction --ignore-platform-reqs ${{ matrix.composerArgs }}

-
name: Run analyser (--disable-ext-analysis)
working-directory: ${{ matrix.repo }}
run: php ../../analyser/bin/composer-dependency-analyser --show-all-usages --disable-ext-analysis ${{ matrix.cdaArgs }}

-
name: Run analyser
working-directory: ${{ matrix.repo }}
Expand Down
23 changes: 22 additions & 1 deletion scripts/refresh-e2e.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ function fetchDependents(string $packageName, int $page = 1): array
foreach ($packages as $package) {
$packageName = $package['name'];
$downloads = $package['downloads'] ?? 0;
$abandoned = (bool) ($package['abandoned'] ?? false);

if ($abandoned) {
continue;
}

if ($downloads < 2000) {
continue;
Expand Down Expand Up @@ -51,7 +56,7 @@ function outputYaml(array $items): void
echo " -\n";

foreach ($item as $key => $value) {
echo " $key: $value\n";
echo " $key: " . trim($value) . "\n";
}
}
}
Expand Down Expand Up @@ -102,6 +107,22 @@ function outputYaml(array $items): void
) {
unset($result[$index]); // failing builds
}

if (
$item['repo'] === 'wallabag/wallabag'
|| $item['repo'] === 'oveleon/contao-theme-compiler-bundle'
|| $item['repo'] === 'oveleon/contao-glossary-bundle'
|| $item['repo'] === 'oveleon/contao-cookiebar'
|| $item['repo'] === 'numero2/contao-marketing-suite'
|| $item['repo'] === 'inspirum/xml-php'
|| $item['repo'] === 'inspirum/balikobot-php'
|| $item['repo'] === 'idleberg/php-vite-manifest'
|| $item['repo'] === 'contao/contao'
|| $item['repo'] === 'qossmic/deptrac-src'
|| $item['repo'] === 'phpstan/phpstan-src'
) {
$item['cdaArgs'] = '--disable-ext-analysis ' . ($item['cdaArgs'] ?? '');
}
}

usort($result, static function (array $a, array $b): int {
Expand Down

0 comments on commit 96321e0

Please sign in to comment.