@@ -7,7 +7,7 @@ branch = $(shell git branch | grep \* | cut -f2 -d' ')
77epoch := $(shell date +"% s")
88AR_REPO ?= codecov/api
99DOCKERHUB_REPO ?= codecov/self-hosted-api
10- REQUIREMENTS_TAG := requirements-v1-$(shell sha1sum requirements.txt | cut -d ' ' -f 1) -$(shell sha1sum docker/Dockerfile.requirements | cut -d ' ' -f 1)
10+ REQUIREMENTS_TAG := requirements-v1-$(shell sha1sum uv.lock | cut -d ' ' -f 1) -$(shell sha1sum docker/Dockerfile.requirements | cut -d ' ' -f 1)
1111VERSION := release-${sha}
1212CODECOV_UPLOAD_TOKEN ?= "notset"
1313CODECOV_STATIC_TOKEN ?= "notset"
@@ -21,7 +21,7 @@ API_DOMAIN ?= api
2121PROXY_NETWORK ?= api_default
2222
2323# Codecov CLI version to use
24- CODECOV_CLI_VERSION := 0.5.1
24+ CODECOV_CLI_VERSION := 9.0.4
2525
2626build :
2727 make build.requirements
@@ -31,13 +31,13 @@ check-for-migration-conflicts:
3131 python manage.py check_for_migration_conflicts
3232
3333test :
34- COVERAGE_CORE=sysmon python -m pytest --cov=./ --junitxml=junit.xml -o junit_family=legacy
34+ COVERAGE_CORE=sysmon pytest --cov=./ --junitxml=junit.xml -o junit_family=legacy
3535
3636test.unit :
37- COVERAGE_CORE=sysmon python -m pytest --cov=./ -m " not integration" --cov-report=xml:unit.coverage.xml --junitxml=unit.junit.xml -o junit_family=legacy
37+ COVERAGE_CORE=sysmon pytest --cov=./ -m " not integration" --cov-report=xml:unit.coverage.xml --junitxml=unit.junit.xml -o junit_family=legacy
3838
3939test.integration :
40- COVERAGE_CORE=sysmon python -m pytest --cov=./ -m " integration" --cov-report=xml:integration.coverage.xml --junitxml=integration.junit.xml -o junit_family=legacy
40+ COVERAGE_CORE=sysmon pytest --cov=./ -m " integration" --cov-report=xml:integration.coverage.xml --junitxml=integration.junit.xml -o junit_family=legacy
4141
4242lint :
4343 make lint.install
@@ -179,17 +179,17 @@ push.self-hosted-rolling:
179179 docker push ${DOCKERHUB_REPO} :rolling
180180
181181shell :
182- docker- compose exec api bash
182+ docker compose exec api bash
183183
184184test_env.up :
185185 env | grep GITHUB > .testenv; true
186- TIMESERIES_ENABLED=${TIMESERIES_ENABLED} docker- compose up -d
186+ TIMESERIES_ENABLED=${TIMESERIES_ENABLED} docker compose up -d
187187
188188test_env.prepare :
189- docker- compose exec api make test_env.container_prepare
189+ docker compose exec api make test_env.container_prepare
190190
191191test_env.check_db :
192- docker- compose exec api make test_env.container_check_db
192+ docker compose exec api make test_env.container_check_db
193193 make test_env.check-for-migration-conflicts
194194
195195test_env.install_cli :
@@ -205,18 +205,18 @@ test_env.container_check_db:
205205 while ! nc -vz timescale 5432; do sleep 1; echo " waiting for timescale" ; done
206206
207207test_env.run_unit :
208- docker- compose exec api make test.unit
208+ docker compose exec api make test.unit
209209
210210test_env.run_integration :
211- # docker- compose exec api make test.integration
211+ # docker compose exec api make test.integration
212212 echo " Skipping. No Tests"
213213
214214test_env.check-for-migration-conflicts :
215- docker- compose exec api python manage.py check_for_migration_conflicts
215+ docker compose exec api python manage.py check_for_migration_conflicts
216216
217217test_env.upload :
218- docker- compose exec api make test_env.container_upload CODECOV_UPLOAD_TOKEN=${CODECOV_UPLOAD_TOKEN} CODECOV_URL=${CODECOV_URL}
219- docker- compose exec api make test_env.container_upload_test_results CODECOV_UPLOAD_TOKEN=${CODECOV_UPLOAD_TOKEN} CODECOV_URL=${CODECOV_URL}
218+ docker compose exec api make test_env.container_upload CODECOV_UPLOAD_TOKEN=${CODECOV_UPLOAD_TOKEN} CODECOV_URL=${CODECOV_URL}
219+ docker compose exec api make test_env.container_upload_test_results CODECOV_UPLOAD_TOKEN=${CODECOV_UPLOAD_TOKEN} CODECOV_URL=${CODECOV_URL}
220220
221221test_env.container_upload :
222222 codecovcli -u ${CODECOV_URL} upload-process --flag unit-latest-uploader --flag unit \
@@ -229,13 +229,13 @@ test_env.container_upload_test_results:
229229 --files-search-exclude-folder=api/internal/tests/unit/views/cassetes/** || true
230230
231231test_env.static_analysis :
232- docker- compose exec api make test_env.container_static_analysis CODECOV_STATIC_TOKEN=${CODECOV_STATIC_TOKEN}
232+ docker compose exec api make test_env.container_static_analysis CODECOV_STATIC_TOKEN=${CODECOV_STATIC_TOKEN}
233233
234234test_env.label_analysis :
235- docker- compose exec api make test_env.container_label_analysis CODECOV_STATIC_TOKEN=${CODECOV_STATIC_TOKEN}
235+ docker compose exec api make test_env.container_label_analysis CODECOV_STATIC_TOKEN=${CODECOV_STATIC_TOKEN}
236236
237237test_env.ats :
238- docker- compose exec api make test_env.container_ats CODECOV_UPLOAD_TOKEN=${CODECOV_UPLOAD_TOKEN}
238+ docker compose exec api make test_env.container_ats CODECOV_UPLOAD_TOKEN=${CODECOV_UPLOAD_TOKEN}
239239
240240test_env.container_static_analysis :
241241 codecovcli -u ${CODECOV_URL} static-analysis --token=${CODECOV_STATIC_TOKEN}
0 commit comments