Skip to content

Conversation

@kwvg
Copy link
Collaborator

@kwvg kwvg commented Feb 18, 2025

Additional Information

  • There is a regression in noble that has caused a build failure in trying to package our release container (build) linked to docker/setup-qemu-action#198.

  • In light of this, all non-CI containers and jobs have been moved back to Ubuntu 22.04 (jammy) though it seems that downgrading alone may be insufficient (see actions/runner-images#11471).

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas (note: N/A)
  • I have added or updated relevant unit/integration/functional/e2e tests (note: N/A)
  • I have made corresponding changes to the documentation (note: N/A)
  • I have assigned this pull request to a milestone (for repository code-owners and collaborators only)

@kwvg kwvg added this to the 23 milestone Feb 18, 2025
@kwvg
Copy link
Collaborator Author

kwvg commented Feb 18, 2025

Special thanks to @ktechmidas for bringing this to attention!

@coderabbitai
Copy link

coderabbitai bot commented Feb 18, 2025

Walkthrough

The changes update configurations in both the GitHub Actions workflow and multiple Docker deployment files. The GitHub Actions workflow now specifies runs-on: ubuntu-22.04 instead of ubuntu-24.04. In the Dockerfiles, the base images have been updated from previous versions (such as phusion/baseimage:noble-1.0.0 or ubuntu:noble) to newer versions (such as phusion/baseimage:jammy-1.0.4 or ubuntu:jammy). The user management steps have been revised by replacing modifications to an existing user with explicit creation of a new user and group named dash. The process now uses standard commands (groupadd and useradd) and incorporates environment variable settings to define default user and group IDs. These updates are applied consistently across workflow and container deployment files.


📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between c8ab705 and 20524e4.

📒 Files selected for processing (1)
  • .github/workflows/release_docker_hub.yml (1 hunks)
🧰 Additional context used
🪛 actionlint (1.7.4)
.github/workflows/release_docker_hub.yml

13-13: the runner of "actions/checkout@v3" action is too old to run on GitHub Actions. update the action's version to fix this issue

(action)

⏰ Context from checks skipped due to timeout of 90000ms (1)
  • GitHub Check: linux64_multiprocess-build / Build source
🔇 Additional comments (3)
.github/workflows/release_docker_hub.yml (3)

10-10: Update System Environment to Ubuntu 22.04 LTS

Switching the runner from a newer version (previously ubuntu-24.04) to ubuntu-22.04 ensures consistency with the jammy base images used in the Dockerfiles. This change aligns the CI environment with the deployment configuration.


16-18: Upgrade QEMU Setup and Specify BinFmt Image

The QEMU action has been updated from v2 to v3, and the new input parameter image: tonistiigi/binfmt:qemu-v7.0.0-28 has been added. This update should improve emulation support. Please confirm that this image matches your testing environment’s requirements.


13-13: Static Analysis Note on Checkout Action Version

A static analysis tool flagged the use of actions/checkout@v3 as potentially outdated. However, v3 is currently a standard version in workflows. Verify if this warning is a false positive; if no issues are observed, this action may remain as-is.

🧰 Tools
🪛 actionlint (1.7.4)

13-13: the runner of "actions/checkout@v3" action is too old to run on GitHub Actions. update the action's version to fix this issue

(action)


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR. (Beta)
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Nitpick comments (2)
contrib/containers/deploy/Dockerfile.GitHubActions.Release (1)

12-17: Enhanced User and Group Setup
The updated section for user creation now sets default environment variables for USER_ID and GROUP_ID and uses groupadd and useradd to create the dash user. This method is cleaner than modifying an existing user.

Nitpick: For consistency with the other Dockerfile, consider quoting the default assignments. For example, change:

-ENV USER_ID ${USER_ID:-1000}
-ENV GROUP_ID ${GROUP_ID:-1000}
+ENV USER_ID "${USER_ID:-1000}"
+ENV GROUP_ID "${GROUP_ID:-1000}"

This ensures uniformity across Dockerfiles.

contrib/containers/deploy/Dockerfile.GitHubActions.Dispatch (1)

55-61: Consistent User Creation in Final Stage
The final stage now creates the dash user with explicit environment variables and uses groupadd and useradd to set up the user account and home directory. This change mirrors the updates in the other Dockerfiles.

Optional Improvement: For consistency with the contrib/containers/deploy/Dockerfile, consider quoting the USER_ID and GROUP_ID default values (e.g., ENV USER_ID="${USER_ID:-1000}").

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 0e9105e and c8ab705.

📒 Files selected for processing (4)
  • .github/workflows/release_docker_hub.yml (1 hunks)
  • contrib/containers/deploy/Dockerfile (1 hunks)
  • contrib/containers/deploy/Dockerfile.GitHubActions.Dispatch (3 hunks)
  • contrib/containers/deploy/Dockerfile.GitHubActions.Release (2 hunks)
✅ Files skipped from review due to trivial changes (1)
  • .github/workflows/release_docker_hub.yml
⏰ Context from checks skipped due to timeout of 90000ms (1)
  • GitHub Check: Build container / Build container
🔇 Additional comments (7)
contrib/containers/deploy/Dockerfile (5)

1-1: Updated Base Image to Jammy
The base image has been updated from phusion/baseimage:noble-1.0.0 to phusion/baseimage:jammy-1.0.4, which aligns with the PR objective to revert deployment images. Ensure that any dependent configuration or testing environments have been verified for compatibility with the new base image.


5-6: Streamlined ARG Declarations
The ARG USER_ID and ARG GROUP_ID declarations have been simplified by removing inline defaults; the default behavior is now managed later via environment variable assignments. This approach improves flexibility.


8-9: Explicit HOME Environment Variable
The addition of ENV HOME="/home/dash" explicitly sets the home directory for the new user, which is important for consistency across container operations.


11-12: Defining Default Values for USER_ID and GROUP_ID
The environment variables USER_ID and GROUP_ID are now set with fallback defaults ("${USER_ID:-1000}" and "${GROUP_ID:-1000}"), ensuring that even if the build arguments are not supplied, they assume suitable defaults.


13-15: Revised User Creation Process
The RUN command now creates a new group dash and a new user dash using groupadd and useradd, and also sets up the home directory structure. This explicit user management is clearer and more robust than modifying an existing user.

contrib/containers/deploy/Dockerfile.GitHubActions.Release (1)

1-1: Base Image Updated to Ubuntu Jammy
The base image has been updated from ubuntu:noble to ubuntu:jammy, which is consistent with the overall update strategy across the files.

contrib/containers/deploy/Dockerfile.GitHubActions.Dispatch (1)

3-3: Builder Stage Base Image Update
The builder stage now uses FROM --platform=$BUILDPLATFORM ubuntu:jammy as builder, which standardizes the build environment with the updated Ubuntu Jammy image.

@kwvg kwvg changed the title fix: revert deployment images back to Ubuntu 22.04 LTS (jammy) fix: revert deployment images back to Ubuntu 22.04 LTS (jammy), pin QEMU to avoid segfault Feb 18, 2025
Copy link

@UdjinM6 UdjinM6 left a comment

Choose a reason for hiding this comment

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

utACK 20524e4

@PastaPastaPasta PastaPastaPasta merged commit b6ea178 into dashpay:develop Feb 18, 2025
27 checks passed
PastaPastaPasta added a commit that referenced this pull request Feb 19, 2025
…md64 separately

757b95b ci: attempt to fix docker builds by building arm64 and amd64 separately (pasta)

Pull request description:

  ## Issue being fixed or feature implemented
  this is a follow-up to #6586; because that fix did not appear to work https://github.com/dashpay/dash/actions/runs/13376032021/job/37424076219

  ## What was done?
  Stop using qemu, and build on arm runners

  ## How Has This Been Tested?
  Hasn't; to be tested once merged

  ## Breaking Changes
  Can't break which is broken

  ## Checklist:
    _Go over all the following points, and put an `x` in all the boxes that apply._
  - [ ] I have performed a self-review of my own code
  - [ ] I have commented my code, particularly in hard-to-understand areas
  - [ ] I have added or updated relevant unit/integration/functional/e2e tests
  - [ ] I have made corresponding changes to the documentation
  - [x] I have assigned this pull request to a milestone _(for repository code-owners and collaborators only)_

Top commit has no ACKs.

Tree-SHA512: d3516c10c80f4fb6c9db61f7286247002faff9fc095212b19db805d6641760f38db441c57ace3f72bd6a6a5e0af3311987062d1cf8da2803393231748776a4bb
PastaPastaPasta added a commit to PastaPastaPasta/dash that referenced this pull request Mar 20, 2025
…4 LTS (`jammy`), pin QEMU to avoid segfault

20524e4 fix: pin version of QEMU to avoid segfault (Kittywhiskers Van Gogh)
c8ab705 revert: update containers and CI to use Ubuntu 24.04 LTS (`noble`) (Kittywhiskers Van Gogh)
2bcc90a revert: use default non-root user `ubuntu` introduced in Ubuntu 22.10 (Kittywhiskers Van Gogh)

Pull request description:

  ## Additional Information

  * There is a regression in `noble` that has caused a build failure in trying to package our release container ([build](https://github.com/dashpay/dash/actions/runs/13376032021)) linked to [docker/setup-qemu-action#198](docker/setup-qemu-action#198).

  * In light of this, all non-CI containers and jobs have been moved back to Ubuntu 22.04 (`jammy`) though it seems that downgrading alone may be insufficient (see [actions/runner-images#11471](actions/runner-images#11471 (comment))).
    * To remedy this we are pinning the version of QEMU as suggested in [tonistiigi/binfmt#240](tonistiigi/binfmt#240 (comment))

  ## Checklist:

  - [x] I have performed a self-review of my own code
  - [x] I have commented my code, particularly in hard-to-understand areas **(note: N/A)**
  - [x] I have added or updated relevant unit/integration/functional/e2e tests **(note: N/A)**
  - [x] I have made corresponding changes to the documentation **(note: N/A)**
  - [x] I have assigned this pull request to a milestone _(for repository code-owners and collaborators only)_

ACKs for top commit:
  UdjinM6:
    utACK 20524e4

Tree-SHA512: 26bb2cd55a0267b56f86938d97ddfa32f0cdd8a2786c0366eedbcddf706e38b6af93cd29ab98ba420cbdbd112561ded61e2dba906c4b233ad737f24730f58ddc
@UdjinM6 UdjinM6 modified the milestones: 23, 22.1.2 Mar 21, 2025
@UdjinM6 UdjinM6 modified the milestones: 22.1.2, 23 Mar 21, 2025
PastaPastaPasta added a commit to PastaPastaPasta/dash that referenced this pull request Mar 21, 2025
…4 LTS (`jammy`), pin QEMU to avoid segfault

20524e4 fix: pin version of QEMU to avoid segfault (Kittywhiskers Van Gogh)
c8ab705 revert: update containers and CI to use Ubuntu 24.04 LTS (`noble`) (Kittywhiskers Van Gogh)
2bcc90a revert: use default non-root user `ubuntu` introduced in Ubuntu 22.10 (Kittywhiskers Van Gogh)

Pull request description:

  ## Additional Information

  * There is a regression in `noble` that has caused a build failure in trying to package our release container ([build](https://github.com/dashpay/dash/actions/runs/13376032021)) linked to [docker/setup-qemu-action#198](docker/setup-qemu-action#198).

  * In light of this, all non-CI containers and jobs have been moved back to Ubuntu 22.04 (`jammy`) though it seems that downgrading alone may be insufficient (see [actions/runner-images#11471](actions/runner-images#11471 (comment))).
    * To remedy this we are pinning the version of QEMU as suggested in [tonistiigi/binfmt#240](tonistiigi/binfmt#240 (comment))

  ## Checklist:

  - [x] I have performed a self-review of my own code
  - [x] I have commented my code, particularly in hard-to-understand areas **(note: N/A)**
  - [x] I have added or updated relevant unit/integration/functional/e2e tests **(note: N/A)**
  - [x] I have made corresponding changes to the documentation **(note: N/A)**
  - [x] I have assigned this pull request to a milestone _(for repository code-owners and collaborators only)_

ACKs for top commit:
  UdjinM6:
    utACK 20524e4

Tree-SHA512: 26bb2cd55a0267b56f86938d97ddfa32f0cdd8a2786c0366eedbcddf706e38b6af93cd29ab98ba420cbdbd112561ded61e2dba906c4b233ad737f24730f58ddc
PastaPastaPasta added a commit that referenced this pull request Apr 15, 2025
8b4ab03 fix: suppress MIN_MASTERNODE_PROTO_VERSION bump in 6608 (pasta)
aca04d1 chore: bump build to 22.1.2 (pasta)
d9d8c24 docs: add release notes for 22.1.2 (pasta)
fb45240 Merge #6608: fix: `cycleHash` should represent a cycle starting block of the signing quorum (pasta)
9d1498c Merge #6625: fix: adjust quorum rotation data results in some edge cases, add tests (pasta)
dfc1119 Merge #6622: fix: efficient build mnlistdiffs in rotation info (pasta)
6fd626b Merge #6586: fix: revert deployment images back to Ubuntu 22.04 LTS (`jammy`), pin QEMU to avoid segfault (pasta)
affa9d1 Merge #6599: fix: follow-up #6546 to bump copyright year in COPYING and debian's package (pasta)
f6163a2 Merge #6593: fix: resolve potential deadlock in coinjoin_tests (pasta)
243e0ab Merge #6585: fix: Do not assert special tx type for cbtx in simplified mn list diff output (pasta)
497f95c Merge #6581: perf: speedup of CBLSLazyPublicKey::operator== when comparing to the default / null object; speedup CDeterministicMNList::AddMN by avoiding check to IsValid when a nullcheck is sufficient (pasta)

Pull request description:

  ## Issue being fixed or feature implemented
  Backports for a new version, v22.1.2

  ## What was done?
  See release notes

  ## How Has This Been Tested?

  ## Breaking Changes
  None

  ## Checklist:
    _Go over all the following points, and put an `x` in all the boxes that apply._
  - [ ] I have performed a self-review of my own code
  - [ ] I have commented my code, particularly in hard-to-understand areas
  - [ ] I have added or updated relevant unit/integration/functional/e2e tests
  - [ ] I have made corresponding changes to the documentation
  - [x] I have assigned this pull request to a milestone _(for repository code-owners and collaborators only)_

ACKs for top commit:
  UdjinM6:
    utACK 8b4ab03
  knst:
    utACK 8b4ab03

Tree-SHA512: 9f2f65e315940197cc2b75a6b0a858d624256cbe668272ff6dfa216eceda1ba9338484d47afc569202b3b5cc75b4dcb825209efe3a3d3ccec57c741f75c40577
PastaPastaPasta added a commit that referenced this pull request Apr 23, 2025
8b4ab03 fix: suppress MIN_MASTERNODE_PROTO_VERSION bump in 6608 (pasta)
aca04d1 chore: bump build to 22.1.2 (pasta)
d9d8c24 docs: add release notes for 22.1.2 (pasta)
fb45240 Merge #6608: fix: `cycleHash` should represent a cycle starting block of the signing quorum (pasta)
9d1498c Merge #6625: fix: adjust quorum rotation data results in some edge cases, add tests (pasta)
dfc1119 Merge #6622: fix: efficient build mnlistdiffs in rotation info (pasta)
6fd626b Merge #6586: fix: revert deployment images back to Ubuntu 22.04 LTS (`jammy`), pin QEMU to avoid segfault (pasta)
affa9d1 Merge #6599: fix: follow-up #6546 to bump copyright year in COPYING and debian's package (pasta)
f6163a2 Merge #6593: fix: resolve potential deadlock in coinjoin_tests (pasta)
243e0ab Merge #6585: fix: Do not assert special tx type for cbtx in simplified mn list diff output (pasta)
497f95c Merge #6581: perf: speedup of CBLSLazyPublicKey::operator== when comparing to the default / null object; speedup CDeterministicMNList::AddMN by avoiding check to IsValid when a nullcheck is sufficient (pasta)
4298d73 chore: bump to 22.1.1 (pasta)
fc65a16 chore: release notes for 22.1.1 (pasta)
38762f7 Merge #6574: fix: ReconnectionInfo should also store Dash-specific flags (pasta)
580b74c Merge #6566: fix(qt): avoid leaking balance and CJ info in GUI when in discreet mode (pasta)

Pull request description:

  ## Issue being fixed or feature implemented

  ## What was done?
  ff-ed `master` 21.1.0 -> 21.1.2, merging it back into `develop` now

  ## How Has This Been Tested?

  ## Breaking Changes

  ## Checklist:
  - [ ] I have performed a self-review of my own code
  - [ ] I have commented my code, particularly in hard-to-understand areas
  - [ ] I have added or updated relevant unit/integration/functional/e2e tests
  - [ ] I have made corresponding changes to the documentation
  - [ ] I have assigned this pull request to a milestone _(for repository code-owners and collaborators only)_

ACKs for top commit:
  PastaPastaPasta:
    utACK 73fa780; gonna merge as this changes docs only

Tree-SHA512: f04fe461edc05c38771d684bd5d60327076251b8004723027276b104989ea6d84f7f77cce31f310f058e81f2c25411ab5a15b563cd3db66091ccaf33da459e3c
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.

4 participants