Skip to content

Commit cb13cc3

Browse files
committed
Fix CI issue: Code-Coverage:Unable to create Service with name AstroService-CICD-test-62-3.11-2.9
1 parent e4fcadc commit cb13cc3

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/test.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,10 @@ jobs:
105105
- name: Test Anyscale against Airflow ${{ matrix.airflow-version }} and Python ${{ matrix.python-version }}
106106
run: |
107107
ID="${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-${{ matrix.python-version }}-${{ matrix.airflow-version }}"
108-
ID_CLEANED=$(echo $ID | tr '.' '-') # Replace dots with hyphens
109-
echo "ASTRO_ANYSCALE_PROVIDER_SERVICE_ID=$ID_CLEANED" >> $GITHUB_ENV
110-
hatch run tests.py${{ matrix.python-version }}-${{ matrix.airflow-version }}:test-integration
108+
# Service names must be no longer than 57 characters and can only contain alphanumeric characters, dashes, and underscores
109+
ID_CLEANED=$(echo $ID | tr '.' '-') # Replace dots with hyphens so it is a valid Service name
110+
echo ASTRO_ANYSCALE_PROVIDER_SERVICE_ID
111+
ASTRO_ANYSCALE_PROVIDER_SERVICE_ID=$ID_CLEANED hatch run tests.py${{ matrix.python-version }}-${{ matrix.airflow-version }}:test-integration
111112
env:
112113
ANYSCALE_CLI_TOKEN: ${{ secrets.ANYSCALE_CLI_TOKEN }}
113114
- name: Upload coverage to Github

0 commit comments

Comments
 (0)