On Bitbuckets pipelines, whenever I try to run a bundle exec rspec
that contains rspec test that uses Active Storage I get the following error, for every of these tests:
ActiveStorage::IntegrityError:
ActiveStorage::IntegrityError
# ./spec/requests/api/v1/spa_clients/identity_providers/update_spec.rb:127:in `block (3 levels) in <top (required)>'
# ./spec/requests/api/v1/spa_clients/identity_providers/update_spec.rb:135:in `block (3 levels) in <top (required)>'
This is weird since:
I am really struggling to get more ideas to how to find a solution.
Edit with answer:
Answer from the atlassian team to our contact: "Based on our investigation, we notice that the FlatcarOS upgrade (v2765.2.2) had introduced a bug that caused builds that uses Ruby/Rails or yarn/npm package to fail.". Their temp solution is to rollback to previously working solution.
I've made contact with the support team and they replied me that they are aware about the issue, for now they have a temporary fix if you give you repository information.
This is the BUG: