-
Notifications
You must be signed in to change notification settings - Fork 472
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
test(slowsam): samcli test speed up #5964
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
@@ -15,6 +14,7 @@ import * as vscode from 'vscode' | |||
import globals from '../../extensionGlobals' | |||
import { SamCliSettings } from './samCliSettings' | |||
import { addTelemetryEnvVar, collectSamErrors, SamCliError } from './samCliInvokerUtils' | |||
import { fs } from '../..' |
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.
Avoid importing from index.ts
files in core, it can cause circular dependencies (e.g. we export this file through that index.ts
directly or indirectly). Instead import directly from the file.
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.
Out of curiosity, what purpose does index.js
serve if its not supposed to be imported from? Is it just for exporting to external modules?
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.
Is it just for exporting to external modules?
Yes, it's for the packages/amazon/
and packages/toolkit/
modules, which depend on packages/core/
.
Problem
src/shared/sam/cli/samCliLocator.ts
. This is a known slow process.Solution
Notes
fix #2675
License: I confirm that my contribution is made under the terms of the Apache 2.0 license.