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

Vc/updates #9

Merged
merged 6 commits into from
Dec 19, 2023
Merged

Vc/updates #9

merged 6 commits into from
Dec 19, 2023

Conversation

DoctorVin
Copy link
Contributor

Lots of changes here:

  1. upgrade to CrDB v23.1.13
  2. upgrade to sqlboiler 4.15 using the metal-toolbox fork of the crdb driver. Note: even this doesn't quite give us what we need, so I need to submit a PR against the forked repo.
  3. Fixed up some lint errors.
  4. made sure that the ORM layer was created with --enable-soft-deletes (which resolved a BUNCH of weird test failures).

I tested by doing make test-database, make unit-test, and make integration-test. Everything came up clean.

Copy link

codecov bot commented Dec 18, 2023

Codecov Report

Attention: 2 lines in your changes are missing coverage. Please review.

Comparison is base (2144f38) 72.72% compared to head (09d67b0) 72.74%.
Report is 1 commits behind head on main.

Files Patch % Lines
internal/dbtools/testtools.go 66.66% 0 Missing and 1 partial ⚠️
pkg/api/v1/router_server.go 0.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main       #9      +/-   ##
==========================================
+ Coverage   72.72%   72.74%   +0.01%     
==========================================
  Files          38       38              
  Lines        3733     3735       +2     
==========================================
+ Hits         2715     2717       +2     
  Misses        760      760              
  Partials      258      258              
Flag Coverage Δ
unittests 72.74% <50.00%> (+0.01%) ⬆️

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.

Comment on lines +28 to +30
// This is a dummy variable to prevent unused regexp import error
var _ = &regexp.Regexp{}

Copy link

@coffeefreak101 coffeefreak101 Dec 18, 2023

Choose a reason for hiding this comment

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

nit: You should actually be able to handle this at the import by doing:

import (
    _ "regexp"
)

edit: I see this is a generated file, so not sure if you added this line.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yep, not me, that's the generator.

@DoctorVin DoctorVin merged commit bb58a27 into main Dec 19, 2023
3 checks passed
@DoctorVin DoctorVin deleted the vc/updates branch December 19, 2023 15:35
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.

3 participants