Skip to content

Commit e774e34

Browse files
authored
Update codecov flags (#254)
1 parent b8c5c15 commit e774e34

File tree

3 files changed

+13
-19
lines changed

3 files changed

+13
-19
lines changed

.github/actions/run_ats/action.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ runs:
4646
run: |
4747
echo "pwd: $(pwd)" # FIXME: for debugging
4848
TESTS_TO_RUN=$(cat codecov_ats/tests_to_run.txt)
49+
if [ -z "$TESTS_TO_RUN" ]; then
50+
echo "No tests to run, skipping..."
51+
exit 0
52+
fi
4953
echo $TESTS_TO_RUN | xargs uv run pytest --cov \
5054
-o junit_suite_name="${{ github.job }}" \
5155
-n auto \

.github/codecov.yml

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ component_management:
1616
threshold: 0 # Shouldn't remove coverage
1717
- type: patch
1818
target: 50 # Language specific featues must be 100% covered
19+
flags:
20+
- smart-tests
1921
- component_id: codegen-sdk-typescript
2022
name: codegen-sdk-typescript
2123
paths:
@@ -37,30 +39,18 @@ flag_management:
3739
statuses:
3840
- type: project
3941
individual_flags:
40-
- name: smart-tests
42+
- name: unit-tests
4143
carryforward: true
4244
carryforward_mode: 'labels'
4345
statuses:
4446
- type: 'project'
4547
- type: 'patch'
46-
- name: smart-tests-codemod
48+
- name: codemod-tests
4749
carryforward: true
4850
carryforward_mode: 'labels'
49-
statuses:
50-
- type: 'project'
51-
- type: 'patch'
52-
- name: smart-tests-codemod-oss
51+
- name: integration-tests
5352
carryforward: true
5453
carryforward_mode: 'labels'
55-
statuses:
56-
- type: 'project'
57-
- type: 'patch'
58-
- name: smart-tests-integration-tests
59-
carryforward: true
60-
carryforward_mode: 'labels'
61-
statuses:
62-
- type: 'project'
63-
- type: 'patch'
6454
comment:
6555
layout: "condensed_header, condensed_files"
6656
hide_project_coverage: true

.github/workflows/unit-tests.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ jobs:
2727
codecov_static_token: ${{ secrets.CODECOV_STATIC_TOKEN }}
2828
codecov_token: ${{ secrets.CODECOV_TOKEN }}
2929
collect_args: "--timeout 5"
30-
codecov_flags: smart-tests
31-
test_codemods:
30+
codecov_flags: unit-tests
31+
codemod-tests:
3232
# changing the following value will significantly affect github's cost. Be careful and consult with the team before changing it.
3333
runs-on: ubuntu-latest-32
3434
strategy:
@@ -58,7 +58,7 @@ jobs:
5858
codecov_token: ${{ secrets.CODECOV_TOKEN }}
5959
collect_args: "--size=${{matrix.size}} --sync-graph=${{matrix.sync_graph}}"
6060
ats_collect_args: "--size=${{matrix.size}},--sync-graph=${{matrix.sync_graph}},"
61-
codecov_flags: smart-tests-codemod-tests-${{matrix.size}}-${{matrix.sync_graph}}
61+
codecov_flags: codemod-tests-${{matrix.size}}-${{matrix.sync_graph}}
6262
env:
6363
GITHUB_WORKSPACE: $GITHUB_WORKSPACE
6464

@@ -186,5 +186,5 @@ jobs:
186186
tests/integration/codegen
187187
- uses: ./.github/actions/report
188188
with:
189-
flag: smart-tests-integration-tests
189+
flag: integration-tests
190190
codecov_token: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)