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

CI: Leave out unnecessary build files from binary artifact #9135

Merged
merged 5 commits into from
Sep 25, 2024

Conversation

hlinnaka
Copy link
Contributor

The pg_install/build directory contains .o files and such intermediate results from the build, which are not needed in the final tarball. Except for src/test/regress/regress.so and a few other .so files in that directory; keep those.

This reduces the size of the neon-Linux-X64-release-artifact.tar.zst artifact from about 1.5 GB to 700 MB.

(I attempted this a long time ago already, by moving the build/ directory out of pg_install altogether, see PR #2127. But I never got around to finish that work.)

Copy link

github-actions bot commented Sep 24, 2024

4986 tests run: 4822 passed, 0 failed, 164 skipped (full report)


Flaky tests (5)

Postgres 17

Postgres 16

Postgres 15

Postgres 14

Code coverage* (full report)

  • functions: 32.0% (7478 of 23372 functions)
  • lines: 50.0% (60221 of 120545 lines)

* collected from Rust tests only


The comment gets automatically updated with the latest test results
5dce047 at 2024-09-25T14:20:24.730Z :recycle:

The pg_install/build directory contains .o files and such intermediate
results from the build, which are not needed in the final
tarball. Except for src/test/regress/regress.so and a few other .so
files in that directory; keep those.

This reduces the size of the neon-Linux-X64-release-artifact.tar.zst
artifact from about 1.5 GB to 700 MB.

(I attempted this a long time ago already, by moving the build/
directory out of pg_install altogether, see PR #2127. But I never got
around to finish that work.)
@hlinnaka hlinnaka force-pushed the reduce-crap-in-artifact-tarballs branch from c095277 to f5a2f7b Compare September 25, 2024 07:31
should be /tmp/neon/pg_install, not /tmp/neon/pg_install/pg_install

Co-authored-by: Alexander Bayandin <[email protected]>
Copy link
Member

@bayandin bayandin left a comment

Choose a reason for hiding this comment

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

Nice!

@hlinnaka hlinnaka merged commit 6f2333f into main Sep 25, 2024
82 checks passed
@hlinnaka hlinnaka deleted the reduce-crap-in-artifact-tarballs branch September 25, 2024 16:07
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.

2 participants