Skip to content

[WIP] default ssh provider updates #8223

[WIP] default ssh provider updates

[WIP] default ssh provider updates #8223

Workflow file for this run

name: Tests with level "local"
on:
push:
branches: [ main ]
pull_request:
env:
API_SERVER_URL: https://api.run.house
RH_LOG_LEVEL: INFO
jobs:
# TODO: THESE ARE ONLY SEPARATE JOBS BECAUSE THERE ARE
# DEVELOPMENT INCONSISTENCIES WHEN RUNNING ALL THE LOCAL
# TESTS TOGETHER.
# server-tests-logged-out-level-local:
# runs-on: ubuntu-latest
# steps:
# - name: Check out repository code
# uses: actions/checkout@v3
# - name: Setup Runhouse
# uses: ./.github/workflows/setup_runhouse
# - name: pytest -v --level local tests/test_servers/
# env:
# TEST_TOKEN: ${{ secrets.TEST_TOKEN }}
# TEST_USERNAME: ${{ secrets.TEST_USERNAME }}
# run: pytest -v --level local tests/test_servers/
server-tests-logged-in-level-local:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Setup Runhouse
uses: ./.github/workflows/setup_runhouse
- name: Setup ~/.rh/config.yaml
uses: ./.github/workflows/setup_rh_config
with:
username: ${{ secrets.DEN_TESTER_USERNAME }}
token: ${{ secrets.DEN_TESTER_PROD_TOKEN }}
api_server_url: ${{ env.API_SERVER_URL }}
- name: pytest -v --level local tests/test_servers/
env:
KITCHEN_TESTER_TOKEN: ${{ secrets.KITCHEN_TESTER_PROD_TOKEN }}
KITCHEN_TESTER_USERNAME: ${{ secrets.KITCHEN_TESTER_USERNAME }}
run: pytest -v --level local tests/test_servers/
timeout-minutes: 60
# most-tests-logged-out-level-local:
# runs-on: ubuntu-latest
# steps:
# - name: Check out repository code
# uses: actions/checkout@v3
# - name: Setup Runhouse
# uses: ./.github/workflows/setup_runhouse
# - name: pytest -v --level local -k "not servertest and not secrettest"
# env:
# TEST_TOKEN: ${{ secrets.TEST_TOKEN }}
# TEST_USERNAME: ${{ secrets.TEST_USERNAME }}
# run: pytest -v --level local -k "not servertest and not secrettest"
most-tests-logged-in-level-local:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Setup Runhouse
uses: ./.github/workflows/setup_runhouse
- name: Setup ~/.rh/config.yaml
uses: ./.github/workflows/setup_rh_config
with:
username: ${{ secrets.DEN_TESTER_USERNAME }}
token: ${{ secrets.DEN_TESTER_PROD_TOKEN }}
api_server_url: ${{ env.API_SERVER_URL }}
- name: pytest -v --level local -k "not servertest and not secrettest and not moduletest and not functiontest and not envtest and not clustertest"
env:
KITCHEN_TESTER_TOKEN: ${{ secrets.KITCHEN_TESTER_PROD_TOKEN }}
KITCHEN_TESTER_USERNAME: ${{ secrets.KITCHEN_TESTER_USERNAME }}
ORG_MEMBER_TOKEN: ${{ secrets.ORG_MEMBER_PROD_TOKEN }}
ORG_MEMBER_USERNAME: ${{ secrets.ORG_MEMBER_USERNAME }}
run: pytest -v --level local -k "not servertest and not secrettest and not moduletest and not functiontest and not envtest and not clustertest"
timeout-minutes: 60
# secret-tests-logged-out-level-local:
# runs-on: ubuntu-latest
# steps:
# - name: Check out repository code
# uses: actions/checkout@v3
# - name: Setup Runhouse
# uses: ./.github/workflows/setup_runhouse
# - name: pytest -v --level local -k "secrettest"
# env:
# TEST_TOKEN: ${{ secrets.TEST_TOKEN }}
# TEST_USERNAME: ${{ secrets.TEST_USERNAME }}
# run: pytest -v --level local -k "secrettest"
secret-tests-logged-in-level-local:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Setup Runhouse
uses: ./.github/workflows/setup_runhouse
- name: Setup ~/.rh/config.yaml
uses: ./.github/workflows/setup_rh_config
with:
username: ${{ secrets.DEN_TESTER_USERNAME }}
token: ${{ secrets.DEN_TESTER_PROD_TOKEN }}
api_server_url: ${{ env.API_SERVER_URL }}
- name: pytest -v --level local -k "secrettest"
env:
KITCHEN_TESTER_TOKEN: ${{ secrets.KITCHEN_TESTER_PROD_TOKEN }}
KITCHEN_TESTER_USERNAME: ${{ secrets.KITCHEN_TESTER_USERNAME }}
ORG_MEMBER_TOKEN: ${{ secrets.ORG_MEMBER_PROD_TOKEN }}
ORG_MEMBER_USERNAME: ${{ secrets.ORG_MEMBER_USERNAME }}
run: pytest -v --level local -k "secrettest"
timeout-minutes: 60
module-tests-logged-in-level-local:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Setup Runhouse
uses: ./.github/workflows/setup_runhouse
- name: Setup ~/.rh/config.yaml
uses: ./.github/workflows/setup_rh_config
with:
username: ${{ secrets.DEN_TESTER_USERNAME }}
token: ${{ secrets.DEN_TESTER_PROD_TOKEN }}
api_server_url: ${{ env.API_SERVER_URL }}
- name: pytest -v --level local -k "moduletest"
env:
KITCHEN_TESTER_TOKEN: ${{ secrets.KITCHEN_TESTER_PROD_TOKEN }}
KITCHEN_TESTER_USERNAME: ${{ secrets.KITCHEN_TESTER_USERNAME }}
ORG_MEMBER_TOKEN: ${{ secrets.ORG_MEMBER_PROD_TOKEN }}
ORG_MEMBER_USERNAME: ${{ secrets.ORG_MEMBER_USERNAME }}
run: pytest -v --level local -k "moduletest"
timeout-minutes: 60
function-tests-logged-in-level-local:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Setup Runhouse
uses: ./.github/workflows/setup_runhouse
- name: Setup ~/.rh/config.yaml
uses: ./.github/workflows/setup_rh_config
with:
username: ${{ secrets.DEN_TESTER_USERNAME }}
token: ${{ secrets.DEN_TESTER_PROD_TOKEN }}
api_server_url: ${{ env.API_SERVER_URL }}
- name: pytest -v --level local -k "functiontest"
env:
KITCHEN_TESTER_TOKEN: ${{ secrets.KITCHEN_TESTER_PROD_TOKEN }}
KITCHEN_TESTER_USERNAME: ${{ secrets.KITCHEN_TESTER_USERNAME }}
ORG_MEMBER_TOKEN: ${{ secrets.ORG_MEMBER_PROD_TOKEN }}
ORG_MEMBER_USERNAME: ${{ secrets.ORG_MEMBER_USERNAME }}
run: pytest -v --level local -k "functiontest"
timeout-minutes: 60
env-tests-logged-in-level-local:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Setup Runhouse
uses: ./.github/workflows/setup_runhouse
- name: Setup ~/.rh/config.yaml
uses: ./.github/workflows/setup_rh_config
with:
username: ${{ secrets.DEN_TESTER_USERNAME }}
token: ${{ secrets.DEN_TESTER_PROD_TOKEN }}
api_server_url: ${{ env.API_SERVER_URL }}
- name: pytest -v --level local -k "envtest"
env:
KITCHEN_TESTER_TOKEN: ${{ secrets.KITCHEN_TESTER_PROD_TOKEN }}
KITCHEN_TESTER_USERNAME: ${{ secrets.KITCHEN_TESTER_USERNAME }}
ORG_MEMBER_TOKEN: ${{ env.ORG_MEMBER_PROD_TOKEN }}
ORG_MEMBER_USERNAME: ${{ secrets.ORG_MEMBER_USERNAME }}
run: pytest -v --level local -k "envtest"
timeout-minutes: 60
cluster-tests-logged-in-level-local:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Setup Runhouse
uses: ./.github/workflows/setup_runhouse
- name: Setup ~/.rh/config.yaml
uses: ./.github/workflows/setup_rh_config
with:
username: ${{ secrets.DEN_TESTER_USERNAME }}
token: ${{ secrets.DEN_TESTER_PROD_TOKEN }}
api_server_url: ${{ env.API_SERVER_URL }}
- name: pytest -v --level local -k "clustertest"
env:
KITCHEN_TESTER_TOKEN: ${{ secrets.KITCHEN_TESTER_PROD_TOKEN }}
KITCHEN_TESTER_USERNAME: ${{ secrets.KITCHEN_TESTER_USERNAME }}
ORG_MEMBER_TOKEN: ${{ secrets.ORG_MEMBER_PROD_TOKEN }}
ORG_MEMBER_USERNAME: ${{ secrets.ORG_MEMBER_USERNAME }}
run: pytest -v --level local -k "clustertest"
timeout-minutes: 60