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

Test that pgrx can build after publishing #1796

Conversation

workingjubilee
Copy link
Member

@workingjubilee workingjubilee commented Aug 9, 2024

Test that pgrx will always build after we publish it. It should never again take an excessive amount of time to release pgrx, because we will always be confident we are ready to release. This does not finish making the release "turnkey", but it does take care of every obstacle to such.

Note that there is a technicality: we are "only" testing that our package builds. We are not actually pulling a published-to-cargo release and testing it. We are not running the cargo publish --dry-run command, either, because there is no cargo publish --workspace. Instead, we are packaging the workspace and rebuilding that package. This unfortunately demands that we factor out all the packages in the workspace that are not going to be published.

Other details of the refactoring are informed by these oddities:

@workingjubilee
Copy link
Member Author

Will deal with the CI failures when I wake up.

@workingjubilee
Copy link
Member Author

Just need to refactor rerunning the individual crate tests.

@workingjubilee
Copy link
Member Author

We almost certainly are now doing redundant build/test cycling but that's fine because I'm going to work on cutting all that down LATER.

@workingjubilee
Copy link
Member Author

finally.

@workingjubilee workingjubilee changed the title Refactor workspace to support package testing Test that pgrx can build after publishing Aug 9, 2024
@workingjubilee workingjubilee merged commit 66fa6c9 into pgcentralfoundation:develop Aug 9, 2024
12 checks passed
@workingjubilee workingjubilee deleted the refactor-workspace-to-support-packaging branch August 9, 2024 23:05
workingjubilee added a commit that referenced this pull request Aug 14, 2024
One last essentially-administrative change, and part of the reason that
I did all the mucking-about in #1796. We have a lot of code in
pgrx-pg-sys's build.rs, and it's high time that we actually split out
the real crate that it is. Currently this *just* moves that around,
rather than doing any refactoring, to make the git blame trackable.

The packaging test generates a sufficiently large cache that it cannot
be done for every version of pgrx in the combinatoric fashion that we
usually do, thus, we don't anymore! We simply run it for one version.
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.

1 participant