boklm pushed to branch main at The Tor Project / Applications / tor-browser-bundle-testsuite

Commits:

1 changed file:

Changes:

  • TBBTestSuite/TestSuite/TorBrowserBuildGitlabPipelines.pm
    ... ... @@ -112,8 +112,15 @@ sub gitlab_pipeline {
    112 112
         my $status = get_pipeline_status($pipeline_id);
    
    113 113
         $test->{pipeline_status} = $status;
    
    114 114
         $test->{results}{success} = 1 if $status eq 'success';
    
    115
    -    $test->{failed_jobs} = get_failed_jobs($pipeline_id)
    
    116
    -        if $status eq 'failed';
    
    115
    +    $test->{failed_jobs} = get_failed_jobs($pipeline_id);
    
    116
    +    # tor-browser-bundle-testsuite#40125
    
    117
    +    # Since jobs are configured with `allow_failure: true` to avoid stopping
    
    118
    +    # at the first failed job, gitlab will set the pipeline result as success
    
    119
    +    # even if some jobs failed. Here we change the result to failure if we
    
    120
    +    # have at least one failed job.
    
    121
    +    if ($test->{results}{success} && @{$test->{failed_jobs}}) {
    
    122
    +      $test->{results}{success} = 0;
    
    123
    +    }
    
    117 124
     }
    
    118 125
     
    
    119 126
     sub set_tests {