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

Get the integration tests up and running again #1300

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open

Conversation

BentiGorlich
Copy link
Member

  • The messenger transactional wrap is not working with the tests, as it conflicts with the DoctrineTestBundle
  • Fix some type problems (DateTime vs DateTimeImmutable, nulls and initialization errors)
  • SearchManager::findActivityPubActorsByUsername now converts !user@domain into @user@domain so searching for a magazine by !mag@domain works from the API as well
  • The StatsContentRepository had a sign error
  • add a new docker compose for the test dependencies, as well as oauth keys for the tests
  • remove the purge user test, as this is no longer an option
  • change the .env.test to fit the new dependencies

@BentiGorlich BentiGorlich added php Pull requests that update PHP code testing Unit/Functional/Integration test issues and pull requests labels Dec 17, 2024
@BentiGorlich BentiGorlich added this to the v1.7.4 milestone Dec 17, 2024
@BentiGorlich BentiGorlich self-assigned this Dec 17, 2024
@BentiGorlich BentiGorlich force-pushed the fix/tests branch 2 times, most recently from 4c32edd to 82db8d1 Compare December 17, 2024 15:29
- The messenger transactional wrap is not working with the tests, as it conflicts with the DoctrineTestBundle
- Fix some type problems (DateTime vs DateTimeImmutable, nulls and initialization errors)
- `SearchManager::findActivityPubActorsByUsername` now converts `!user@domain` into `@user@domain` so searching for a magazine by `!mag@domain` works from the API as well
- The `StatsContentRepository` had a sign error
- add a new docker compose for the test dependencies, as well as oauth keys for the tests
- remove the purge user test, as this is no longer an option
- change the .env.test to fit the new dependencies
@BentiGorlich BentiGorlich force-pushed the fix/tests branch 3 times, most recently from f18437b to e4f5cea Compare December 18, 2024 08:31
@BentiGorlich
Copy link
Member Author

Ok, so it is now working, but the tests take forever: 23 minutes. There is a library called paratest that utilizes parallel testing, however the transaction isolation is not working at the moment (I have no idea why) so we have random assert failures with it (just tested it)
@melroy89 if you have any idea what could cause the doctrine test bundle to not work, please let me know as this already caused some headache for me 😅

@BentiGorlich
Copy link
Member Author

Ok, so just checked what actually happens. It does not commit anything to the DB, however cahing is screwing us a little bit and the static settings were a problem. I am working on it :D

@melroy89
Copy link
Member

If you need more php extensions installed. Let me know right.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
php Pull requests that update PHP code testing Unit/Functional/Integration test issues and pull requests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants