Skip to content

Commit

Permalink
[ci] Run linting before tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jbudz committed Oct 22, 2024
1 parent f629d96 commit 6d52cb8
Show file tree
Hide file tree
Showing 30 changed files with 93 additions and 30 deletions.
51 changes: 36 additions & 15 deletions .buildkite/pipelines/on_merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,21 @@ steps:
- exit_status: '-1'
limit: 3

- command: .buildkite/scripts/steps/lint.sh
label: 'Linting'
agents:
image: family/kibana-ubuntu-2004
imageProject: elastic-images-prod
provider: gcp
machineType: n2-standard-16
preemptible: true
key: linting
timeout_in_minutes: 60
retry:
automatic:
- exit_status: '-1'
limit: 3

- wait

- command: .buildkite/scripts/steps/on_merge_api_docs.sh
Expand Down Expand Up @@ -109,6 +124,7 @@ steps:
depends_on:
- build
- quick_checks
- linting
timeout_in_minutes: 60
parallelism: 3
retry:
Expand All @@ -127,6 +143,7 @@ steps:
depends_on:
- build
- quick_checks
- linting
timeout_in_minutes: 60
parallelism: 2
retry:
Expand All @@ -145,6 +162,7 @@ steps:
depends_on:
- build
- quick_checks
- linting
timeout_in_minutes: 60
parallelism: 8
retry:
Expand All @@ -163,6 +181,7 @@ steps:
depends_on:
- build
- quick_checks
- linting
timeout_in_minutes: 60
parallelism: 5
retry:
Expand All @@ -181,6 +200,7 @@ steps:
depends_on:
- build
- quick_checks
- linting
timeout_in_minutes: 60
parallelism: 1
retry:
Expand All @@ -199,6 +219,7 @@ steps:
depends_on:
- build
- quick_checks
- linting
timeout_in_minutes: 60
parallelism: 4
retry:
Expand All @@ -217,6 +238,7 @@ steps:
depends_on:
- build
- quick_checks
- linting
timeout_in_minutes: 60
parallelism: 6
retry:
Expand All @@ -235,6 +257,7 @@ steps:
depends_on:
- build
- quick_checks
- linting
timeout_in_minutes: 60
parallelism: 5
retry:
Expand All @@ -253,6 +276,7 @@ steps:
depends_on:
- build
- quick_checks
- linting
timeout_in_minutes: 60
parallelism: 6
retry:
Expand All @@ -271,6 +295,7 @@ steps:
depends_on:
- build
- quick_checks
- linting
timeout_in_minutes: 60
parallelism: 5
retry:
Expand All @@ -289,6 +314,7 @@ steps:
depends_on:
- build
- quick_checks
- linting
timeout_in_minutes: 60
parallelism: 6
retry:
Expand All @@ -307,6 +333,7 @@ steps:
depends_on:
- build
- quick_checks
- linting
timeout_in_minutes: 60
parallelism: 1
retry:
Expand All @@ -325,6 +352,7 @@ steps:
depends_on:
- build
- quick_checks
- linting
timeout_in_minutes: 60
parallelism: 1
retry:
Expand All @@ -343,6 +371,7 @@ steps:
depends_on:
- build
- quick_checks
- linting
timeout_in_minutes: 60
parallelism: 2
retry:
Expand All @@ -361,6 +390,7 @@ steps:
depends_on:
- build
- quick_checks
- linting
timeout_in_minutes: 60
parallelism: 2
retry:
Expand All @@ -379,6 +409,7 @@ steps:
depends_on:
- build
- quick_checks
- linting
timeout_in_minutes: 60
parallelism: 6
retry:
Expand All @@ -397,6 +428,7 @@ steps:
depends_on:
- build
- quick_checks
- linting
timeout_in_minutes: 60
parallelism: 8
retry:
Expand All @@ -415,6 +447,7 @@ steps:
depends_on:
- build
- quick_checks
- linting
timeout_in_minutes: 60
parallelism: 8
retry:
Expand All @@ -435,6 +468,7 @@ steps:
depends_on:
- build
- quick_checks
- linting
timeout_in_minutes: 60
parallelism: 20
retry:
Expand All @@ -455,6 +489,7 @@ steps:
depends_on:
- build
- quick_checks
- linting
timeout_in_minutes: 60
parallelism: 14
retry:
Expand All @@ -468,27 +503,13 @@ steps:
depends_on:
- build
- quick_checks
- linting
agents:
image: family/kibana-ubuntu-2004
imageProject: elastic-images-prod
provider: gcp
machineType: n2-standard-2

- command: .buildkite/scripts/steps/lint.sh
label: 'Linting'
agents:
image: family/kibana-ubuntu-2004
imageProject: elastic-images-prod
provider: gcp
machineType: n2-standard-8
preemptible: true
key: linting
timeout_in_minutes: 60
retry:
automatic:
- exit_status: '-1'
limit: 3

- command: .buildkite/scripts/steps/lint_with_types.sh
label: 'Linting (with types)'
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 @@ -7,6 +7,7 @@ steps:
depends_on:
- build
- quick_checks
- linting
timeout_in_minutes: 120
parallelism: 1 # TODO: Set parallelism when apm_cypress handles it
retry:
Expand Down
24 changes: 12 additions & 12 deletions .buildkite/pipelines/pull_request/base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,18 @@ steps:
- exit_status: '-1'
limit: 3

- command: .buildkite/scripts/steps/lint.sh
label: 'Linting'
agents:
machineType: n2-standard-16
preemptible: true
key: linting
timeout_in_minutes: 60
retry:
automatic:
- exit_status: '-1'
limit: 3

- wait

- command: .buildkite/scripts/steps/ci_stats_ready.sh
Expand Down Expand Up @@ -61,18 +73,6 @@ steps:
- exit_status: '*'
limit: 1

- command: .buildkite/scripts/steps/lint.sh
label: 'Linting'
agents:
machineType: n2-standard-8
preemptible: true
key: linting
timeout_in_minutes: 60
retry:
automatic:
- exit_status: '-1'
limit: 3

- command: .buildkite/scripts/steps/check_types.sh
label: 'Check Types'
agents:
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 @@ -7,6 +7,7 @@ steps:
depends_on:
- build
- quick_checks
- linting
timeout_in_minutes: 30
soft_fail: true
retry:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ steps:
depends_on:
- build
- quick_checks
- linting
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 @@ -7,6 +7,7 @@ steps:
depends_on:
- build
- quick_checks
- linting
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 @@ -7,6 +7,7 @@ steps:
depends_on:
- build
- quick_checks
- linting
timeout_in_minutes: 50
parallelism: 6
retry:
Expand Down
1 change: 1 addition & 0 deletions .buildkite/pipelines/pull_request/inventory_cypress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ steps:
depends_on:
- build
- quick_checks
- linting
timeout_in_minutes: 120
parallelism: 1
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 @@ -7,6 +7,7 @@ steps:
depends_on:
- build
- quick_checks
- linting
timeout_in_minutes: 5
retry:
automatic:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ steps:
depends_on:
- build
- quick_checks
- linting
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 @@ -7,6 +7,7 @@ steps:
depends_on:
- build
- quick_checks
- linting
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 @@ -7,6 +7,7 @@ steps:
depends_on:
- build
- quick_checks
- linting
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 @@ -7,6 +7,7 @@ steps:
depends_on:
- build
- quick_checks
- linting
timeout_in_minutes: 120
retry:
automatic:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ steps:
depends_on:
- build
- quick_checks
- linting
timeout_in_minutes: 60
parallelism: 1
retry:
Expand All @@ -22,6 +23,7 @@ steps:
depends_on:
- build
- quick_checks
- linting
timeout_in_minutes: 60
parallelism: 1
retry:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ steps:
depends_on:
- build
- quick_checks
- linting
timeout_in_minutes: 60
parallelism: 1
retry:
Expand All @@ -22,6 +23,7 @@ steps:
depends_on:
- build
- quick_checks
- linting
timeout_in_minutes: 60
parallelism: 1
retry:
Expand Down
Loading

0 comments on commit 6d52cb8

Please sign in to comment.