Skip to content
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 query editor smoke test race condition #6213

Closed
wants to merge 2 commits into from

Conversation

Charles-Gagnon
Copy link
Contributor

Should fix #6110 - see comment for explanation

import * as fs from 'fs';
import * as os from 'os';
import * as path from 'path';

export function setup() {
describe('Query Editor Test Suite', () => {
before(async function () {
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not sure why this would change anything. This is already done here

await app.workbench.quickopen.runCommand(waitForExtensionsCommand);
.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Well shoot, yeah I saw that but for some reason thought we were doing a reload of the app after waiting. The issue is definitely because focus is being taken from the query window though - although why that's happening after the service should be done downloading I'm not sure...it doesn't repro consistently enough to really help here.

I'll try changing it to just specifically focus the query pane before typing the text - that should also solve the problem unless the focus stealing is happening even after the download is finished.

Copy link
Contributor

Choose a reason for hiding this comment

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

it this is being caused because of the service downloading, you could change the output channel logic in the extensions to not continuously open the output log. https://github.com/microsoft/azuredatastudio/blob/master/extensions/mssql/src/main.ts#L365 I have been thinking about doing this, but its been low pri since it has no user impact on our releases since we never download new service binaries for releases.

@Charles-Gagnon Charles-Gagnon deleted the fix/smokeTestRace branch July 17, 2019 22: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.

Automated build failed due to smoke test failure
3 participants