Skip to content

ROX-29860: bump pgx to v5#15851

Merged
RTann merged 1 commit intomasterfrom
ROX-29860
Jun 27, 2025
Merged

ROX-29860: bump pgx to v5#15851
RTann merged 1 commit intomasterfrom
ROX-29860

Conversation

@RTann
Copy link
Copy Markdown
Contributor

@RTann RTann commented Jun 26, 2025

Description

pgx/v4 reaches EOL soon. Claircore has already bumped its pgx version to v5. We used v4 solely because Claircore did. Now that is doesn't, let's update our Claircore version and update our own usage of pgx to v5, too.

Note: the ctxlock package was also updated to v2 for the related Claircore change, so updating it here, too

User-facing documentation

Testing and quality

  • the change is production ready: the change is GA, or otherwise the functionality is gated by a feature flag
  • CI results are inspected

Automated testing

no

How I validated my change

If it builds, it builds

@RTann RTann requested a review from a team as a code owner June 26, 2025 22:49
Copy link
Copy Markdown
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

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

Hey @RTann - I've reviewed your changes - here's some feedback:

  • Run go mod tidy to remove the now-unused indirect github.com/jackc/pgx/v4 requirement and ensure no stale pgx/v4 references remain.
  • Double-check that all pgx/v5 API changes (connection pool Acquire/Release, Exec/Query signatures, etc.) are correctly applied and no v4 method calls persist.
  • After bumping ctxlock to v2, verify that lock semantics and concurrency behavior in your indexer and matcher routines haven’t regressed.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- Run `go mod tidy` to remove the now-unused indirect `github.com/jackc/pgx/v4` requirement and ensure no stale pgx/v4 references remain.
- Double-check that all pgx/v5 API changes (connection pool Acquire/Release, Exec/Query signatures, etc.) are correctly applied and no v4 method calls persist.
- After bumping `ctxlock` to v2, verify that lock semantics and concurrency behavior in your indexer and matcher routines haven’t regressed.

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

@red-hat-konflux
Copy link
Copy Markdown
Contributor

Caution

There are some errors in your PipelineRun template.

PipelineRun Error
quay-proxy no kind "ImageDigestMirrorSet" is registered for version "config.openshift.io/v1" in scheme "k8s.io/client-go/kubernetes/scheme/register.go:83"

@rhacs-bot
Copy link
Copy Markdown
Contributor

rhacs-bot commented Jun 26, 2025

Images are ready for the commit at 6598909.

To use with deploy scripts, first export MAIN_IMAGE_TAG=4.9.x-133-g65989090fd.

@janisz
Copy link
Copy Markdown
Contributor

janisz commented Jun 27, 2025

We can get rid of github.com/jackc/pgtype too

@RTann
Copy link
Copy Markdown
Contributor Author

RTann commented Jun 27, 2025

/retest

@codecov
Copy link
Copy Markdown

codecov bot commented Jun 27, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 48.79%. Comparing base (6b2fb71) to head (6598909).
Report is 6 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #15851      +/-   ##
==========================================
- Coverage   48.80%   48.79%   -0.01%     
==========================================
  Files        2591     2591              
  Lines      190614   190614              
==========================================
- Hits        93023    93019       -4     
- Misses      90289    90292       +3     
- Partials     7302     7303       +1     
Flag Coverage Δ
go-unit-tests 48.79% <ø> (-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.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@openshift-ci
Copy link
Copy Markdown

openshift-ci bot commented Jun 27, 2025

@RTann: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/gke-qa-e2e-tests 6598909 link false /test gke-qa-e2e-tests

Full PR test history. Your PR dashboard.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

@RTann RTann merged commit 2fe6390 into master Jun 27, 2025
90 of 91 checks passed
@RTann RTann deleted the ROX-29860 branch June 27, 2025 20:11
@rhacs-bot
Copy link
Copy Markdown
Contributor

The backport to release-4.8 failed:

The process '/usr/bin/git' failed with exit code 1

To backport manually, run these commands in your terminal:

# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add .worktrees/backport-release-4.8 release-4.8
# Navigate to the new working tree
cd .worktrees/backport-release-4.8
# Create a new branch
git switch --create backport-15851-to-release-4.8
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 2fe63904442805243a5e081cd856220a7f4d9832
# Push it to GitHub
git push --set-upstream origin backport-15851-to-release-4.8
# Go back to the original working tree
cd ../..
# Delete the working tree
git worktree remove .worktrees/backport-release-4.8

Then, create a pull request where the base branch is release-4.8 and the compare/head branch is backport-15851-to-release-4.8.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants