Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: various improvements #13660

Merged
merged 1 commit into from
Oct 20, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 17 additions & 17 deletions .azure-pipelines/pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,23 +70,23 @@ stages:
inputs:
pathtoPublish: "$(Build.SourcesDirectory)/generated/docs"
artifactName: docs
condition: and(succeeded(), eq(variables['Build.Reason'], 'PullRequest'))

- task: InstallSSHKey@0
inputs:
hostName: "github.com ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAq2A7hRGmdnm9tUDbO9IDSwBK6TbQa+PXYPCPy6rbTrTtw7PHkccKrpp0yVhp5HdEIcKr6pLlVDBfOLX9QUsyCOV0wzfjIJNlGEYsdlLJizHhbn2mUjvSAHQqZETYP81eFzLQNnPHt4EVVUh7VfDESU84KezmD5QlWpXLmvU31/yMf+Se8xhHTvKSCZIFImWwoG6mbUoWf9nzpIoaSjB+weqqUUmpaaasXVal72J+UX2B+2RPW3RcT0eOzQgqlJL3RKrTJvdsjE3JEAvGq3lGHSZXy28G3skua2SmVi/w4yCE6gbODqnTWlg7+wC604ydGXA8VJiS5ap43JXiUFFAaQ=="
sshPublicKey: "$(DocsPublicKey)"
sshPassphrase: "$(SshDeployKeyPassphrase)"
sshKeySecureFile: "$(DocsPrivateKey)"
condition: and(succeeded(), ne(variables['Build.Reason'], 'PullRequest'), eq(variables['PostSubmit'], true))
condition: and(succeeded(), eq(variables['PostSubmit'], true), ne(variables['NoSync'], true))

- script: docs/publish.sh
displayName: "Publish to GitHub"
workingDirectory: $(Build.SourcesDirectory)
env:
AZP_BRANCH: $(Build.SourceBranch)
AZP_SHA1: $(Build.SourceVersion)
condition: and(succeeded(), ne(variables['Build.Reason'], 'PullRequest'), eq(variables['PostSubmit'], true))
condition: and(succeeded(), eq(variables['PostSubmit'], true), ne(variables['NoSync'], true))

- job: dependencies
dependsOn: [] # this removes the implicit dependency on previous stage and causes this to run in parallel.
pool:
Expand All @@ -102,9 +102,8 @@ stages:
GITHUB_TOKEN: $(GitHubPublicRepoOnlyAccessToken)
displayName: "Verify dependency information"


- stage: sync
condition: and(succeeded(), eq(variables['PostSubmit'], true))
condition: and(succeeded(), eq(variables['PostSubmit'], true), ne(variables['NoSync'], true))
dependsOn: []
jobs:
- job: filter_example
Expand Down Expand Up @@ -145,6 +144,8 @@ stages:

- job: go_control_plane
dependsOn: []
pool:
vmImage: "ubuntu-18.04"
steps:
- task: InstallSSHKey@0
inputs:
Expand All @@ -167,12 +168,11 @@ stages:

- stage: linux_x64
dependsOn: ["precheck"]
# For master builds, continue even if precheck fails
condition: and(not(canceled()), or(succeeded(), ne(variables['Build.Reason'], 'PullRequest')))
# For post-submit builds, continue even if precheck fails
condition: and(not(canceled()), or(succeeded(), eq(variables['PostSubmit'], true)))
jobs:
- job: release
# For master builds, continue even if format fails
timeoutInMinutes: 360
timeoutInMinutes: 120
pool:
vmImage: "ubuntu-18.04"
steps:
Expand All @@ -182,11 +182,11 @@ stages:

- stage: linux_arm64
dependsOn: ["precheck"]
# For master builds, continue even if precheck fails
condition: and(not(canceled()), or(succeeded(), ne(variables['Build.Reason'], 'PullRequest')))
# For post-submit builds, continue even if precheck fails
condition: and(not(canceled()), or(succeeded(), eq(variables['PostSubmit'], true)))
jobs:
- job: release
timeoutInMinutes: 360
timeoutInMinutes: 120
pool: "arm-large"
steps:
- template: bazel.yml
Expand Down Expand Up @@ -218,7 +218,7 @@ stages:
CI_TARGET: "bazel.tsan"
compile_time_options:
CI_TARGET: "bazel.compile_time_options"
timeoutInMinutes: 360
timeoutInMinutes: 120
pool:
vmImage: "ubuntu-18.04"
steps:
Expand All @@ -229,7 +229,7 @@ stages:
- job: coverage
displayName: "linux_x64"
dependsOn: []
timeoutInMinutes: 360
timeoutInMinutes: 120
pool: "x64-large"
strategy:
maxParallel: 2
Expand Down Expand Up @@ -328,7 +328,7 @@ stages:
dependsOn: ["precheck"]
jobs:
- job: test
timeoutInMinutes: 360
timeoutInMinutes: 180
pool:
vmImage: "macos-latest"
steps:
Expand Down Expand Up @@ -362,7 +362,7 @@ stages:
dependsOn: ["precheck"]
jobs:
- job: release
timeoutInMinutes: 360
timeoutInMinutes: 120
pool:
vmImage: "windows-latest"
steps:
Expand All @@ -383,7 +383,7 @@ stages:

- job: docker
dependsOn: ["release"]
timeoutInMinutes: 360
timeoutInMinutes: 120
pool:
vmImage: "windows-latest"
steps:
Expand Down