From e66bcde7bb0fd5d1dcd2309d8738e2d0a617c18d Mon Sep 17 00:00:00 2001 From: Karthik Nadig Date: Fri, 31 Jan 2020 17:46:47 -0800 Subject: [PATCH 1/2] Add timeouts --- azure-pipelines/linux-coverage.yaml | 1 + azure-pipelines/mac-coverage.yaml | 1 + azure-pipelines/pipelines.yaml | 4 ++++ azure-pipelines/win-coverage.yaml | 1 + 4 files changed, 7 insertions(+) diff --git a/azure-pipelines/linux-coverage.yaml b/azure-pipelines/linux-coverage.yaml index 24942436..6725e2c6 100644 --- a/azure-pipelines/linux-coverage.yaml +++ b/azure-pipelines/linux-coverage.yaml @@ -4,6 +4,7 @@ variables: jobs: - job: 'Coverage' + timeoutInMinutes: 15 pool: name: Azure Pipelines demands: java diff --git a/azure-pipelines/mac-coverage.yaml b/azure-pipelines/mac-coverage.yaml index d708b511..49193d86 100644 --- a/azure-pipelines/mac-coverage.yaml +++ b/azure-pipelines/mac-coverage.yaml @@ -4,6 +4,7 @@ variables: jobs: - job: 'Coverage' + timeoutInMinutes: 15 pool: name: Azure Pipelines demands: java diff --git a/azure-pipelines/pipelines.yaml b/azure-pipelines/pipelines.yaml index 487eb93e..3db1b6bb 100644 --- a/azure-pipelines/pipelines.yaml +++ b/azure-pipelines/pipelines.yaml @@ -3,6 +3,7 @@ variables: jobs: - job: "Lint" + timeoutInMinutes: 15 displayName: "Lint" pool: { vmImage: "ubuntu-16.04" } @@ -30,6 +31,7 @@ jobs: displayName: "Publish linting results" - job: "Test_Linux" + timeoutInMinutes: 15 displayName: "Tests - Linux" pool: { vmImage: "ubuntu-16.04" } @@ -57,6 +59,7 @@ jobs: - template: "templates/run_tests.yml" - job: "Test_MacOS" + timeoutInMinutes: 15 displayName: "Tests - macOS" pool: { vmImage: "macOS-10.13" } @@ -87,6 +90,7 @@ jobs: - template: "templates/run_tests.yml" - job: "Test_Windows" + timeoutInMinutes: 15 displayName: "Tests - Windows" pool: { vmImage: "vs2017-win2016" } diff --git a/azure-pipelines/win-coverage.yaml b/azure-pipelines/win-coverage.yaml index d3794515..8524acbd 100644 --- a/azure-pipelines/win-coverage.yaml +++ b/azure-pipelines/win-coverage.yaml @@ -4,6 +4,7 @@ variables: jobs: - job: 'Coverage' + timeoutInMinutes: 15 pool: name: Azure Pipelines demands: java From 7fe4f975bd00bff32572d003d671b24ed8bec7af Mon Sep 17 00:00:00 2001 From: Karthik Nadig Date: Fri, 31 Jan 2020 21:47:58 -0800 Subject: [PATCH 2/2] Fix more coverage issues. --- azure-pipelines/linux-coverage.yaml | 7 ++++++- azure-pipelines/mac-coverage.yaml | 6 +++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/azure-pipelines/linux-coverage.yaml b/azure-pipelines/linux-coverage.yaml index 6725e2c6..afc3aa0b 100644 --- a/azure-pipelines/linux-coverage.yaml +++ b/azure-pipelines/linux-coverage.yaml @@ -10,4 +10,9 @@ jobs: demands: java vmImage: "ubuntu-16.04" steps: - - template: "templates/coverage.yml" \ No newline at end of file + - script: | + sudo apt-get --yes install gdb + sudo sysctl kernel.yama.ptrace_scope=0 + displayName: 'Install gdb' + + - template: "templates/coverage.yml" diff --git a/azure-pipelines/mac-coverage.yaml b/azure-pipelines/mac-coverage.yaml index 49193d86..b0ac327a 100644 --- a/azure-pipelines/mac-coverage.yaml +++ b/azure-pipelines/mac-coverage.yaml @@ -10,4 +10,8 @@ jobs: demands: java vmImage: "macOS-10.13" steps: - - template: "templates/coverage.yml" \ No newline at end of file + - script: | + ulimit -Sn 8192 + displayName: 'Increase file descriptor limit' + + - template: "templates/coverage.yml"