-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
Provides way to exclude TS project references build from bootstrap #91209
Conversation
Not everyone needs/wants the Typescript project references to be build, resulting in a lot of time for needless waiting. This provides an environment variable they could set, and if needed manually run `node script/build_ts_refs` Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
Pinging @elastic/kibana-core (Team:Core) |
Pinging @elastic/kibana-operations (Team:Operations) |
Actually might just move this check to the |
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
f8d263c
to
8fceb88
Compare
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
8fceb88
to
399d2d4
Compare
@elasticmachine merge upstream |
💔 Build Failed
Failed CI StepsTest FailuresKibana Pipeline / jest / Jest Tests.packages/kbn-utils/src/path.Default path finder should find a data directoryStandard Out
Stack Trace
Metrics [docs]
History
To update your PR or re-run it, just comment with: |
Is there a reason we'd want to build TS references in Does it make more sense to have the CI opt-in to building references with an environment variable, rather than having an end user opt-out? Or is there a use case I'm not understanding? |
@Zacqary, the building of TS references is to address Typescript being otherwise unusable in any IDE, not in CI. The time this task has taken has increased greatly over the past couple of weeks as teams have migrated to project references. I agree that not everyone needs or wants these types to be generated every time, and we need to reach a consensus on that. Some options:
More information on project references: https://github.com/elastic/kibana/blob/master/docs/developer/best-practices/typescript.asciidoc#project-references |
Closing this in favor of not tying the IDE optimization to the bootstrap task by default. |
Not everyone needs/wants the Typescript project references to be built, resulting in a lot of time for needless waiting.
This provides an environment variable they could set, and if needed manually run
node script/build_ts_refs
No longer building TS references in bootstrap on CI will reduce overall CI time by ~8 minutes.