Skip to content

Commit

Permalink
test: BI-0 test ansible run
Browse files Browse the repository at this point in the history
  • Loading branch information
flukolo4ek committed Dec 20, 2024
1 parent a9ed24a commit abf79d8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ jobs:
run: git branch --contains ${{ github.event.pull_request.base.sha }}

gh_build_image:
runs-on: [ self-hosted, linux, k8s-runner-build ]
runs-on: ubuntu-22.04

needs: [ check-ci-allowed ]

Expand Down Expand Up @@ -151,7 +151,7 @@ jobs:
/bin/bash ci/build_naive.sh
router:
runs-on: [ self-hosted, linux, k8s-runner-no-compose ]
runs-on: ubuntu-22.04
needs: gh_build_image
container:
image: "ghcr.io/${{ github.repository_owner }}/${{ github.event.repository.name }}/datalens_ci_with_code:${{ github.sha }}"
Expand Down Expand Up @@ -234,7 +234,7 @@ jobs:

pytest_split:
name: Split pytest into jobs for each test type
runs-on: [ self-hosted, linux, k8s-runner-no-compose ]
runs-on: ubuntu-22.04

needs: [ router, check-skip-tests-label ]
if: ${{ needs.check-skip-tests-label.outputs.result != 'true' }}
Expand Down Expand Up @@ -267,7 +267,7 @@ jobs:
run_tests_base:
name: "🐍[pytest]${{ matrix.value }}"
runs-on: [ self-hosted, linux, k8s-runner-light ]
runs-on: ubuntu-22.04
permissions:
packages: write
contents: read
Expand Down Expand Up @@ -313,7 +313,7 @@ jobs:

run_tests_no_compose:
name: "🐍[pytest][no_compose]${{ matrix.value }}"
runs-on: [ self-hosted, linux, k8s-runner-no-compose ]
runs-on: ubuntu-22.04
permissions:
packages: write
contents: read
Expand Down Expand Up @@ -359,7 +359,7 @@ jobs:

run_tests_fat:
name: "🐍[pytest][fat]${{ matrix.value }}"
runs-on: [ self-hosted, linux, k8s-runner-fat ]
runs-on: ubuntu-22.04
permissions:
packages: write
contents: read
Expand Down Expand Up @@ -406,7 +406,7 @@ jobs:
run_tests_ext_public:
name: "🐍[pytest][ext_public]${{ matrix.value }}"
# using light runners for now, TBD: change when we have ext_public
runs-on: [ self-hosted, linux, k8s-runner-ext-public ]
runs-on: ubuntu-22.04
permissions:
packages: read
contents: read
Expand Down Expand Up @@ -456,7 +456,7 @@ jobs:
run: bash /src/ci/stop_compose.sh "${{ matrix.value }}" "${{ job.container.network }}" "${{ env.compose_prj }}"

mypy:
runs-on: [ self-hosted, linux, k8s-runner-no-compose ]
runs-on: ubuntu-22.04
needs: gh_build_image
container:
# until https://github.com/github/docs/issues/25520 is resolved, using vars
Expand Down Expand Up @@ -504,7 +504,7 @@ jobs:
needs_json: ${{ toJson(needs) }}

codestyle_all:
runs-on: [ self-hosted, linux, k8s-runner-no-compose ]
runs-on: ubuntu-22.04
needs: gh_build_image
container:
# until https://github.com/github/docs/issues/25520 is resolved, using vars
Expand Down
4 changes: 3 additions & 1 deletion lib/testenv-common/docker-compose.common.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: '3.7'
version: '3.9'

x-constants:
US_MASTER_TOKEN: &c-us-master-token "AC1ofiek8coB"
Expand Down Expand Up @@ -27,7 +27,9 @@ services:
depends_on:
pg-us:
condition: service_healthy
# restart: true
environment:
POSTGRES_DSN_LIST: "postgres://us:us@pg-us:5432/us-db-ci_purgeable"
AUTH_POLICY: "required"
MASTER_TOKEN: *c-us-master-token
restart: on-failure

0 comments on commit abf79d8

Please sign in to comment.