Skip to content
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

chore(ci): misc improvments in CI permutations #797

Merged
merged 2 commits into from
Feb 1, 2025

Conversation

nikophil
Copy link
Member

@nikophil nikophil commented Jan 24, 2025

fixes #796
fixes #783

  • remove some tests permutations for main test suite:
    • only test with dama when possible (all the "without dama" permutations are only needed for "reset database" mechanism)
    • only keep one permutation with php 8.1
    • only one permutation with phpunit 9 and 10
  • add test with lowest deps in reset database test suite

on 2.x branch, we currently have 31 permutations for reset database testsuite and 48 for main testsuite, running in 9m50

and now we have 35 permutations for reset database testsuite and 24 for main testsuite, running in 4m21 😊

@nikophil nikophil force-pushed the chore/change-ci-permutations branch 3 times, most recently from a92302b to 32a30e7 Compare January 29, 2025 21:42
@nikophil nikophil force-pushed the chore/change-ci-permutations branch 2 times, most recently from efee0b3 to 343a5bb Compare January 30, 2025 12:27
@nikophil nikophil changed the title chore(ci): add --prefer-lowest in reset database suite chore(ci): misc improvments in CI permutations Jan 30, 2025
@@ -68,7 +67,7 @@ final protected function dropAndResetDatabase(Application $application): void
// let's only drop the .db file

$dbPath = $connection->getParams()['path'] ?? null;
if (DoctrineOrmVersionGuesser::isOrmV3() && $dbPath && (new Filesystem())->exists($dbPath)) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this test on orm version seems to not be needed anymore

@@ -20,7 +20,7 @@
* @author Nicolas PHILIPPE <[email protected]>
*/
#[ORM\Entity]
#[ORM\Table('inversed_one_to_one_with_non_nullable_owning_inverse_side')]
#[ORM\Table('inversed_one_to_one_non_nullable_owning_inverse_side')]
Copy link
Member Author

@nikophil nikophil Jan 30, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the name was too long for PG sequences 😅

@nikophil nikophil force-pushed the chore/change-ci-permutations branch 5 times, most recently from b726ae0 to c46c240 Compare February 1, 2025 08:47
@nikophil nikophil force-pushed the chore/change-ci-permutations branch from c46c240 to 6d52a17 Compare February 1, 2025 08:50
@nikophil nikophil merged commit 46464cc into zenstruck:2.x Feb 1, 2025
66 checks passed
@nikophil nikophil deleted the chore/change-ci-permutations branch February 1, 2025 09:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Improve CI matrix SQLite and ResetDatabase trait: deletion of SQL database file fails
1 participant