diff --git a/.github/workflows/python-tests.yaml b/.github/workflows/python-tests.yaml index af3f2e33cff0..1705296544ca 100644 --- a/.github/workflows/python-tests.yaml +++ b/.github/workflows/python-tests.yaml @@ -219,141 +219,6 @@ jobs: env: SLACK_WEBHOOK_URL: ${{ secrets.ENGINEERING_REVIEW_SLACK_WEBHOOK_URL }} - run-tests-for-datadog: - name: DataDog CI Visibility - if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || contains(github.event.head_commit.message, '.github/workflows/python-tests.yaml')) - runs-on: - group: oss-larger-runners - strategy: - matrix: - database: - - "postgres:14" - python-version: - - "3.12" - - fail-fast: true - - timeout-minutes: 45 - - steps: - - name: Display current test matrix - run: echo '${{ toJSON(matrix) }}' - - - uses: actions/checkout@v4 - with: - persist-credentials: false - fetch-depth: 0 - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 - with: - driver-opts: image=moby/buildkit:v0.12.5 - - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v5 - id: setup_python - with: - python-version: ${{ matrix.python-version }} - - - name: UV Cache - # Manually cache the uv cache directory - # until setup-python supports it: - # https://github.com/actions/setup-python/issues/822 - uses: actions/cache@v4 - id: cache-uv - with: - path: ~/.cache/uv - key: uvcache-${{ runner.os }}-${{ steps.setup_python.outputs.python-version }}-${{ hashFiles('requirements-client.txt', 'requirements.txt', 'requirements-dev.txt') }} - - - name: Get image tag - id: get_image_tag - run: | - SHORT_SHA=$(git rev-parse --short=7 HEAD) - tmp="sha-$SHORT_SHA-python${{ matrix.python-version }}" - echo "image_tag=${tmp}" >> $GITHUB_OUTPUT - - - name: Build test image - uses: docker/build-push-action@v6 - with: - context: . - build-args: | - PYTHON_VERSION=${{ matrix.python-version }} - PREFECT_EXTRAS=[dev] - tags: prefecthq/prefect-dev:${{ steps.get_image_tag.outputs.image_tag }} - outputs: type=docker,dest=/tmp/image.tar - - - name: Test Docker image - run: | - docker load --input /tmp/image.tar - docker run --rm prefecthq/prefect-dev:${{ steps.get_image_tag.outputs.image_tag }} prefect version - - - name: Install packages - run: | - python -m pip install -U uv - uv pip install --upgrade --system -e .[dev] - - - name: Start database container - run: > - docker run - --name "postgres" - --detach - --health-cmd pg_isready - --health-interval 10s - --health-timeout 5s - --health-retries 5 - --publish 5432:5432 - --tmpfs /var/lib/postgresql/data - --env POSTGRES_USER="prefect" - --env POSTGRES_PASSWORD="prefect" - --env POSTGRES_DB="prefect" - --env LANG="C.UTF-8" - --env LANGUAGE="C.UTF-8" - --env LC_ALL="C.UTF-8" - --env LC_COLLATE="C.UTF-8" - --env LC_CTYPE="C.UTF-8" - ${{ matrix.database }} - -c max_connections=250 - - ./scripts/wait-for-healthy-container.sh postgres 30 - - echo "PREFECT_API_DATABASE_CONNECTION_URL=postgresql+asyncpg://prefect:prefect@localhost/prefect" >> $GITHUB_ENV - - - name: Start docker registry - run: > - docker run - --name "prefect-test-registry" - --detach - --publish 5555:5000 - registry:2 - - - name: Start redis - run: > - docker run - --name "redis" - --detach - --publish 6379:6379 - redis:latest - - - name: Run tests - env: - PREFECT_EXPERIMENTAL_ENABLE_PYDANTIC_V2_INTERNALS: "1" - DD_CIVISIBILITY_AGENTLESS_ENABLED: true - DD_API_KEY: ${{ secrets.DD_API_KEY_CI_VISIBILITY }} - DD_SITE: datadoghq.com - DD_ENV: ci - DD_SERVICE: prefect - run: > - pytest tests - --numprocesses auto - --maxprocesses 6 - --ddtrace - --dist worksteal - --disable-docker-image-builds - --exclude-service kubernetes - --durations 26 - --cov - --cov-config setup.cfg - run-docker-tests: runs-on: group: oss-larger-runners diff --git a/requirements-dev.txt b/requirements-dev.txt index b0b1363af334..ea67224d5127 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -1,7 +1,6 @@ ruff cairosvg codespell>=2.2.6 -ddtrace ipython jinja2 moto >= 5