• Furkan Ayhan's avatar
    Allow cross-db transaction for Build#drop_with_exit_code! · b14c9af4
    Furkan Ayhan authored
    When dropping a build with this method, it wraps the execution with
    a transaction.
    
    If this build;
    - Configured as auto-retry
    - Has a pipeline related to an MR
    - Has a TODO with that MR
    Then Ci::RetryBuildService;
    - Retries the job
    - Closes the TODO
    
    And those two updates should not be in a single transaction because
    they refer to different DBs.
    
    The next step is to remove this cross-db transaction.
    b14c9af4
build.rb 36.1 KB