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

Disable insiders tests #16626

Merged
merged 1 commit into from
Jul 7, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
124 changes: 62 additions & 62 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -388,68 +388,68 @@ jobs:
with:
run: node --no-force-async-hooks-checks ./out/test/smokeTest.js

insider-tests:
name: Insider tests
if: github.repository == 'microsoft/vscode-python'
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
# We're not running CI on macOS for now because it's one less matrix entry to lower the number of runners used,
# macOS runners are expensive, and we assume that Ubuntu is enough to cover the UNIX case.
os: [ubuntu-latest]
python: [3.8] # For Jupyter.
steps:
- name: Checkout
uses: actions/checkout@v2.3.4

- name: Install Node
uses: actions/setup-node@v2.1.5
with:
node-version: ${{env.NODE_VERSION}}

- name: Use Python ${{matrix.python}}
uses: actions/setup-python@v2
with:
python-version: ${{matrix.python}}

- name: Install dependencies (npm ci)
run: npm ci --prefer-offline

- name: pip install system test requirements
run: |
python -m pip install --upgrade -r build/test-requirements.txt
python -m pip --disable-pip-version-check install -t ./pythonFiles/lib/python --no-cache-dir --implementation py --no-deps --upgrade -r requirements.txt
python -m pip --disable-pip-version-check install -t ./pythonFiles/lib/python --no-cache-dir --implementation py --no-deps --upgrade --pre debugpy
shell: bash

- name: pip install smoke test requirements
run: |
python -m pip install --upgrade -r build/smoke-test-requirements.txt
shell: bash

# Compile the test files.
- name: Prepare for insiders tests
run: npm run prePublish
shell: bash

- name: Set CI_PYTHON_PATH and CI_DISABLE_AUTO_SELECTION
run: |
echo "CI_PYTHON_PATH=python" >> $GITHUB_ENV
echo "CI_DISABLE_AUTO_SELECTION=1" >> $GITHUB_ENV
shell: bash

- name: Run insider tests
env:
DISPLAY: 10
INSTALL_JUPYTER_EXTENSION: true
INSTALL_PYLANCE_EXTENSION: true
VSC_PYTHON_CI_TEST_VSC_CHANNEL: insiders
TEST_FILES_SUFFIX: insiders.test
CODE_TESTS_WORKSPACE: ./src/testMultiRootWkspc/smokeTests
uses: GabrielBB/xvfb-action@v1.5
with:
run: node --no-force-async-hooks-checks ./out/test/standardTest.js
# insider-tests:
# name: Insider tests
# if: github.repository == 'microsoft/vscode-python'
# runs-on: ${{ matrix.os }}
# strategy:
# fail-fast: false
# matrix:
# # We're not running CI on macOS for now because it's one less matrix entry to lower the number of runners used,
# # macOS runners are expensive, and we assume that Ubuntu is enough to cover the UNIX case.
# os: [ubuntu-latest]
# python: [3.8] # For Jupyter.
# steps:
# - name: Checkout
# uses: actions/checkout@v2.3.4

# - name: Install Node
# uses: actions/setup-node@v2.1.5
# with:
# node-version: ${{env.NODE_VERSION}}

# - name: Use Python ${{matrix.python}}
# uses: actions/setup-python@v2
# with:
# python-version: ${{matrix.python}}

# - name: Install dependencies (npm ci)
# run: npm ci --prefer-offline

# - name: pip install system test requirements
# run: |
# python -m pip install --upgrade -r build/test-requirements.txt
# python -m pip --disable-pip-version-check install -t ./pythonFiles/lib/python --no-cache-dir --implementation py --no-deps --upgrade -r requirements.txt
# python -m pip --disable-pip-version-check install -t ./pythonFiles/lib/python --no-cache-dir --implementation py --no-deps --upgrade --pre debugpy
# shell: bash

# - name: pip install smoke test requirements
# run: |
# python -m pip install --upgrade -r build/smoke-test-requirements.txt
# shell: bash

# # Compile the test files.
# - name: Prepare for insiders tests
# run: npm run prePublish
# shell: bash

# - name: Set CI_PYTHON_PATH and CI_DISABLE_AUTO_SELECTION
# run: |
# echo "CI_PYTHON_PATH=python" >> $GITHUB_ENV
# echo "CI_DISABLE_AUTO_SELECTION=1" >> $GITHUB_ENV
# shell: bash

# - name: Run insider tests
# env:
# DISPLAY: 10
# INSTALL_JUPYTER_EXTENSION: true
# INSTALL_PYLANCE_EXTENSION: true
# VSC_PYTHON_CI_TEST_VSC_CHANNEL: insiders
# TEST_FILES_SUFFIX: insiders.test
# CODE_TESTS_WORKSPACE: ./src/testMultiRootWkspc/smokeTests
# uses: GabrielBB/xvfb-action@v1.5
# with:
# run: node --no-force-async-hooks-checks ./out/test/standardTest.js

upload:
name: Upload VSIX to Azure Blob Storage
Expand Down
126 changes: 63 additions & 63 deletions .github/workflows/pr-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -372,69 +372,69 @@ jobs:
with:
run: node --no-force-async-hooks-checks ./out/test/smokeTest.js

insider-tests:
name: Insider tests
# The value of runs-on is the OS of the current job (specified in the strategy matrix below) instead of being hardcoded.
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
# We're not running CI on macOS for now because it's one less matrix entry to lower the number of runners used,
# macOS runners are expensive, and we assume that Ubuntu is enough to cover the UNIX case.
os: [ubuntu-latest]
python: [3.8]
steps:
# Need the source to have the tests available.
- name: Checkout
uses: actions/checkout@v2.3.4

- name: Install Node
uses: actions/setup-node@v2.1.5
with:
node-version: ${{env.NODE_VERSION}}

- name: Use Python ${{matrix.python}}
uses: actions/setup-python@v2
with:
python-version: ${{matrix.python}}

- name: Install dependencies (npm ci)
run: npm ci --prefer-offline

- name: pip install system test requirements
run: |
python -m pip install --upgrade -r build/test-requirements.txt
python -m pip --disable-pip-version-check install -t ./pythonFiles/lib/python --no-cache-dir --implementation py --no-deps --upgrade -r requirements.txt
python -m pip --disable-pip-version-check install -t ./pythonFiles/lib/python --no-cache-dir --implementation py --no-deps --upgrade --pre debugpy
shell: bash

- name: pip install smoke test requirements
run: |
python -m pip install --upgrade -r build/smoke-test-requirements.txt
shell: bash

# Compile the test files.
- name: Prepare for insiders tests
run: npm run prePublish
shell: bash

- name: Set CI_PYTHON_PATH and CI_DISABLE_AUTO_SELECTION
run: |
echo "CI_PYTHON_PATH=python" >> $GITHUB_ENV
echo "CI_DISABLE_AUTO_SELECTION=1" >> $GITHUB_ENV
shell: bash

- name: Run insider tests
env:
DISPLAY: 10
INSTALL_JUPYTER_EXTENSION: true
INSTALL_PYLANCE_EXTENSION: true
VSC_PYTHON_CI_TEST_VSC_CHANNEL: insiders
TEST_FILES_SUFFIX: insiders.test
CODE_TESTS_WORKSPACE: ./src/testMultiRootWkspc/smokeTests
uses: GabrielBB/xvfb-action@v1.5
with:
run: node --no-force-async-hooks-checks ./out/test/standardTest.js
# insider-tests:
# name: Insider tests
# # The value of runs-on is the OS of the current job (specified in the strategy matrix below) instead of being hardcoded.
# runs-on: ${{ matrix.os }}
# strategy:
# fail-fast: false
# matrix:
# # We're not running CI on macOS for now because it's one less matrix entry to lower the number of runners used,
# # macOS runners are expensive, and we assume that Ubuntu is enough to cover the UNIX case.
# os: [ubuntu-latest]
# python: [3.8]
# steps:
# # Need the source to have the tests available.
# - name: Checkout
# uses: actions/checkout@v2.3.4

# - name: Install Node
# uses: actions/setup-node@v2.1.5
# with:
# node-version: ${{env.NODE_VERSION}}

# - name: Use Python ${{matrix.python}}
# uses: actions/setup-python@v2
# with:
# python-version: ${{matrix.python}}

# - name: Install dependencies (npm ci)
# run: npm ci --prefer-offline

# - name: pip install system test requirements
# run: |
# python -m pip install --upgrade -r build/test-requirements.txt
# python -m pip --disable-pip-version-check install -t ./pythonFiles/lib/python --no-cache-dir --implementation py --no-deps --upgrade -r requirements.txt
# python -m pip --disable-pip-version-check install -t ./pythonFiles/lib/python --no-cache-dir --implementation py --no-deps --upgrade --pre debugpy
# shell: bash

# - name: pip install smoke test requirements
# run: |
# python -m pip install --upgrade -r build/smoke-test-requirements.txt
# shell: bash

# # Compile the test files.
# - name: Prepare for insiders tests
# run: npm run prePublish
# shell: bash

# - name: Set CI_PYTHON_PATH and CI_DISABLE_AUTO_SELECTION
# run: |
# echo "CI_PYTHON_PATH=python" >> $GITHUB_ENV
# echo "CI_DISABLE_AUTO_SELECTION=1" >> $GITHUB_ENV
# shell: bash

# - name: Run insider tests
# env:
# DISPLAY: 10
# INSTALL_JUPYTER_EXTENSION: true
# INSTALL_PYLANCE_EXTENSION: true
# VSC_PYTHON_CI_TEST_VSC_CHANNEL: insiders
# TEST_FILES_SUFFIX: insiders.test
# CODE_TESTS_WORKSPACE: ./src/testMultiRootWkspc/smokeTests
# uses: GabrielBB/xvfb-action@v1.5
# with:
# run: node --no-force-async-hooks-checks ./out/test/standardTest.js

### Coverage run
coverage:
Expand Down