mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[Ops] Fix outstanding typescript issues / re-enable typecheck (#167392)
## Summary This is hopefully the last batch of typescript issues to be fixed, related to https://github.com/elastic/kibana/pull/166813. It's also re-enabling full typecheck, with this, we should be back in a clean, typechecked main branch. Blocked by #167428 --------- Co-authored-by: Brad White <Ikuni17@users.noreply.github.com> Co-authored-by: Brad White <brad.white@elastic.co> Co-authored-by: Thomas Watson <watson@elastic.co> Co-authored-by: Patryk Kopyciński <contact@patrykkopycinski.com> Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
parent
905dcfae51
commit
8a29a5e2ca
5 changed files with 22 additions and 36 deletions
|
@ -154,16 +154,15 @@ steps:
|
|||
- exit_status: '-1'
|
||||
limit: 3
|
||||
|
||||
# TODO: Enable in #166813 after fixing types
|
||||
# - command: .buildkite/scripts/steps/check_types.sh
|
||||
# label: 'Check Types'
|
||||
# agents:
|
||||
# queue: n2-16-spot
|
||||
# timeout_in_minutes: 60
|
||||
# retry:
|
||||
# automatic:
|
||||
# - exit_status: '-1'
|
||||
# limit: 3
|
||||
- command: .buildkite/scripts/steps/check_types.sh
|
||||
label: 'Check Types'
|
||||
agents:
|
||||
queue: n2-16-spot
|
||||
timeout_in_minutes: 60
|
||||
retry:
|
||||
automatic:
|
||||
- exit_status: '-1'
|
||||
limit: 3
|
||||
|
||||
- command: .buildkite/scripts/steps/storybooks/build_and_upload.sh
|
||||
label: 'Build Storybooks'
|
||||
|
|
|
@ -136,13 +136,12 @@ steps:
|
|||
- exit_status: '-1'
|
||||
limit: 3
|
||||
|
||||
# TODO: Enable in #166813 after fixing types
|
||||
# - command: .buildkite/scripts/steps/check_types.sh
|
||||
# label: 'Check Types'
|
||||
# agents:
|
||||
# queue: n2-16-spot
|
||||
# timeout_in_minutes: 60
|
||||
# retry:
|
||||
# automatic:
|
||||
# - exit_status: '-1'
|
||||
# limit: 3
|
||||
- command: .buildkite/scripts/steps/check_types.sh
|
||||
label: 'Check Types'
|
||||
agents:
|
||||
queue: n2-16-spot
|
||||
timeout_in_minutes: 60
|
||||
retry:
|
||||
automatic:
|
||||
- exit_status: '-1'
|
||||
limit: 3
|
||||
|
|
|
@ -1,10 +0,0 @@
|
|||
steps:
|
||||
- command: .buildkite/scripts/steps/check_types_commits.sh
|
||||
label: 'Check Types Commit Diff'
|
||||
agents:
|
||||
queue: n2-16-spot
|
||||
timeout_in_minutes: 60
|
||||
retry:
|
||||
automatic:
|
||||
- exit_status: '-1'
|
||||
limit: 3
|
|
@ -59,12 +59,6 @@ const uploadPipeline = (pipelineContent: string | object) => {
|
|||
pipeline.push(getPipeline('.buildkite/pipelines/pull_request/kbn_handlebars.yml'));
|
||||
}
|
||||
|
||||
if (GITHUB_PR_LABELS.includes('ci:hard-typecheck')) {
|
||||
pipeline.push(getPipeline('.buildkite/pipelines/pull_request/type_check.yml'));
|
||||
} else {
|
||||
pipeline.push(getPipeline('.buildkite/pipelines/pull_request/type_check_selective.yml'));
|
||||
}
|
||||
|
||||
if (
|
||||
(await doAnyChangesMatch([
|
||||
/^src\/plugins\/controls/,
|
||||
|
|
|
@ -2,6 +2,10 @@
|
|||
|
||||
set -euo pipefail
|
||||
|
||||
# This script will collect typescript projects and run typecheck on projects between the given 2 parameters
|
||||
# Could be used for selective typechecking on projects that might be affected for a given PR.
|
||||
# (The accuracy for finding related projects is not a 100%)
|
||||
|
||||
if [[ "${CI-}" == "true" ]]; then
|
||||
.buildkite/scripts/bootstrap.sh
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue