Before submitting a topic, please confirm the following
I have searched for similar issues before creating this topic.
I have verified that my repository is using the Codecov GitHub app, if using GitHub
I have validated my codecov.yaml configuration file.
I have filled out the below sections to the best of my ability.
Description
I have uploaded several report with flag.
=> command I use: ./codecov -t <codetoken> -f coverage/clover.xml -c -F test
I would like to remove the test flag from my repo so that it doesn’t appear in my github check.
How can I do that?
CI/CD URL
Not relevant
Codecov Output
Not relevant
Expected Results
Remove flag from codecov
Actual Results
Can’t remove flag
Additional Information
I tried to Erase repo coverage content but it is showing me We were unable to erase this repo's content.
codecov:
require_ci_to_pass: false # Codecov would not wait for all other statuses to pass before sending its status.
notify:
wait_for_ci: false # Codecov would not wait for all CI statuses to complete before sending ours.
after_n_builds: 1 # number of reports Codecov should wait to receive before sending statuses
coverage:
precision: 2
round: down
status:
project:
default:
target: 70% # the required coverage value
threshold: 1% # the leniency in hitting the target
patch:
default:
target: 90%
threshold: 1%
comment:
layout: 'reach,diff,flags,files'
behavior: default # update, if exists. Otherwise post new
require_changes: false
require_base: no
require_head: no
flag_management:
default_rules: # the rules that will be followed for any flag added, generally
carryforward: false
statuses:
- type: project
target: 80%
- type: patch
target: 90%
individual_flags:
- name: backend
paths:
- backend/**
statuses:
- type: project
target: 80%
- type: patch
target: 90%
- name: mobile-app
paths:
- mobile-app/**
statuses:
- type: project
target: 60%
- type: patch
target: 90%
- name: mobile-app-ts-coverage
paths:
- mobile-app/**
statuses:
- type: project
target: 99%
- type: patch
target: 100%
- name: sorbet-coverage
paths:
- backend/**
statuses:
- type: project
target: 99%
- type: patch
target: 100%
Here is screenshot of some of my flags under codecov UI
I would like to remove all the test flag eg. test and test-clover (the test flag I create from my local console) from my listed flag.
Is it possible?
Thanks.
@kcsam, at this time, Erase Content will not delete the old flags, and support will not be able to remove them. However, we are working on that functionality (Erase Content will also remove all flags).
The ETA for the functionality is the end of the month if you can wait until then. Also, are you an admin to the repo?