-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Fix Typecheck & type errors #166813
Fix Typecheck & type errors #166813
Conversation
3a0900e
to
553731b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shared UX code changes LGTM.
## Summary This PR is the core part of #166813. The original work seems to grow large, and we'd like to enable a preventive check beforehand to prevent more errors from entering the codebase. The idea is to have a selective type check that would only check changed files' projects. - [x] when there's no extra label, run the selective type check only on the diffing files' projects (success: https://buildkite.com/elastic/kibana-pull-request/builds/161837) - [x] when the label `ci:hard-typecheck` is present, run the regular (but now, working) full typecheck (expected to fail: ) cc: @watson --------- Co-authored-by: Brad White <[email protected]> Co-authored-by: Thomas Watson <[email protected]> Co-authored-by: Thomas Watson <[email protected]> Co-authored-by: Kibana Machine <[email protected]>
should fix the file overwrite errors |
6d16e1f
to
886aeae
Compare
💔 Build FailedFailed CI Steps
Test Failures
Metrics [docs]Public APIs missing comments
Async chunks
Public APIs missing exports
Page load bundle
Unknown metric groupsAPI count
ESLint disabled line counts
Total ESLint disabled count
HistoryTo update your PR or re-run it, just comment with: |
## Summary We're breaking #166813 up into smaller PRs in the interest of getting PRs through sooner for type fixes. These are the changes for APM UI.
## Summary We're breaking #166813 up into smaller PRs in the interest of getting PRs through sooner for type fixes. These are the changes for Enterprise Search Frontend. --------- Co-authored-by: Alex Szabo <[email protected]>
## Summary We're breaking #166813 up into smaller PRs in the interest of getting PRs through sooner for type fixes. These are the changes for ML UI. --------- Co-authored-by: Dima Arnautov <[email protected]>
## Summary We're breaking #166813 up into smaller PRs in the interest of getting PRs through sooner for type fixes. These are the changes for Platform Deployment Management. Co-authored-by: Kibana Machine <[email protected]>
Closing in favor of all referenced issues :) |
## Summary We're breaking #166813 up into smaller PRs in the interest of getting PRs through sooner for type fixes. These are the changes for `x-pack/test_serverless`. ## Reviewers There are no code owners for these files, so I'm using the recently edited suggestions --------- Co-authored-by: Alex Szabo <[email protected]> Co-authored-by: Thomas Watson <[email protected]> Co-authored-by: Alex Szabo <[email protected]> Co-authored-by: Thomas Watson <[email protected]> Co-authored-by: Kibana Machine <[email protected]>
## Summary We're breaking #166813 up into smaller PRs in the interest of getting PRs through sooner for type fixes. These are the changes for `x-pack/test`. --------- Co-authored-by: Thomas Watson <[email protected]> Co-authored-by: Kibana Machine <[email protected]> Co-authored-by: Alex Szabo <[email protected]>
## Summary This is hopefully the last batch of typescript issues to be fixed, related to #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 <[email protected]> Co-authored-by: Brad White <[email protected]> Co-authored-by: Thomas Watson <[email protected]> Co-authored-by: Patryk Kopyciński <[email protected]> Co-authored-by: Kibana Machine <[email protected]>
…c#167392) ## Summary This is hopefully the last batch of typescript issues to be fixed, related to elastic#166813. It's also re-enabling full typecheck, with this, we should be back in a clean, typechecked main branch. Blocked by elastic#167428 --------- Co-authored-by: Brad White <[email protected]> Co-authored-by: Brad White <[email protected]> Co-authored-by: Thomas Watson <[email protected]> Co-authored-by: Patryk Kopyciński <[email protected]> Co-authored-by: Kibana Machine <[email protected]> (cherry picked from commit 8a29a5e) # Conflicts: # .buildkite/pipelines/pull_request/base.yml # .buildkite/scripts/steps/check_types_commits.sh
Summary
These are fixes for Typescript issues that crept in in the past ~1 month, while Typescript was on a summer break.
Summary of the original error
(1) The
@kbn/dev-cli-runner
and@kbn/dev-proc-runner
packages (used to spawn child processes during development and CI) suffered from an issue where if the child process crashes, it would be treated as if it exited with a 0 exit-code (success).(2) We started hitting memory limits with the type-checking, resulting in out-of-memory (OOM) errors. These would terminate the type-checking code, and our runner (because of (1)) would yield a 0 exit code, thus marking the type-check step green.
With (2) being present, we basically allowed code with type-errors to pass these checks, which in turn has landed in main in the past ~4 weeks.
We've addressed (1), and we're now cleaning up the currently present type errors from the past few weeks.