Integration tests fail locally when desktop Kusto Explorer data is present (import prompt blocks activation)
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 76/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- typescript, vscode
Línea de trabajo
Comienza en src/Client/.vscode-test.mjs e inspecciona los launchArgs de la prueba de integración y la configuración del perfil de prueba. Ejecuta npm run test:integration con un perfil nuevo de src/Client/.vscode-test/user-data y con datos de escritorio de Kusto Explorer presentes; se considera terminado cuando la suite ya no muestra el fallo de la solicitud de importación y la prueba ScratchPad1 pasa.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Problem
npm run test:integration fails for a developer who has desktop Kusto Explorer data on their machine:
1) ScratchPad1 document is open by default:
AssertionError [ERR_ASSERTION]: ScratchPad1 should be open after activation
46 passing (21s)
1 failing
The cause appears in the same output:
rejected promise not handled within 1 second: Error: DialogService: refused to show dialog in tests.
Contents: Kusto Explorer connections and query set documents found. Would you like to import them?
The extension prompts to import connections from desktop Kusto Explorer during activation. The test DialogService refuses modal dialogs, that rejection goes unhandled, and activation never completes — so ScratchPad1 is never opened and the assertion fails. The failing test is a symptom; the prompt is the cause.
The suite is not hermetic
The failure depends on machine and profile state rather than on the code under test. Evidence gathered by running the same suite in two worktrees on the same machine, both based on the same main:
| worktree | result |
|---|---|
| one branch | 46 passing, exit 0 — no failure |
| another branch | 46 passing / 1 failing, exit 1 — prompt fired |
Neither branch touches activation, connection import, or the scratchpad. The differentiator is the per-worktree .vscode-test/user-data profile: once a profile has recorded that the import prompt was handled, the prompt stops firing and the suite goes green. A fresh profile plus desktop Kusto Explorer data present on the machine reproduces the failure.
This was also independently controlled for by reverting a branch's changed files to its merge-base and re-running: the identical 46/1 failure persisted, confirming it is not caused by the code under test.
CI is unaffected — hosted runners have no desktop Kusto Explorer installation, so the prompt never fires there and Integration Tests (VS Code) passes. That is precisely why this only bites locally, and only for contributors who actually use the desktop product.
Suggested fix
The extension already contributes a setting for exactly this:
msKustoExplorer.connections.suppressKustoExplorerImportPrompt (boolean, default false)
.vscode-test.mjs currently passes only:
launchArgs: [
"--disable-updates",
"--skip-release-notes",
"--user-data-dir", ".vscode-test/user-data",
],
Seeding that setting to true for the test profile — or otherwise stubbing the desktop-import detection during integration runs — would make the suite independent of whether the developer has desktop Kusto Explorer installed.
Separately, the unhandled promise rejection is worth a look on its own: a refused or dismissed dialog blocking activation is a failure mode that could plausibly affect real users who dismiss the prompt in an unexpected way, not just tests.
Reproduction
- Have desktop Kusto Explorer connections/query sets present on the machine.
- Delete
src/Client/.vscode-test/user-dataso the test profile is fresh. npm run test:integrationfromsrc/Client.
- Lenguaje dominante
- TypeScript
- Estrellas
- 6
- Forks
- 7
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de microsoft/Kusto-Explorer-VsCode
-
copilot-instructions.md documents `dotnet test` for server tests, which fails on .NET 10Posiblemente ocupada @miachillgood la tomó hace 32 días. Abiertodocumentation
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
-
Remote-SSH: browser sign-in on every query; prefer VS Code authentication before native authAbierto
Dificultad 4/5 3-5 días Aptitud para principiantes 68/100
-
Schema cache stores ~950KB in globalState, triggering VS Code's large-extension-state warningAbiertoenhancement
Dificultad 4/5 3-5 días Aptitud para principiantes 68/100
-
Results grid: show Count/Sum/Avg/Min/Max for selected numeric cells in a status barPosiblemente ocupada @AsafMah la tomó hace 50 días. Abiertoenhancement
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
microsoft/Kusto-Explorer-VsCode#143 · 1 comentario ·
-
Add a setting to scope the query CodeLens to the active queryPosiblemente ocupada @AsafMah la tomó hace 49 días. Abiertoenhancement
Dificultad 4/5 3-5 días Aptitud para principiantes 68/100
Todos los issues de microsoft/Kusto-Explorer-VsCode
Issues similares
-
Unsampled pageload span is profiled when profileLifecycle is 'trace' (browser UI profiling)Posiblemente ocupada @Jxxunnn la tomó hoy. AbiertoBrowser Waiting for: Product Owner
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
getsentry/sentry-javascript#25497 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
e2e-failure ready-to-code
Dificultad 2/5 1-3 horas Aptitud para principiantes 77/100
redhat-developer/rhdh-plugin-export-overlays#4438 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
resource: destroying a resource calls AbortController.abort() without a reason, creating an AbortError with a stack trace each timePosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abiertoarea: core
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
angular/angular#71422 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
bug status: needs triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
facebook/docusaurus#12739 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
factory-active task-identify-harness-labels-done task-identify-issue-type-done
Dificultad 1/5 1-3 horas Aptitud para principiantes 68/100
vercel/ai#23537 · 1 comentario ·
Los mantenedores suelen responder en 1 día