Skip to content

Commit

Permalink
Remove ATS setup (#737)
Browse files Browse the repository at this point in the history
  • Loading branch information
Swatinem authored Sep 24, 2024
1 parent e63488d commit 6f7044e
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 87 deletions.
39 changes: 0 additions & 39 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,42 +86,3 @@ jobs:
with:
push_rolling: true
repo: ${{ vars.CODECOV_IMAGE_V2 || 'codecov/self-hosted-worker' }}

# Disable mutations because they currently don't work with Pythin 3.12
# A dependency of mutmut doens't support it (see https://github.com/ponyorm/pony/issues/703)
# mutation:
# name: Run Mutations
# needs: [build]
# runs-on: ubuntu-latest
# env:
# AR_REPO: ${{ vars.CODECOV_IMAGE_V2 || 'codecov/self-hosted-worker' }}
# steps:
# - name: Checkout
# uses: actions/checkout@v4
# with:
# fetch-depth: 0
# - name: Cache App
# id: cache-app
# uses: actions/cache@v3
# env:
# cache-name: cache-app
# with:
# path: |
# app.tar
# key: ${{ runner.os }}-${{ env.cache-name }}-${{ github.run_id }}
# - name: Load built image
# run: |
# docker load --input app.tar
# - name: Install docker compose
# run: |
# sudo curl -SL https://github.com/docker/compose/releases/download/v2.20.0/docker-compose-linux-x86_64 -o /usr/local/bin/docker-compose
# sudo chmod +x /usr/local/bin/docker-compose
# - name: Bring test env up
# run: |
# make test_env.up
# - name: Prepare for tests
# run: |
# make test_env.prepare
# - name: Run mutations
# run: |
# make test_env.run_mutation
30 changes: 0 additions & 30 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -232,42 +232,12 @@ test_env.upload:
docker-compose exec worker make test_env.container_upload_test_results CODECOV_UPLOAD_TOKEN=${CODECOV_UPLOAD_TOKEN} CODECOV_URL=${CODECOV_URL}

test_env.container_upload:
codecovcli -u ${CODECOV_URL} do-upload --flag latest-uploader-overall
codecovcli -u ${CODECOV_URL} do-upload --flag unit --file unit.coverage.xml
codecovcli -u ${CODECOV_URL} do-upload --flag integration --file integration.coverage.xml

test_env.container_upload_test_results:
codecovcli -v -u ${CODECOV_URL} do-upload --report-type test_results || true

test_env.static_analysis:
docker-compose exec worker make test_env.container_static_analysis CODECOV_STATIC_TOKEN=${CODECOV_STATIC_TOKEN}

test_env.label_analysis:
docker-compose exec worker make test_env.container_label_analysis CODECOV_STATIC_TOKEN=${CODECOV_STATIC_TOKEN}

test_env.ats:
docker-compose exec worker make test_env.container_ats CODECOV_UPLOAD_TOKEN=${CODECOV_UPLOAD_TOKEN}

test_env.container_static_analysis:
codecovcli -u ${CODECOV_URL} static-analysis --token=${CODECOV_STATIC_TOKEN}

test_env.container_label_analysis:
codecovcli -u ${CODECOV_URL} label-analysis --base-sha=${merge_sha} --token=${CODECOV_STATIC_TOKEN}

test_env.container_ats:
codecovcli -u ${CODECOV_URL} --codecov-yml-path=codecov_cli.yml do-upload --plugin pycoverage --plugin compress-pycoverage --flag onlysomelabels --fail-on-error

test_env.run_mutation:
docker-compose exec worker make test_env.container_mutation

test_env.container_mutation:
apt-get install -y git
git diff origin/main ${full_sha} > data.patch
pip install mutmut[patch]
mutmut run --use-patch-file data.patch || true
mkdir /tmp/artifacts;
mutmut junitxml > /tmp/artifacts/mut.xml

test_env:
make test_env.up
make test_env.prepare
Expand Down
12 changes: 3 additions & 9 deletions codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,10 @@ codecov:
require_ci_to_pass: false
notify:
wait_for_ci: false

comment:
show_critical_paths: true
layout: "reach,diff,flags,components,tree,betaprofiling"
beta_groups:
- "labels"
flag_management:
individual_flags:
- name: "onlysomelabels"
carryforward: true
carryforward_mode: "labels"
layout: "reach,diff,flags,components,tree"

component_management:
default_rules:
statuses:
Expand Down
4 changes: 0 additions & 4 deletions codecov_cli.yml

This file was deleted.

Empty file removed service_ids
Empty file.
3 changes: 3 additions & 0 deletions services/report/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -756,6 +756,7 @@ def create_new_report_for_commit(self, commit: Commit) -> Report:
"worker_service_report_carryforward_base_not_found", 1
)
return Report()

parent_report = self.get_existing_report_for_commit(parent_commit)
if parent_report is None:
log.warning(
Expand All @@ -767,13 +768,15 @@ def create_new_report_for_commit(self, commit: Commit) -> Report:
),
)
return Report()

flags_to_carryforward = [
flag_name
for flag_name in parent_report.get_flag_names()
if self.current_yaml.flag_has_carryfoward(flag_name)
]
if not flags_to_carryforward:
return Report()

paths_to_carryforward = get_paths_from_flags(
self.current_yaml, flags_to_carryforward
)
Expand Down
5 changes: 0 additions & 5 deletions setup.cfg

This file was deleted.

0 comments on commit 6f7044e

Please sign in to comment.