Conversation
4c0e5ee to
e857549
Compare
hdonnay
left a comment
There was a problem hiding this comment.
In July 2025 v4 will reach end of life. This change updates claircore to use v5.
e857549 to
dd915e8
Compare
| @@ -0,0 +1,155 @@ | |||
| package types | |||
There was a problem hiding this comment.
This is copied directly from https://github.com/hdonnay/claircore/tree/hack/db-updates and allows claircore.Versions to Scan() natively (which is awesome). There are other ScanPlans/EncodePlans in that branch that would probably be nice to add at some point, but currently the version code is required to make versions function correctly with v5.
3f3c5e5 to
5c4894e
Compare
fa90f81 to
7dcc4af
Compare
1e5d892 to
d8ea3f3
Compare
There was a problem hiding this comment.
I think I'd rather this not change API and just grow the subpackage. So in a later PR, the New function becomes a func(context.Context, any) (*Locker, error) that always returns errors.ErrUnsupported and we can drop the pgx/v4 dependency.
Maybe the new types should just be in the datastore/postgres package?
There was a problem hiding this comment.
I updated to this, it does mean that we won't be able to seamlessly continue to use github.com/quay/claircore/pkg/ctxlock externally and github.com/quay/claircore/pkg/ctxlock/v2 will be more permanent but maybe I'm over-estimating the value of that.
There was a problem hiding this comment.
By new types do you mean v2.Locker?
There was a problem hiding this comment.
no, I mean the ctxlock package just hangs around and eventually becomes non-functional as users move to ctxlock/v2.
There was a problem hiding this comment.
Right that's what I think the PR state is right now, just wanted confirmation on
Maybe the new types should just be in the datastore/postgres package?
49d959e to
a4e0433
Compare
| go list -m | ||
| go mod download | ||
| go test -race ${RUNNER_DEBUG:+-v} "-coverprofile=${{ runner.temp }}/$(go list -m | tr / _).codecov.out" -covermode=atomic ./... | ||
| GOMAXPROCS=2 go test -race ${RUNNER_DEBUG:+-v} "-coverprofile=${{ runner.temp }}/$(go list -m | tr / _).codecov.out" -covermode=atomic ./... |
There was a problem hiding this comment.
Yeah, I'm not sure what to do here, throttling the traffic going to the DB seems to alleviate the CI failures that were cropping up previously, but it's not the most elegant solution. Maybe futz around with the pg settings?
There was a problem hiding this comment.
It's not meaningfully slower, so I guess leave it like this for now :/
a4e0433 to
4620dda
Compare
In July 2025 v4 will reach end of life. This change updates claircore to use v5. Signed-off-by: crozzy <joseph.crosland@gmail.com>
4620dda to
9a7ab02
Compare
|
/fast-forward |
|
Triggered from #1530 (comment) by @crozzy. Trying to fast forward Target branch ( commit 49f1591b598ff8aaa8cb324ae3714dfd3f1f0822 (HEAD -> main, origin/main)
Author: dependabot[bot] <dependabot[bot]@users.noreply.github.com>
Date: Mon Jun 9 03:56:47 2025 +0000
chore(deps): bump the golang-x group with 6 updates
Bumps the golang-x group with 6 updates:
| Package | From | To |
| --- | --- | --- |
| [golang.org/x/crypto](https://github.com/golang/crypto) | `0.38.0` | `0.39.0` |
| [golang.org/x/net](https://github.com/golang/net) | `0.40.0` | `0.41.0` |
| [golang.org/x/sync](https://github.com/golang/sync) | `0.14.0` | `0.15.0` |
| [golang.org/x/text](https://github.com/golang/text) | `0.25.0` | `0.26.0` |
| [golang.org/x/time](https://github.com/golang/time) | `0.11.0` | `0.12.0` |
| [golang.org/x/tools](https://github.com/golang/tools) | `0.33.0` | `0.34.0` |
Updates `golang.org/x/crypto` from 0.38.0 to 0.39.0
- [Commits](https://github.com/golang/crypto/compare/v0.38.0...v0.39.0)
Updates `golang.org/x/net` from 0.40.0 to 0.41.0
- [Commits](https://github.com/golang/net/compare/v0.40.0...v0.41.0)
Updates `golang.org/x/sync` from 0.14.0 to 0.15.0
- [Commits](https://github.com/golang/sync/compare/v0.14.0...v0.15.0)
Updates `golang.org/x/text` from 0.25.0 to 0.26.0
- [Release notes](https://github.com/golang/text/releases)
- [Commits](https://github.com/golang/text/compare/v0.25.0...v0.26.0)
Updates `golang.org/x/time` from 0.11.0 to 0.12.0
- [Commits](https://github.com/golang/time/compare/v0.11.0...v0.12.0)
Updates `golang.org/x/tools` from 0.33.0 to 0.34.0
- [Release notes](https://github.com/golang/tools/releases)
- [Commits](https://github.com/golang/tools/compare/v0.33.0...v0.34.0)
---
updated-dependencies:
- dependency-name: golang.org/x/crypto
dependency-version: 0.39.0
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: golang-x
- dependency-name: golang.org/x/net
dependency-version: 0.41.0
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: golang-x
- dependency-name: golang.org/x/sync
dependency-version: 0.15.0
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: golang-x
- dependency-name: golang.org/x/text
dependency-version: 0.26.0
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: golang-x
- dependency-name: golang.org/x/time
dependency-version: 0.12.0
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: golang-x
- dependency-name: golang.org/x/tools
dependency-version: 0.34.0
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: golang-x
...
Signed-off-by: dependabot[bot] <support@github.com>Pull request ( commit 9a7ab029d2cb7a526c44cad53c26c850d8118908 (pull_request/upgrade-to-pgx-v5)
Author: Joseph Crosland <jcroslan@redhat.com>
Date: Mon Apr 28 11:29:59 2025 -0700
chore: upgrade from pgx v4 to v5
In July 2025 v4 will reach end of life. This change updates claircore to
use v5.
Signed-off-by: crozzy <joseph.crosland@gmail.com>Fast forwarding $ git push origin 9a7ab029d2cb7a526c44cad53c26c850d8118908:main
To https://github.com/quay/claircore.git
! [remote rejected] 9a7ab029d2cb7a526c44cad53c26c850d8118908 -> main (refusing to allow a GitHub App to create or update workflow `.github/workflows/main.yml` without `workflows` permission)
error: failed to push some refs to 'https://github.com/quay/claircore.git' |
In July 2025 v4 will reach end of life. This change updates claircore to use v5.