Skip to content

Conversation

DonJayamanne
Copy link
Contributor

Fixes #7583

@@ -1913,22 +1913,6 @@ Expand each section to see more information about that event.
Common measurement used across a number of events.


* DS_INTERNAL.INTERPRETER_LISTING_PERF (Telemetry.InterpreterListingPerf)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This telemetry is no longer valid, as we no longer have an API to fetch all python enviornments.

@codecov-commenter
Copy link

codecov-commenter commented Oct 17, 2022

Codecov Report

Merging #11674 (3579213) into main (1b7f10d) will decrease coverage by 0%.
The diff coverage is 74%.

@@          Coverage Diff           @@
##            main   #11674   +/-   ##
======================================
- Coverage     62%      62%   -1%     
======================================
  Files        483      483           
  Lines      34335    34415   +80     
  Branches    5564     5596   +32     
======================================
+ Hits       21577    21617   +40     
- Misses     10708    10730   +22     
- Partials    2050     2068   +18     
Impacted Files Coverage Δ
...els/raw/finder/pythonKernelInterruptDaemon.node.ts 20% <0%> (ø)
src/notebooks/controllers/kernelRanking/helpers.ts 58% <ø> (+1%) ⬆️
src/platform/api/types.ts 100% <ø> (ø)
src/platform/interpreter/contracts.ts 100% <ø> (ø)
src/telemetry.ts 7% <ø> (+<1%) ⬆️
...otebooks/controllers/controllerPreferredService.ts 76% <51%> (-11%) ⬇️
src/platform/common/utils/misc.ts 82% <60%> (-1%) ⬇️
src/platform/api/pythonApi.ts 69% <75%> (+<1%) ⬆️
src/kernels/common/commonFinder.ts 85% <100%> (-15%) ⬇️
src/kernels/raw/finder/localKernelFinder.node.ts 88% <100%> (+9%) ⬆️
... and 29 more


this.updateCache().catch(noop);

if (Array.isArray(kernelsFromCache) && kernelsFromCache.length > 0) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to cache anything anymore, seems pointless and complicated.
Can add this later if we need this.

@traceDecoratorVerbose('Get Interpreters', TraceOptions.Arguments | TraceOptions.BeforeCall)
public getInterpreters(): Promise<PythonEnvironment[]> {
const stopWatch = new StopWatch();
private getInterpreters(): Promise<PythonEnvironment[]> {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The method getInterrpeters is no longer used, we will not rely on a push model completely.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fortunately this was used only in a couple of places in the extension code.

@@ -72,11 +71,6 @@ export abstract class LocalKernelSpecFinderBase<
disposables.push(this);
}

@testOnlyMethod()
public clearCache() {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unused

@DonJayamanne DonJayamanne marked this pull request as ready for review October 17, 2022 22:31
@DonJayamanne DonJayamanne merged commit 948cfcc into main Oct 18, 2022
@DonJayamanne DonJayamanne deleted the lazyLoadInterpreters branch October 18, 2022 03:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Adopt new Python extensions non-blocking API for interpreter disocvery
3 participants