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

Random failure on CI #266

Open
tagliala opened this issue Oct 11, 2024 · 2 comments
Open

Random failure on CI #266

tagliala opened this issue Oct 11, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@tagliala
Copy link
Contributor

Ref: https://github.com/igorkasyanchuk/active_storage_validations/actions/runs/11288843453/job/31397452279?pr=265#step:7:141

Got it on both 7.2/vips and 7.0 mini_magick

Error:
ActiveStorageValidations::Test#test_dimensions_with_attached_StringIO:
Errno::ENOENT: No such file or directory @ rb_file_s_size - /tmp/image_1920x108020241011-2769-7xqr6w.png
    vendor/bundle/ruby/3.3.0/gems/mini_magick-5.0.1/lib/mini_magick/image/info.rb:51:in `size'
    vendor/bundle/ruby/3.3.0/gems/mini_magick-5.0.1/lib/mini_magick/image/info.rb:51:in `block in cheap_info'
    vendor/bundle/ruby/3.3.0/gems/mini_magick-5.0.1/lib/mini_magick/image/info.rb:40:in `fetch'
    vendor/bundle/ruby/3.3.0/gems/mini_magick-5.0.1/lib/mini_magick/image/info.rb:40:in `cheap_info'
    vendor/bundle/ruby/3.3.0/gems/mini_magick-5.0.1/lib/mini_magick/image/info.rb:17:in `[]'
    vendor/bundle/ruby/3.3.0/gems/mini_magick-5.0.1/lib/mini_magick/image.rb:123:in `block in attribute'
    lib/active_storage_validations/metadata.rb:32:in `block in metadata'
    lib/active_storage_validations/metadata.rb:98:in `read_image'
    lib/active_storage_validations/metadata.rb:28:in `metadata'
    lib/active_storage_validations/dimension_validator.rb:66:in `block in validate_each'
    lib/active_storage_validations/dimension_validator.rb:65:in `each'
    lib/active_storage_validations/dimension_validator.rb:65:in `validate_each'
    vendor/bundle/ruby/3.3.0/gems/activemodel-7.0.8.4/lib/active_model/validator.rb:153:in `block in validate'
    vendor/bundle/ruby/3.3.0/gems/activemodel-7.0.8.4/lib/active_model/validator.rb:[149](https://github.com/igorkasyanchuk/active_storage_validations/actions/runs/11288843453/job/31397452279?pr=265#step:7:150):in `each'
@Mth0158
Copy link
Collaborator

Mth0158 commented Oct 13, 2024

Hi @tagliala
I have no idea yet why it's behaving this way, it could be a regression due to the latest merged PR (#256). I'll dedicate some time this week to look into it, thks for the issue!

@Mth0158 Mth0158 added the bug Something isn't working label Oct 13, 2024
@tagliala
Copy link
Contributor Author

Hi, thanks.

I think it may depend by bundle update for some reasons. I'm checking too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants