Skip to content

add comment to Prepare function

54ab044
Select commit
Loading
Failed to load commit list.
Open

fix(database)!: use transactions tied to repo counters for hook and build to avoid collisions #1353

add comment to Prepare function
54ab044
Select commit
Loading
Failed to load commit list.
Codecov / codecov/project failed Dec 31, 2025 in 0s

58.36% (target 90.00%)

View this Pull Request on Codecov

58.36% (target 90.00%)

Details

Codecov Report

❌ Patch coverage is 59.64912% with 69 lines in your changes missing coverage. Please review.
✅ Project coverage is 58.36%. Comparing base (fbe4720) to head (54ab044).

Files with missing lines Patch % Lines
api/build/compile_publish.go 0.00% 23 Missing ⚠️
api/webhook/post.go 0.00% 8 Missing ⚠️
database/build/create.go 65.21% 4 Missing and 4 partials ⚠️
database/hook/create.go 65.21% 4 Missing and 4 partials ⚠️
api/build/plan.go 0.00% 5 Missing ⚠️
api/types/repo.go 60.00% 2 Missing and 2 partials ⚠️
api/repo/repair.go 0.00% 3 Missing ⚠️
scm/github/app_install.go 0.00% 3 Missing ⚠️
scm/github/repo.go 77.77% 1 Missing and 1 partial ⚠️
api/repo/create.go 0.00% 1 Missing ⚠️
... and 4 more

❌ Your project check has failed because the head coverage (58.36%) is below the target coverage (90.00%). You can increase the head coverage or adjust the target coverage.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1353      +/-   ##
==========================================
+ Coverage   58.16%   58.36%   +0.20%     
==========================================
  Files         646      645       -1     
  Lines       24931    24864      -67     
==========================================
+ Hits        14500    14511      +11     
+ Misses       9767     9681      -86     
- Partials      664      672       +8     
Files with missing lines Coverage Δ
api/hook/create.go 0.00% <ø> (ø)
api/types/build.go 98.10% <100.00%> (+<0.01%) ⬆️
compiler/native/compile.go 73.60% <100.00%> (ø)
compiler/native/transform.go 68.75% <ø> (-18.60%) ⬇️
compiler/types/pipeline/build.go 85.45% <100.00%> (+12.57%) ⬆️
database/repo/table.go 100.00% <ø> (ø)
database/types/repo.go 88.88% <100.00%> (+0.13%) ⬆️
mock/server/repo.go 0.00% <ø> (ø)
api/repo/create.go 0.00% <0.00%> (ø)
api/repo/update.go 0.00% <0.00%> (ø)
... and 12 more
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.