Skip to content

Commit

Permalink
[8.15][ci] Run type checking before tests (#197539) (#198427)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbudz authored Oct 31, 2024
1 parent 3219dc8 commit 6da64f6
Show file tree
Hide file tree
Showing 26 changed files with 60 additions and 86 deletions.
90 changes: 17 additions & 73 deletions .buildkite/pipelines/on_merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ steps:
provider: gcp
machineType: n2-highcpu-8
preemptible: true
key: quick_checks
timeout_in_minutes: 60
retry:
automatic:
Expand All @@ -76,7 +75,6 @@ steps:
provider: gcp
machineType: n2-standard-16
preemptible: true
key: linting
timeout_in_minutes: 60
retry:
automatic:
Expand All @@ -91,8 +89,23 @@ steps:
provider: gcp
machineType: n2-standard-32
preemptible: true
key: linting_with_types
timeout_in_minutes: 90
timeout_in_minutes: 60
retry:
automatic:
- exit_status: '-1'
limit: 3

- command: .buildkite/scripts/steps/check_types.sh
label: 'Check Types'
agents:
image: family/kibana-ubuntu-2004
imageProject: elastic-images-prod
provider: gcp
machineType: c4-standard-4
diskType: 'hyperdisk-balanced'
preemptible: true
spotZones: us-central1-a,us-central1-b,us-central1-c
timeout_in_minutes: 60
retry:
automatic:
- exit_status: '-1'
Expand Down Expand Up @@ -158,11 +171,6 @@ steps:
provider: gcp
machineType: n2-standard-4
preemptible: true
depends_on:
- build
- quick_checks
- linting
- linting_with_types
timeout_in_minutes: 60
parallelism: 4
retry:
Expand All @@ -178,11 +186,6 @@ steps:
provider: gcp
machineType: n2-standard-4
preemptible: true
depends_on:
- build
- quick_checks
- linting
- linting_with_types
timeout_in_minutes: 60
parallelism: 6
retry:
Expand All @@ -198,11 +201,6 @@ steps:
provider: gcp
machineType: n2-standard-4
preemptible: true
depends_on:
- build
- quick_checks
- linting
- linting_with_types
timeout_in_minutes: 60
parallelism: 5
retry:
Expand All @@ -218,11 +216,6 @@ steps:
provider: gcp
machineType: n2-standard-4
preemptible: true
depends_on:
- build
- quick_checks
- linting
- linting_with_types
timeout_in_minutes: 60
parallelism: 6
retry:
Expand All @@ -238,11 +231,6 @@ steps:
provider: gcp
machineType: n2-standard-4
preemptible: true
depends_on:
- build
- quick_checks
- linting
- linting_with_types
timeout_in_minutes: 60
parallelism: 1
retry:
Expand All @@ -258,11 +246,6 @@ steps:
provider: gcp
machineType: n2-standard-4
preemptible: true
depends_on:
- build
- quick_checks
- linting
- linting_with_types
timeout_in_minutes: 60
parallelism: 2
retry:
Expand All @@ -278,11 +261,6 @@ steps:
provider: gcp
machineType: n2-standard-4
preemptible: true
depends_on:
- build
- quick_checks
- linting
- linting_with_types
timeout_in_minutes: 60
parallelism: 2
retry:
Expand All @@ -298,11 +276,6 @@ steps:
provider: gcp
machineType: n2-standard-4
preemptible: true
depends_on:
- build
- quick_checks
- linting
- linting_with_types
timeout_in_minutes: 60
parallelism: 6
retry:
Expand Down Expand Up @@ -336,11 +309,6 @@ steps:
provider: gcp
machineType: n2-standard-4
preemptible: true
depends_on:
- build
- quick_checks
- linting
- linting_with_types
timeout_in_minutes: 60
parallelism: 8
retry:
Expand All @@ -358,11 +326,6 @@ steps:
localSsds: 1
localSsdInterface: nvme
machineType: n2-standard-4
depends_on:
- build
- quick_checks
- linting
- linting_with_types
timeout_in_minutes: 60
parallelism: 20
retry:
Expand All @@ -373,11 +336,6 @@ steps:
- command: '.buildkite/scripts/steps/functional/on_merge_unsupported_ftrs.sh'
label: Trigger unsupported ftr tests
timeout_in_minutes: 10
depends_on:
- build
- quick_checks
- linting
- linting_with_types
agents:
image: family/kibana-ubuntu-2004
imageProject: elastic-images-prod
Expand All @@ -398,20 +356,6 @@ steps:
- exit_status: '-1'
limit: 3

- command: .buildkite/scripts/steps/check_types.sh
label: 'Check Types'
agents:
image: family/kibana-ubuntu-2004
imageProject: elastic-images-prod
provider: gcp
machineType: n2-standard-4
preemptible: true
timeout_in_minutes: 70
retry:
automatic:
- exit_status: '-1'
limit: 3

- command: .buildkite/scripts/steps/storybooks/build_and_upload.sh
label: 'Build Storybooks'
agents:
Expand Down
1 change: 1 addition & 0 deletions .buildkite/pipelines/pull_request/apm_cypress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ steps:
- quick_checks
- linting
- linting_with_types
- check_types
timeout_in_minutes: 120
parallelism: 1 # TODO: Set parallelism when apm_cypress handles it
retry:
Expand Down
28 changes: 15 additions & 13 deletions .buildkite/pipelines/pull_request/base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,21 @@ steps:
machineType: n2-standard-32
preemptible: true
key: linting_with_types
timeout_in_minutes: 90
timeout_in_minutes: 60
retry:
automatic:
- exit_status: '-1'
limit: 3

- command: .buildkite/scripts/steps/check_types.sh
label: 'Check Types'
agents:
machineType: c4-standard-4
diskType: 'hyperdisk-balanced'
preemptible: true
spotZones: us-central1-a,us-central1-b,us-central1-c
key: check_types
timeout_in_minutes: 60
retry:
automatic:
- exit_status: '-1'
Expand Down Expand Up @@ -85,18 +99,6 @@ steps:
- exit_status: '*'
limit: 1

- command: .buildkite/scripts/steps/check_types.sh
label: 'Check Types'
agents:
machineType: n2-standard-4
preemptible: true
key: check_types
timeout_in_minutes: 70
retry:
automatic:
- exit_status: '-1'
limit: 3

- command: .buildkite/scripts/steps/checks.sh
label: 'Checks'
key: checks
Expand Down
1 change: 1 addition & 0 deletions .buildkite/pipelines/pull_request/deploy_cloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ steps:
- quick_checks
- linting
- linting_with_types
- check_types
timeout_in_minutes: 30
soft_fail: true
retry:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ steps:
- quick_checks
- linting
- linting_with_types
- check_types
timeout_in_minutes: 60
artifact_paths:
- 'x-pack/plugins/observability_solution/exploratory_view/e2e/.journeys/**/*'
Expand Down
1 change: 1 addition & 0 deletions .buildkite/pipelines/pull_request/fips.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ steps:
- quick_checks
- linting
- linting_with_types
- check_types
timeout_in_minutes: 60
soft_fail: true
retry:
Expand Down
1 change: 1 addition & 0 deletions .buildkite/pipelines/pull_request/fleet_cypress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ steps:
- quick_checks
- linting
- linting_with_types
- check_types
timeout_in_minutes: 50
parallelism: 6
retry:
Expand Down
1 change: 1 addition & 0 deletions .buildkite/pipelines/pull_request/kbn_handlebars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ steps:
- quick_checks
- linting
- linting_with_types
- check_types
timeout_in_minutes: 5
retry:
automatic:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ steps:
- quick_checks
- linting
- linting_with_types
- check_types
timeout_in_minutes: 120
retry:
automatic:
Expand Down
1 change: 1 addition & 0 deletions .buildkite/pipelines/pull_request/profiling_cypress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ steps:
- quick_checks
- linting
- linting_with_types
- check_types
timeout_in_minutes: 120
parallelism: 2
retry:
Expand Down
1 change: 1 addition & 0 deletions .buildkite/pipelines/pull_request/response_ops.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ steps:
- quick_checks
- linting
- linting_with_types
- check_types
timeout_in_minutes: 120
parallelism: 9
retry:
Expand Down
1 change: 1 addition & 0 deletions .buildkite/pipelines/pull_request/response_ops_cases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ steps:
- quick_checks
- linting
- linting_with_types
- check_types
timeout_in_minutes: 120
retry:
automatic:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ steps:
- quick_checks
- linting
- linting_with_types
- check_types
timeout_in_minutes: 60
parallelism: 1
retry:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ steps:
- quick_checks
- linting
- linting_with_types
- check_types
timeout_in_minutes: 60
soft_fail: true
parallelism: 1
Expand All @@ -27,6 +28,7 @@ steps:
- quick_checks
- linting
- linting_with_types
- check_types
timeout_in_minutes: 60
parallelism: 1
retry:
Expand All @@ -43,6 +45,7 @@ steps:
- quick_checks
- linting
- linting_with_types
- check_types
timeout_in_minutes: 50
soft_fail: true
retry:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ steps:
- quick_checks
- linting
- linting_with_types
- check_types
timeout_in_minutes: 60
parallelism: 20
retry:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ steps:
- quick_checks
- linting
- linting_with_types
- check_types
timeout_in_minutes: 60
parallelism: 5
retry:
Expand All @@ -26,6 +27,7 @@ steps:
- quick_checks
- linting
- linting_with_types
- check_types
timeout_in_minutes: 60
parallelism: 2
retry:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ steps:
- quick_checks
- linting
- linting_with_types
- check_types
timeout_in_minutes: 60
parallelism: 2
retry:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ steps:
- quick_checks
- linting
- linting_with_types
- check_types
timeout_in_minutes: 60
parallelism: 2
retry:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ steps:
- quick_checks
- linting
- linting_with_types
- check_types
timeout_in_minutes: 60
parallelism: 7
retry:
Expand Down
Loading

0 comments on commit 6da64f6

Please sign in to comment.