-
Notifications
You must be signed in to change notification settings - Fork 7
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
Badges for flags does not work for my project #308
Comments
Hi @Sajjon , Did you set |
@drazisil-codecov The commit hmm...The |
@Sajjon , Can you link me where in your CI pipeline for are calling the Codecov uploader? I don't see any chaks from Codecov on any of the newer commits, so I want to see what happened during the upload. |
@drazisil-codecov I provided that in my initial post, see the three links under Additional Context |
See report from today: radixdlt/sargon#37 (comment) CodeCov is working beatifully, we really love the tool, just that badges for flags does not work. And what you found was strange, that https://app.codecov.io/github/radixdlt/Sargon/commits only shows 8 days old commits.... |
Hi @Sajjon Because that's the last commit on your default branch. Looking into badges still. |
@Sajjon , And that commit doesn't have flag data. Your recent ones do https://codecov.io/gh/radixdlt/Sargon/branch/uniffi-exposed/graph/badge.svg?token=8QPKIUSAQD&flag=rust, but they aren't on your default branch (note the change in the URL) |
@drazisil-codecov ahh I see my error, the reason why Codecov does not see newer commits, I've accidentally specified |
Hi @Sajjon Yes, that is correct. Without the branch being passed, like in my link above, it shows the default branch. Which, didn't have flag data 8 days ago :) |
silly me! I will come back soon and confirm that flag badges work, when I've fixed my silly mistake! |
@drazisil-codecov works like a charm, thanks for helping me! See README I would just like to ask you if you could check with your colleagues (if you are not yourself in charge ofc ) if you can add support for customizing the "badge text", which was requested on community.codecov 2 years ago. Since it is not possible today, I had to make this somewhat ugly markdown table for my badges: This would be very pretty if I could use the |
@Sajjon I have repeatedly begged Codecov NOT to put me in charge! lol @rohan-at-sentry , before I create a new feature request, can you take a peek at https://community.codecov.com/t/how-to-change-badge-text/3584 ? I really thought I saw that as a feature request before, but I can only find #106, which doesn't appear to cover changing the text on the badge. |
@Sajjon @drazisil-codecov - I'm creating a feature request for customizing the badge text (#317) , and closing out this issue. |
Bug / Help needed
Badges for specific flags does not work in open source project "Sargon" (github repo, codecov)
Environment
Brave 1.64.109
macOS 14.2
Reproduce
Example of working repo
See this open source repo named "fhircore", clicking here shows its:
"Repo" badge
In this PR see see three flags: [engine, geowidget, quest]
So I try badges for these flags, by appending the
&flag=<FLAG>
query param to the base badge url, at it works, for all three!My non working repo
In my repo Sargon I recently added support for three flags: rust, kotlin and swift, you see them working e.g. in this PR:
So I now expect, just like the "fhircore" repo, to be able to generate badges for these three flags! Alas, it does not work!
The "repo badge" works for Sargon. But when I try adding the
flag=<FLAG>
e.g.flag=rust
query parameter, like this;https://codecov.io/gh/radixdlt/Sargon/graph/badge.svg?token=8QPKIUSAQD&flag=rust
it does not work, shows as "unknown".
Neither does the two other flags: swift nor kotlin work :/
I have even enabled "flag analysis", and you can see all the flags here...
I did not work before when I did not have a
codecov.yml
and does not work when I the one from the working repo "fhircore", here is mine (with carryforward flags enabled, not sure it relates... but that is what "fhircore" used).Expected behavior
I expected to be able to get "flag based badges" to work in Sargon, just like the "fhircore" repo has....
Additional Context
Here is the Github workflow (CI) for tests that produced the reports I took a screenshot of above, it has a Rust tests step, Swift tests step and Kotlin tests step, each one uploads to code cov using their approriate flag, see:
upload with "rust" flag
upload with "kotlin" flag
upload with "swift" flag
And once again, as seen in PR Codecov successfully produces a report with all the flags, so I really do not understand why I cannot get the per Flag Badges to work?
Please help :) thank you!
The text was updated successfully, but these errors were encountered: