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

Slightly improve test factories #482

Merged
merged 1 commit into from
Jan 20, 2025
Merged

Conversation

Swatinem
Copy link
Contributor

Whic working on the repo cleanup, I noticed frequent test failures related to Branch.name not being unique enough. This fixes that along with some other improvements, like being able to use CommitWithReportFactory in worker which was not possible previously because of imports that are only valid within api.

Whic working on the repo cleanup, I noticed frequent test failures related to `Branch.name` not being unique enough.
This fixes that along with some other improvements, like being able to use `CommitWithReportFactory` in `worker` which was not possible previously because of imports that are only valid within `api`.
@Swatinem Swatinem requested a review from a team January 17, 2025 11:04
@Swatinem Swatinem self-assigned this Jan 17, 2025
@Swatinem
Copy link
Contributor Author

https://github.com/codecov/worker/actions/runs/12828858623/job/35773980100?pr=973 and thats exactly one of those unique constraint failures caused by Branch.name not being unique enough :-D

@Swatinem Swatinem added this pull request to the merge queue Jan 20, 2025
Merged via the queue into main with commit d1762e3 Jan 20, 2025
6 checks passed
@Swatinem Swatinem deleted the swatinem/improve-factories branch January 20, 2025 09:16
Copy link

codecov bot commented Jan 20, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.94%. Comparing base (191837f) to head (5735bf1).
Report is 5 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #482      +/-   ##
==========================================
- Coverage   90.34%   89.94%   -0.41%     
==========================================
  Files         429      324     -105     
  Lines       12904     9158    -3746     
  Branches     2106     1630     -476     
==========================================
- Hits        11658     8237    -3421     
+ Misses       1135      858     -277     
+ Partials      111       63      -48     
Flag Coverage Δ
shared-docker-uploader ?

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants