summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBundlerbot <bot@bundler.io>2019-03-14 16:47:37 +0000
committerBundlerbot <bot@bundler.io>2019-03-14 16:47:37 +0000
commit236ccf776f1acaca660df7e1f53046b36afb2f9c (patch)
treeae138d761ff7f2b35905cd9400b87729328ef3be
parentb65b0753de844f33a03ebfcc7ef490856f5a72e3 (diff)
parent30ad6bcd2e7c28879490e72697ef172426082678 (diff)
downloadbundler-236ccf776f1acaca660df7e1f53046b36afb2f9c.tar.gz
Merge #7033
7033: Try fix azure flakyness r=deivid-rodriguez a=deivid-rodriguez ### What was the end-user problem that led to this PR? The problem was that sometimes Azure is timing out. My guess is that this is not Azure slowness, but the big amount of failures currently present on the Windows build making it very slow. ### What was your diagnosis of the problem? My diagnosis was that we don't want red Azure builds for now, since we don't yet really fully support Windows. ### What is your fix for the problem, implemented in this PR? My fix is to wrap the job that runs the specs with a [bash timeout](https://linux.die.net/man/1/timeout) with a limit under Azure's one hour limit. ### Why did you choose this fix out of the possible options? I chose this fix because I think it should prevent Azure statuses from getting in the middle for now. Co-authored-by: David Rodríguez <deivid.rodriguez@riseup.net>
-rw-r--r--.azure-pipelines/steps.yml4
1 files changed, 2 insertions, 2 deletions
diff --git a/.azure-pipelines/steps.yml b/.azure-pipelines/steps.yml
index 733ca0998e..b37a79f328 100644
--- a/.azure-pipelines/steps.yml
+++ b/.azure-pipelines/steps.yml
@@ -22,13 +22,13 @@ steps:
- script: |
ruby bin/rake spec:deps
displayName: 'ruby bin/rake spec:deps'
-
+
- script: |
gem install --no-document --conservative rspec_junit_formatter
displayName: 'gem install rspec_junit_formatter'
- script: |
- ruby -r rspec_junit_formatter bin/rspec --format progress --format RspecJunitFormatter -o rspec/bundler-junit-results.xml || exit 0
+ timeout 50m bash -c 'ruby -r rspec_junit_formatter bin/rspec --format progress --format RspecJunitFormatter -o rspec/bundler-junit-results.xml' || exit 0
displayName: 'ruby bin/rspec'
- task: PublishTestResults@2