Skip to content

Unify packaging#56

Closed
chilagrow wants to merge 29 commits intoferretdbfrom
unify-packaging
Closed

Unify packaging#56
chilagrow wants to merge 29 commits intoferretdbfrom
unify-packaging

Conversation

@chilagrow
Copy link
Copy Markdown

@chilagrow chilagrow commented Apr 24, 2025

Closes FerretDB/FerretDB#5052.

  • Failing CI Packages / ... is fine because the file that triggers that workflow .github/workflows/ferretdb_packages.yml is being removed in this PR.
  • CI Build deb packages / ... should work.

Don't enable auto merge please https://github.com/FerretDB/documentdb/pull/56/files#r2057555030

@chilagrow chilagrow self-assigned this Apr 24, 2025
@mergify
Copy link
Copy Markdown

mergify Bot commented Apr 24, 2025

⚠️ The sha of the head commit of this PR conflicts with #53. Mergify cannot evaluate rules on this PR. ⚠️

Comment thread .github/workflows/build_packages.yml Fixed
Comment thread .github/workflows/build_packages.yml Fixed
Comment thread .github/workflows/build_packages.yml Fixed
Comment thread .github/workflows/build_packages.yml Fixed
Comment thread .github/workflows/build_packages.yml Fixed
Comment thread .github/workflows/build_packages.yml Fixed
Comment thread .github/workflows/build_packages.yml Fixed
Comment thread .github/workflows/build_packages.yml Fixed
Comment thread .github/workflows/build_packages.yml Fixed
Comment thread .github/workflows/build_packages.yml Fixed
@mergify
Copy link
Copy Markdown

mergify Bot commented Apr 24, 2025

⚠️ The sha of the head commit of this PR conflicts with #53. Mergify cannot evaluate rules on this PR. ⚠️

@chilagrow chilagrow added packages PRs that should build packages trust PRs that can access Actions secrets not ready Issues that are not ready to be worked on; PRs that should skip CI and removed not ready Issues that are not ready to be worked on; PRs that should skip CI labels Apr 24, 2025
@mergify mergify Bot mentioned this pull request Apr 24, 2025
This reverts commit ea8d756.
@chilagrow
Copy link
Copy Markdown
Author

Failing CI Packages / ... is fine because the file that triggers that workflow .github/workflows/ferretdb_packages.yml is being removed in this PR.

CI Build deb packages / ... should work.

@chilagrow chilagrow requested review from a team, AlekSi and noisersup April 24, 2025 06:02
@chilagrow chilagrow marked this pull request as ready for review April 24, 2025 06:02
@AlekSi AlekSi requested a review from Copilot April 24, 2025 08:24
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR unifies the packaging process by removing outdated documentation and updating the CI workflows for building Debian packages and Docker images.

  • Removed the ferretdb_packaging/README.md to phase out legacy packaging instructions.
  • Updated and enhanced the build workflow in .github/workflows/build_packages.yml, including changes to matrix configurations, version definition steps, and multi-job conditions.

Reviewed Changes

Copilot reviewed 2 out of 15 changed files in this pull request and generated 1 comment.

File Description
ferretdb_packaging/README.md Removed obsolete build instructions for Debian packages.
.github/workflows/build_packages.yml Updated workflow logic for building Debian packages and Docker images.
Files not reviewed (13)
  • .github/workflows/ferretdb_packages.yml: Language not supported
  • ferretdb_packaging/Dockerfile_build_deb_packages: Language not supported
  • ferretdb_packaging/build_packages.sh: Language not supported
  • ferretdb_packaging/debian_files/changelog: Language not supported
  • ferretdb_packaging/debian_files/compat: Language not supported
  • ferretdb_packaging/debian_files/control: Language not supported
  • ferretdb_packaging/debian_files/rules: Language not supported
  • ferretdb_packaging/packaging-entrypoint.sh: Language not supported
  • ferretdb_packaging/test_packages/Dockerfile_test_install_deb_packages: Language not supported
  • ferretdb_packaging/test_packages/test-install-entrypoint.sh: Language not supported
  • packaging/Dockerfile_build_deb_packages: Language not supported
  • packaging/build_packages.sh: Language not supported
  • packaging/debian_files/control: Language not supported
Comments suppressed due to low confidence (2)

.github/workflows/build_packages.yml:65

  • Confirm that arm64 support is no longer required; if it is, consider adding it back to the matrix to support multi-architecture builds.
arch: [amd64]

.github/workflows/build_packages.yml:201

  • Review if the lack of '-debian-only' flag in the docker job's Define version step is intentional or if it should be consistent with the deb package job.
go run ./defineversion -control-file ../pg_documentdb/documentdb.control -pg-version ${{ matrix.pg_version }}

Comment thread .github/workflows/build_packages.yml
@settings settings Bot removed the do not merge label Apr 24, 2025
noisersup
noisersup previously approved these changes Apr 25, 2025
@chilagrow chilagrow mentioned this pull request Apr 28, 2025
@AlekSi AlekSi added the not ready Issues that are not ready to be worked on; PRs that should skip CI label Apr 28, 2025
Comment thread packaging/Dockerfile_build_deb_packages Outdated
@@ -1,5 +1,5 @@
ARG BASE_IMAGE=debian:bookworm
FROM ${BASE_IMAGE}
FROM --platform=linux/amd64 ${BASE_IMAGE}
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

👀 looks like this is undesired accidental change.

@AlekSi AlekSi marked this pull request as draft April 30, 2025 04:10
@mergify
Copy link
Copy Markdown

mergify Bot commented May 2, 2025

@chilagrow this pull request has merge conflicts.

@mergify mergify Bot added the conflict PRs that have merge conflicts label May 2, 2025
@AlekSi
Copy link
Copy Markdown
Member

AlekSi commented May 7, 2025

Merged in #68 and #69.

@AlekSi AlekSi closed this May 7, 2025
@AlekSi AlekSi deleted the unify-packaging branch May 7, 2025 05:49
@mergify mergify Bot removed the conflict PRs that have merge conflicts label May 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

not ready Issues that are not ready to be worked on; PRs that should skip CI packages PRs that should build packages trust PRs that can access Actions secrets

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

Unify DocumentDB packages building

5 participants