-
-
Notifications
You must be signed in to change notification settings - Fork 491
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
Generate coverage results and upload to codecov #33355
Comments
Branch pushed to git repo; I updated commit sha1. New commits:
|
This comment has been minimized.
This comment has been minimized.
Branch pushed to git repo; I updated commit sha1. New commits:
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:6
Use |
comment:7
Or use |
Branch pushed to git repo; I updated commit sha1. New commits:
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:15
Replying to @mkoeppe:
Thanks that worked well! (Why is this command actually necessary? I thought its the job of I just noticed that elementary things like git and sudo are missing in the standard docker image. Would it make sense to add these tools? |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:17
Replying to @tobiasdiez:
This is a goal that has not been achieved yet. What |
comment:18
Replying to @tobiasdiez:
I added You don't need |
comment:19
Replying to @mkoeppe:
It's more for convenience and coherence - normally github actions don't run as sudo. |
This comment has been minimized.
This comment has been minimized.
comment:21
I am getting |
comment:22
The link is working for me. Maybe a temporary issues on their side? |
comment:23
Working now for me too |
comment:24
Looking great, thanks for this work! |
Reviewer: Matthias Koeppe |
comment:25
Thanks for the review! |
Changed branch from public/build/codecov to |
comment:27
currently not working in the "Build and Test" badge, shouting :
|
Changed commit from |
comment:28
Which ticket shows this behavior? It is still working correctly in the latest beta: https://github.com/sagemath/sagetrac-mirror/runs/5710760370?check_suite_focus=true |
comment:29
see #33629 for example |
comment:30
Okay, was actually an issue with pyright. Fixed in #33631. |
comment:31
Can we get the badge now? |
comment:32
the badge "Build & Test" is still broken by problems about coverage for example, see https://github.com/sagemath/sagetrac-mirror/runs/6117339523?check_suite_focus=true shouting
|
comment:33
I've opened #33747 for this |
Use coverage.py to generate coverage results for the sage source code based on the test execution. In contrast to sage's naïve coverage tool, this not only looks for the existence of doctests for a method but actually measures which lines are actually executed by the tests.
These coverage results are then uploaded to codecov, where one can inspect the results. See https://codecov.io/gh/sagemath/sagetrac-mirror/tree/ec045eb0168b937e35375e803979975df4aa6564/src/sage for the current coverage. Codecov also displays the coverage of changed files, so that one can easily check if changes are indeed covered by tests. An example would be https://codecov.io/gh/sagemath/sagetrac-mirror/commit/ec045eb0168b937e35375e803979975df4aa6564 but there are of course no changes in python files in this ticket, so it shows nothing interesting. For a more interesting example from a different project see eg https://app.codecov.io/gh/JabRef/jabref/commit/2494509f2d75426bd7369b358880e7ffed2a47b4. The idea would be to add the link to such a report as a new badge in the trac ticket (after this ticket here is merged).
Run: https://github.com/sagemath/sagetrac-mirror/actions/workflows/build.yml?query=branch%3Apublic/build/codecov
CC: @mkoeppe
Component: build
Author: Tobias Diez
Branch:
ec045eb
Reviewer: Matthias Koeppe
Issue created by migration from https://trac.sagemath.org/ticket/33355
The text was updated successfully, but these errors were encountered: