-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Tests for prompting to install missing ipykernel #14266
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -373,6 +373,23 @@ steps: | |
buildPlatform: '$(Agent.Os)-Py$(pythonVersion)' | ||
buildConfiguration: 'SystemTests' | ||
|
||
|
||
# Slow DataScience tests with VS Code | ||
# Create a venv & register it as a kernel. | ||
# These tests are slow hence will only run on linux. | ||
# This env will be used to install ipykernel & test for prompts if ipykernel is missing & similar tests. | ||
# Ensure this is registered as a kernel. | ||
- bash: | | ||
python -m venv .venvnokernel | ||
source .venvnokernel/bin/activate | ||
|
||
python -m pip install ipykernel | ||
python -m ipykernel install --user --name .venvnokernel --display-name .venvnokernel | ||
python -m pip uninstall ipykernel --yes | ||
displayName: 'Prepare Virtual Env for Kernel Tests' | ||
workingDirectory: $(Build.SourcesDirectory)/src/test/datascience | ||
condition: and(succeeded(), contains(variables['TestsToRun'], 'testDataScienceInVSCode')) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. TODO: Only run on linux agent. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is that for linux only even locally? If not then I would think the activate command needs to be different for windows as it doesn't use There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Linux only on CI, locally it will work for Windows. However its upto the engineer to create the venv & ensure it has been registered as a kernel. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @DonJayamanne seems fair. |
||
|
||
# Set the CI_PYTHON_PATH variable that forces VS Code system tests to use | ||
# the specified Python interpreter. | ||
# | ||
|
@@ -438,18 +455,29 @@ steps: | |
env: | ||
DISPLAY: :10 | ||
|
||
# Run the single workspace tests in VS Code Insiders. | ||
# Run the single workspace tests for DS in VS Code Insiders. | ||
- script: | | ||
npm run testDataScience | ||
continueOnError: true | ||
displayName: 'Run DataScience Tests in VSCode Insiders' | ||
condition: and(succeeded(), contains(variables['TestsToRun'], 'testDataScience')) | ||
condition: and(succeeded(), contains(variables['TestsToRun'], 'testDataScience'), not(contains(variables['TestsToRun'], 'testDataScienceInVSCode'))) | ||
env: | ||
DISPLAY: :10 | ||
VSC_PYTHON_CI_TEST_VSC_CHANNEL: 'insiders' | ||
VSC_PYTHON_LOAD_EXPERIMENTS_FROM_FILE: 'true' | ||
TEST_FILES_SUFFIX: 'ds.test' | ||
|
||
# Run the single workspace tests for DS in VS Code Stable. | ||
- script: | | ||
npm run testDataScienceInVSCode | ||
displayName: 'Run DataScience Tests in VSCode Stable' | ||
condition: and(succeeded(), contains(variables['TestsToRun'], 'testDataScienceInVSCode')) | ||
env: | ||
DISPLAY: :10 | ||
VSC_PYTHON_CI_TEST_VSC_CHANNEL: 'stable' | ||
VSC_PYTHON_LOAD_EXPERIMENTS_FROM_FILE: 'true' | ||
TEST_FILES_SUFFIX: 'vscode.test' | ||
|
||
# Upload the test results to Azure DevOps to facilitate test reporting in their UX. | ||
- task: PublishTestResults@2 | ||
displayName: 'Publish single workspace tests results' | ||
|
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.
We usually add an X to the beginning of this.
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.
In this case, this is required.
X
only when its optional.