|
98 | 98 | # > python -m pip --disable-pip-version-check install -t ./pythonFiles/lib/python --no-cache-dir --implementation py --no-deps --upgrade -r requirements.txt
|
99 | 99 | - bash: |
|
100 | 100 | python -m pip install --upgrade -r build/test-requirements.txt
|
101 |
| - python -m pip --disable-pip-version-check install -t ./pythonFiles/lib/python --no-cache-dir --implementation py --no-deps --upgrade -r requirements.txt |
102 |
| - python -m pip --disable-pip-version-check install -t ./pythonFiles/lib/python --no-cache-dir --implementation py --no-deps --upgrade --pre debugpy |
| 101 | + # python -m pip --disable-pip-version-check install -t ./pythonFiles/lib/python --no-cache-dir --implementation py --no-deps --upgrade -r requirements.txt |
| 102 | + # python -m pip --disable-pip-version-check install -t ./pythonFiles/lib/python --no-cache-dir --implementation py --no-deps --upgrade --pre debugpy |
103 | 103 | displayName: 'pip install system test requirements'
|
104 | 104 | condition: and(succeeded(), eq(variables['NeedsPythonTestReqs'], 'true'))
|
105 | 105 |
|
@@ -203,13 +203,6 @@ steps:
|
203 | 203 | displayName: 'pip install jupyter'
|
204 | 204 | condition: and(succeeded(), eq(variables['NeedsIPythonReqs'], 'true'), contains(variables['TestsToRun'], 'testSmoke'))
|
205 | 205 |
|
206 |
| - - bash: | |
207 |
| - python -m pip --disable-pip-version-check install -r build/debugger-install-requirements.txt |
208 |
| - python ./pythonFiles/install_debugpy.py |
209 |
| - failOnStderr: true |
210 |
| - displayName: 'Install DEBUGPY wheels' |
211 |
| - condition: and(eq(variables['NeedsPythonTestReqs'], 'true'), eq(variables['PythonVersion'], '3.7')) |
212 |
| -
|
213 | 206 | # Run the Python IPython tests in our codebase. Produces a JUnit-style log file that
|
214 | 207 | # will be uploaded after all tests are complete.
|
215 | 208 | #
|
@@ -258,95 +251,6 @@ steps:
|
258 | 251 | buildPlatform: '$(Agent.Os)-Py$(pythonVersion)'
|
259 | 252 | buildConfiguration: 'UnitTests'
|
260 | 253 |
|
261 |
| - # Venv tests: Prepare the various virtual environments and record their details into the |
262 |
| - # JSON file that venvTests require to run. |
263 |
| - # |
264 |
| - # This task only runs if the string 'venvTests' exists in variable 'TestsToRun' |
265 |
| - # |
266 |
| - # This task has a bunch of steps, all of which are to fill the `EnvPath` struct found in |
267 |
| - # the file: |
268 |
| - # `src/test/common/terminals/environmentActionProviders/terminalActivation.testvirtualenvs.ts` |
269 |
| - # |
270 |
| - # Example command line (windows pwsh): |
271 |
| - # // This is done in powershell. Copy/paste the code below. |
272 |
| - - pwsh: | |
273 |
| - # venv/bin or venv\\Scripts (windows)? |
274 |
| - $environmentExecutableFolder = 'bin' |
275 |
| - if ($Env:AGENT_OS -match '.*Windows.*') { |
276 |
| - $environmentExecutableFolder = 'Scripts' |
277 |
| - } |
278 |
| -
|
279 |
| - # pipenv |
280 |
| - python -m pip install pipenv |
281 |
| - python -m pipenv run python build/ci/addEnvPath.py $(PYTHON_VIRTUAL_ENVS_LOCATION) pipenvPath |
282 |
| -
|
283 |
| - # venv |
284 |
| - # what happens when running under Python 2.7? |
285 |
| - python -m venv .venv |
286 |
| - & ".venv/$environmentExecutableFolder/python" ./build/ci/addEnvPath.py $(PYTHON_VIRTUAL_ENVS_LOCATION) venvPath |
287 |
| -
|
288 |
| - # virtualenv |
289 |
| - python -m pip install virtualenv |
290 |
| - python -m virtualenv .virtualenv |
291 |
| - & ".virtualenv/$environmentExecutableFolder/python" ./build/ci/addEnvPath.py $(PYTHON_VIRTUAL_ENVS_LOCATION) virtualEnvPath |
292 |
| -
|
293 |
| - # conda |
294 |
| -
|
295 |
| - # 1. For `terminalActivation.testvirtualenvs.test.ts` |
296 |
| -
|
297 |
| - $condaExecPath = Join-Path -Path $Env:CONDA -ChildPath $environmentExecutableFolder | Join-Path -ChildPath conda |
298 |
| - if( '$(Agent.Os)' -match '.*Windows.*' ){ |
299 |
| - $condaPythonPath = Join-Path -Path $Env:CONDA -ChildPath python |
300 |
| - } else{ |
301 |
| - $condaPythonPath = Join-Path -Path $Env:CONDA -ChildPath $environmentExecutableFolder | Join-Path -ChildPath python |
302 |
| - & $condaPythonPath ./build/ci/addEnvPath.py $(PYTHON_VIRTUAL_ENVS_LOCATION) condaExecPath $condaExecPath |
303 |
| - } |
304 |
| - & $condaPythonPath ./build/ci/addEnvPath.py $(PYTHON_VIRTUAL_ENVS_LOCATION) condaPath |
305 |
| -
|
306 |
| - # 2. For `interpreterLocatorService.testvirtualenvs.ts` |
307 |
| -
|
308 |
| - & $condaExecPath create -n "test_env1" -y python |
309 |
| - & $condaExecPath create -p "./test_env2" -y python |
310 |
| - & $condaExecPath create -p "$Env:HOME/test_env3" -y python |
311 |
| -
|
312 |
| - # Set the TEST_FILES_SUFFIX |
313 |
| - Write-Host '##vso[task.setvariable variable=TEST_FILES_SUFFIX;]testvirtualenvs' |
314 |
| -
|
315 |
| - displayName: 'Prepare Venv-Test Environment' |
316 |
| - condition: and(succeeded(), contains(variables['TestsToRun'], 'venvTests')) |
317 |
| -
|
318 |
| - # Run the virtual environment based tests. |
319 |
| - # This set of tests is simply using the `testSingleWorkspace` set of tests, but |
320 |
| - # with the environment variable `TEST_FILES_SUFFIX` set to `testvirtualenvs`, which |
321 |
| - # got set in the Prepare Venv-Test Environment task above. |
322 |
| - # **Note**: Azure DevOps tasks set environment variables via a specially formatted |
323 |
| - # string sent to stdout. |
324 |
| - # |
325 |
| - # This task only runs if the string 'venvTests' exists in variable 'TestsToRun' |
326 |
| - # |
327 |
| - # Example command line (windows pwsh): |
328 |
| - # > $Env:TEST_FILES_SUFFIX=testvirtualenvs |
329 |
| - # > npm run testSingleWorkspace |
330 |
| - - script: | |
331 |
| - cat $PYTHON_VIRTUAL_ENVS_LOCATION |
332 |
| -
|
333 |
| - npm run testSingleWorkspace |
334 |
| -
|
335 |
| - displayName: 'Run Venv-Tests' |
336 |
| - condition: and(succeeded(), contains(variables['TestsToRun'], 'venvTests')) |
337 |
| - env: |
338 |
| - DISPLAY: :10 |
339 |
| -
|
340 |
| - # Upload the test results to Azure DevOps to facilitate test reporting in their UX. |
341 |
| - - task: PublishTestResults@2 |
342 |
| - displayName: 'Publish Venv-Tests results' |
343 |
| - condition: contains(variables['TestsToRun'], 'venvTests') |
344 |
| - inputs: |
345 |
| - testResultsFiles: '$(MOCHA_FILE)' |
346 |
| - testRunTitle: 'venvTest-$(Agent.Os)-Py$(pythonVersion)' |
347 |
| - buildPlatform: '$(Agent.Os)-Py$(pythonVersion)' |
348 |
| - buildConfiguration: 'SystemTests' |
349 |
| - |
350 | 254 | # Set the CI_PYTHON_PATH variable that forces VS Code system tests to use
|
351 | 255 | # the specified Python interpreter.
|
352 | 256 | #
|
@@ -434,29 +338,6 @@ steps:
|
434 | 338 | buildPlatform: '$(Agent.Os)-Py$(pythonVersion)'
|
435 | 339 | buildConfiguration: 'SystemTests'
|
436 | 340 |
|
437 |
| - # Run the debugger integration tests. |
438 |
| - # |
439 |
| - # This task only runs if the string 'testDebugger' exists in variable `TestsToRun`. |
440 |
| - # |
441 |
| - # Example command line (windows pwsh): |
442 |
| - # > npm run testDebugger |
443 |
| - - script: | |
444 |
| - npm run testDebugger |
445 |
| - displayName: 'Run debugger tests' |
446 |
| - condition: and(succeeded(), contains(variables['TestsToRun'], 'testDebugger')) |
447 |
| - env: |
448 |
| - DISPLAY: :10 |
449 |
| -
|
450 |
| - # Upload the test results to Azure DevOps to facilitate test reporting in their UX. |
451 |
| - - task: PublishTestResults@2 |
452 |
| - displayName: 'Publish debugger tests results' |
453 |
| - condition: contains(variables['TestsToRun'], 'testDebugger') |
454 |
| - inputs: |
455 |
| - testResultsFiles: '$(MOCHA_FILE)' |
456 |
| - testRunTitle: 'debugger-$(Agent.Os)-Py$(pythonVersion)' |
457 |
| - buildPlatform: '$(Agent.Os)-Py$(pythonVersion)' |
458 |
| - buildConfiguration: 'SystemTests' |
459 |
| - |
460 | 341 | # Run the performance tests.
|
461 | 342 | #
|
462 | 343 | # This task only runs if the string 'testPerformance' exists in variable `TestsToRun`.
|
|
0 commit comments