Pipelines build received `ActiveStorage::IntegrityError` error while running Ruby on Rails API

XMLWordPrintable

    • 6
    • Severity 1 - Critical
    • 4,206

      Issue Summary

      Build start failing with `ActiveStorage::IntegrityError` error while running Ruby on Rails in Pipelines.
      This issue happens after pipelines upgrade Kubernetes FlatcarOS to v2765.2.2 on 4th May 2021
      Infrastructure changes in Bitbucket Pipelines

      Steps to Reproduce

      The smallest test case demonstrating the problem appears to be this ruby script (copied from docker/for-mac#5570)

      require 'fileutils'
      require 'tempfile'
      tempfile_1 = Tempfile.new(['tempfile_1', ".txt"])
      FileUtils.cp('bitbucket-pipelines.yml', tempfile_1.path)
      tempfile_2 = Tempfile.new(['tempfile_2', ".txt"])
      FileUtils.cp(tempfile_1.path, tempfile_2.path)
      puts tempfile_2.read # will be empty, but should not be
      

      https://github.com/rails/rails/issues/41991#issuecomment-839430133

      Expected Results

      Rerunning the same succeded build before OS upgrade should show the same outcome

      Actual Results

      The build failed with following error:

      ActiveStorage::IntegrityError
      

      Workaround

      Reach out to support team with the failed Build's URL as we have a temporary workaround for the issue while our infrastructure team working on a permanent solution.

            Assignee:
            Unassigned
            Reporter:
            Ronald C.
            Votes:
            12 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: