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

Fix Active Storage test configurations for CI #50967

Merged
merged 1 commit into from
Feb 6, 2024

Conversation

zzak
Copy link
Member

@zzak zzak commented Feb 5, 2024

This change is an up-port of #50787 which applied a similar fix to 7-1-stable.

Since these tests weren't running before, we didn't notice when the DirectUploads controller tests were broken. My theory is that it has something to do with changing response.parsed_body to return a HWIA (in #49003).

This change is different from the 7-1-stable PR in that it removes the need to stringify or symbolize any keys, since we are comparing the metadata with string keys. This is a follow up to #43705.

This PR came out of the work in #50427, but since I was able to reproduce these failures on main, I wanted to fix them first.

activestorage/Rakefile Outdated Show resolved Hide resolved
@zzak zzak force-pushed the asto/fix-controller-tests branch 5 times, most recently from 79b21b8 to 1623e28 Compare February 6, 2024 01:06
This change is an up-port of rails#50787 which applied a similar fix to 7-1-stable.

Since these tests weren't running before, we didn't notice when the DirectUploads controller tests were broken. My theory is that it has something to do with changing `response.parsed_body` to return a HWIA (in rails#49003).

This change is different from the 7-1-stable PR in that it removes the need to stringify or symbolize any keys, since we are comparing the metadata with string keys. This is a follow up to rails#43705.

Co-authored-by: Sean Doyle <seanpdoyle@users.noreply.github.com>
Co-authored-by: Jean byroot Boussier <jean.boussier+github@shopify.com>
@byroot byroot merged commit 6b2a9f1 into rails:main Feb 6, 2024
4 checks passed
@zzak zzak deleted the asto/fix-controller-tests branch February 7, 2024 02:37
zzak added a commit to zzak/rails that referenced this pull request Feb 7, 2024
Apply rails#50967 to 7-1-stable, to simplify the tests for metadata and corrects the test configuration path with improvements to the readability.

This change improves upon rails#50787 in that it removes the need to stringify or symbolize any keys, since we are comparing the metadata with string keys. This is a follow up to rails#43705.

Co-authored-by: Sean Doyle <seanpdoyle@users.noreply.github.com>
Co-authored-by: Jean byroot Boussier <jean.boussier+github@shopify.com>
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.

4 participants