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

Remove no connection primary key test #48488

Merged

Conversation

eileencodes
Copy link
Member

This test was added in b3407c8 at a time when Rails was reading the primary_keys off a hash stored on connection. We no longer do that in Active Record so this test isn't really necessary. I'm removing it because it was flaky. I attempted to fix it in #48473 but realized today it's not testing the same thing it was before. After discussing it with Matthew, I've decided to remove it.

This test was added in rails@b3407c8
at a time when Rails was reading the `primary_keys` off a hash stored on
`connection`. We no longer do that in Active Record so this test isn't
really necessary. I'm removing it because it was flaky. I attempted to
fix it in rails#48473 but realized today it's not testing the same thing it
was before. After discussing it with Matthew, I've decided to remove it.
@eileencodes eileencodes merged commit 87ab32f into rails:main Jun 15, 2023
8 of 9 checks passed
@eileencodes eileencodes deleted the remove-no-connection-primary-key-test branch June 15, 2023 19:09
@zzak
Copy link
Member

zzak commented Jul 8, 2023

@eileencodes Do you think we should remove the test in 7-0-stable as well? I looked at recent builds but couldn't find an exact reproduction. There are some flakes where it looks like the test just bails, though I'm not sure if that is the parallel runner or connection handler 🤔

@zzak
Copy link
Member

zzak commented Jul 9, 2023

Like the golden rule of irc, don't ask to submit a patch, just send it. So now there is #48697, I thought it's good to backport changes like this to help improve the stability of those branches. Feel free to close if you feel otherwise 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants