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

integration: make PGVERSION a pattern #1147

Merged
merged 1 commit into from
Dec 7, 2023

Conversation

hdonnay
Copy link
Member

@hdonnay hdonnay commented Nov 17, 2023

#1140 got me thinking about how the database harness works for not-Linux, so I took a look.
Turns out the project that builds the binaries has added more architectures in the meantime,
so I reworked things to not pin versions as aggressively and support the current suite of OS + architecture.

This change makes it so that specifying a pattern like latest or 15 looks at the bill of materials for the embedded PostgreSQL binaries and fetches a matching version. Previously, this environment variable needed to be a full <major>.<minor>.<patch> version. That's still allowed if a specific version is needed.

@hdonnay
Copy link
Member Author

hdonnay commented Nov 17, 2023

TODO:

  • Use the BOM "lastUpdated" instead of a week.
    This is actually easier with a fixed time, so never mind.

Copy link

codecov bot commented Nov 17, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (bc0867c) 52.09% compared to head (53a666f) 52.06%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1147      +/-   ##
==========================================
- Coverage   52.09%   52.06%   -0.04%     
==========================================
  Files         220      220              
  Lines       16843    16843              
==========================================
- Hits         8775     8769       -6     
- Misses       7259     7264       +5     
- Partials      809      810       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@hdonnay hdonnay marked this pull request as ready for review November 17, 2023 21:15
@hdonnay hdonnay requested a review from a team as a code owner November 17, 2023 21:15
@hdonnay hdonnay requested review from crozzy and removed request for a team November 17, 2023 21:15
crozzy
crozzy previously approved these changes Nov 17, 2023
@hdonnay
Copy link
Member Author

hdonnay commented Nov 20, 2023

Needed to make changes after doing another bout of testing from a clean cache, so re-requesting review.

@hdonnay hdonnay added the needs-changelog Label for PRs that need a changelog note. label Nov 29, 2023
This change makes it so that specifying a pattern like `latest` or `15`
looks at the bill of materials for the embedded PostgreSQL binaries and
fetches a matching version. Previously, this environment variable needed
to be a full `<major>.<minor>.<patch>` version. That's still allowed if
a specific version is needed.

Signed-off-by: Hank Donnay <hdonnay@redhat.com>
Copy link
Contributor

@crozzy crozzy left a comment

Choose a reason for hiding this comment

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

LGTM

t.Fatal(err)
}

// Open the jar (note a jar is just a zip with specific contents) and find
Copy link
Contributor

Choose a reason for hiding this comment

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

:D

@hdonnay
Copy link
Member Author

hdonnay commented Dec 7, 2023

/fast-forward

@github-actions github-actions bot merged commit 53a666f into quay:main Dec 7, 2023
9 checks passed
@hdonnay hdonnay deleted the hack/CI-helpers branch December 7, 2023 19:36
@hdonnay hdonnay removed the needs-changelog Label for PRs that need a changelog note. label Dec 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants