Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove usage of codecov ATS feature #887

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 0 additions & 61 deletions .github/actions/run-ats/action.yml

This file was deleted.

57 changes: 0 additions & 57 deletions .github/actions/run-ats/ats.sh

This file was deleted.

4 changes: 0 additions & 4 deletions .github/actions/run-ats/collect.sh

This file was deleted.

4 changes: 0 additions & 4 deletions .github/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,22 +39,18 @@ component_management:
flag_management:
default_rules:
carryforward: true
carryforward_mode: 'labels'
statuses:
- type: project
individual_flags:
- name: unit-tests
carryforward: true
carryforward_mode: 'labels'
statuses:
- type: 'project'
- type: 'patch'
- name: codemod-tests
carryforward: true
carryforward_mode: 'labels'
- name: integration-tests
carryforward: true
carryforward_mode: 'labels'
comment:
layout: "condensed_header, condensed_files"
hide_project_coverage: true
Expand Down
44 changes: 28 additions & 16 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,21 @@ jobs:
- name: Setup environment
uses: ./.github/actions/setup-environment

- name: Run ATS and Tests
uses: ./.github/actions/run-ats
timeout-minutes: 15
- name: Run tests
shell: bash
run: |
uv run --frozen pytest --cov \
-o junit_suite_name="${{ github.job }}" \
-n auto \
-vv \
--cov-append \
--timeout 15 \
"tests/unit"

- uses: ./.github/actions/report
with:
default_tests: "tests/unit"
codecov_static_token: ${{ secrets.CODECOV_STATIC_TOKEN }}
flag: unit-tests
codecov_token: ${{ secrets.CODECOV_TOKEN }}
collect_args: "--timeout 15"
codecov_flags: unit-tests

codemod-tests:
needs: access-check
Expand Down Expand Up @@ -71,18 +77,24 @@ jobs:
- name: Cache oss-repos
uses: ./.github/actions/setup-oss-repos

- name: Run ATS and Tests
uses: ./.github/actions/run-ats
- name: Run tests
timeout-minutes: 15
shell: bash
run: |
TESTS_TO_RUN=$(uv run --frozen pytest --collect-only --size=${{matrix.size}} --sync-graph=${{matrix.sync_graph}} -q --disable-warnings --no-summary --no-header)
TESTS_TO_RUN=$(echo "${TESTS_TO_RUN}" | head -n -2)
echo $TESTS_TO_RUN | xargs uv run --frozen pytest --cov \
-o junit_suite_name="${{ github.job }}" \
-n auto \
-vv \
--cov-append \
--timeout 15 \
"tests/integration/codemod/test_codemods.py"

- uses: ./.github/actions/report
with:
default_tests: "tests/integration/codemod/test_codemods.py"
codecov_static_token: ${{ secrets.CODECOV_STATIC_TOKEN }}
flag: codemod-tests-${{matrix.size}}-${{matrix.sync_graph}}
codecov_token: ${{ secrets.CODECOV_TOKEN }}
collect_args: "--size=${{matrix.size}} --sync-graph=${{matrix.sync_graph}}"
ats_collect_args: "--size=${{matrix.size}},--sync-graph=${{matrix.sync_graph}},"
codecov_flags: codemod-tests-${{matrix.size}}-${{matrix.sync_graph}}
env:
GITHUB_WORKSPACE: $GITHUB_WORKSPACE

parse-tests:
needs: access-check
Expand Down
Loading