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

chore: upload coverage of unittests together #2301

Merged

Conversation

matejvasek
Copy link
Contributor

@matejvasek matejvasek commented May 13, 2024

Upload results of unit tests on various operating systems at once as opposed to uploading them individually.

Before this each run for respective OS carried out upload to codecov
server however this consumes codecov tokenless upload limit.

Signed-off-by: Matej Vašek <mvasek@redhat.com>
@knative-prow knative-prow bot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label May 13, 2024
@knative-prow knative-prow bot requested review from maximilien and vyasgun May 13, 2024 15:39
@knative-prow knative-prow bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 13, 2024
Copy link

codecov bot commented May 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 64.76%. Comparing base (e0354f4) to head (0023cee).
Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2301      +/-   ##
==========================================
+ Coverage   60.53%   64.76%   +4.22%     
==========================================
  Files         127      127              
  Lines       14779    11476    -3303     
==========================================
- Hits         8946     7432    -1514     
+ Misses       4933     3145    -1788     
+ Partials      900      899       -1     
Flag Coverage Δ
e2e-test 38.40% <ø> (-0.05%) ⬇️
e2e-test-oncluster 31.50% <ø> (-0.02%) ⬇️
e2e-test-oncluster-runtime 27.38% <ø> (?)
e2e-test-runtime-go 26.21% <ø> (?)
integration-tests 49.87% <ø> (+0.89%) ⬆️
unit-tests 49.32% <ø> (?)
unit-tests-macos-latest ?
unit-tests-ubuntu-latest ?
unit-tests-windows-latest ?

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@matejvasek matejvasek requested review from dsimansk, gauron99 and lkingland and removed request for maximilien and vyasgun May 13, 2024 15:54
@matejvasek
Copy link
Contributor Author

PTAL @dsimansk

Signed-off-by: Matej Vašek <mvasek@redhat.com>
@matejvasek matejvasek requested a review from dsimansk May 13, 2024 16:27
@knative-prow knative-prow bot added the lgtm Indicates that a PR is ready to be merged. label May 13, 2024
@dsimansk
Copy link
Contributor

dsimansk commented May 14, 2024

@matejvasek wrt/ Codecov ~6% drop. Isn't unified uploader missing some reports?

Update, actually it's stated in the dashboard. Hence different count of reports shouldn't be a problem, if we have same content, right?
Screenshot 2024-05-14 at 9 40 01

@matejvasek
Copy link
Contributor Author

@matejvasek wrt/ Codecov ~6% drop. Isn't unified uploader missing some reports?

Update, actually it's stated in the dashboard. Hence different count of reports shouldn't be a problem, if we have same content, right?

Yes, there should be less reports since three reports were merged into one. I have no idea why the coverage decreased.

@dsimansk
Copy link
Contributor

dsimansk commented May 14, 2024

@matejvasek wrt/ Codecov ~6% drop. Isn't unified uploader missing some reports?
Update, actually it's stated in the dashboard. Hence different count of reports shouldn't be a problem, if we have same content, right?

Yes, there should be less reports since three reports were merged into one. I have no idea why the coverage decreased.

Strangely, it reports head 14 uploads vs. now 6 uploads. It's really off.
Anyway, I'd suggest to keep monitorin PRs wrt/ codecov API rate limiting. And park unified uploader for now. WDYT?

@dsimansk dsimansk closed this May 14, 2024
@dsimansk dsimansk reopened this May 14, 2024
@matejvasek matejvasek closed this May 14, 2024
@matejvasek matejvasek reopened this May 14, 2024
@matejvasek matejvasek closed this May 14, 2024
@matejvasek matejvasek reopened this May 14, 2024
I would not expect that this would be needed for codecov upload.

Signed-off-by: Matej Vašek <mvasek@redhat.com>
@knative-prow knative-prow bot removed the lgtm Indicates that a PR is ready to be merged. label May 14, 2024
name: "Upload coverage"
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v4
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@matejvasek really surprising find. :)

@knative-prow knative-prow bot added the lgtm Indicates that a PR is ready to be merged. label May 15, 2024
Copy link

knative-prow bot commented May 15, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dsimansk, matejvasek

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [dsimansk,matejvasek]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@knative-prow knative-prow bot merged commit 0967035 into knative:main May 15, 2024
35 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants