-
Notifications
You must be signed in to change notification settings - Fork 30
Add missing cascade deletes to NotificationSettings #1420
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
Add missing cascade deletes to NotificationSettings #1420
Conversation
BentiGorlich
commented
Feb 3, 2025
- add the missing cascade deletes to the foreign keys of NotificationSettings
|
I have no idea why the tests are failing... I doubt that it has anything to do with the changes... |
Seems like some kind of order of execution issue. Like the db was not emptied? Or at least the test expected the row to be empty. But instead you get:
|
7d2764c to
c321c37
Compare
melroy89
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now the PHP file is added as well. Great! thx
|
However.. integration test is still failing consistently. you might want to check that out still. Integration test does not fail on other PRs like: #1426 |
|
Well I think the problem is this line:
Which I also have in the AP PR and I have no idea where that should come from... I cannot reporoduce it locally... |
|
Normally each test is executed in its own transaction which leads to an isolation, but the error I sent says that that isn't working. I just have no clue as to why |
|
is it conflicting with other runs like from the main branch maybe? Just thinking out loud here. |
|
what the actual fuck |
|
Maybe we need to add try/catch with a The HTML response is also not helpful. Maybe we should add the logs as an artifact to GitHub? So you can see the logs. This can be achieved via https://github.com/actions/upload-artifact. And needs to be used via |
|
All of the duplicate errors are caused by the transaction wrapping not working due to the error message I linked
I just have no idea why there would be an active transaction in there... It seems like it is just the non thread safe integration tests, but still no idea why as I cannot reproduce it locally |
a24263b to
bff3a74
Compare
- add the missing cascade deletes to the foreign keys of NotificationSettings
bff3a74 to
0c8b68c
Compare
|
What about creating a new branch? And try again. And see when the integration test fails..? Unless you already know the root cause. |
|
It is definitely the migration, I just don't know why... |
|
While the migration actually fixes the problem. Could it be that some integration test is expecting some data to be present but now gets deleted due to this migration delete cascade fix? |
|
I'm 100% certain that the cause of all the errors is that the DB isolation that the doctrine test bundle is supposed to do is not working, because there already is a transaction in every of the test cases... I have no idea where that would be coming from and I tried to put every |
|
...Rebasing trying the new docker image now.. |
