Skip to content

Revert "Sorting out yet another AppImage breakage."#1950

Merged
nicolasnoble merged 1 commit intomainfrom
revert-1947-appimage-bullshit
Aug 3, 2025
Merged

Revert "Sorting out yet another AppImage breakage."#1950
nicolasnoble merged 1 commit intomainfrom
revert-1947-appimage-bullshit

Conversation

@nicolasnoble
Copy link
Copy Markdown
Member

Reverts #1947

This actually segfaults on startup.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Aug 2, 2025

Walkthrough

The changes update the Linux build workflow and Dockerfile by removing FUSE-related dependencies and container options. The Dockerfile now installs appimage-builder and pydpkg via pip3 instead of as AppImages. A patch is introduced to alter version comparison logic in the Package class, switching from packaging.version to pydpkg.Dpkg.compare_versions.

Changes

Cohort / File(s) Change Summary
CI Workflow Container Options
.github/workflows/linux-build.yml
Removes FUSE device access, SYS_ADMIN capability, and AppArmor unconfined option from the Linux workflow.
Dockerfile & Dependency Management
tools/build/Dockerfile
Removes installation of fuse/libfuse2t64, updates AppImage tool URL, switches to pip-based install for appimage-builder/pydpkg, and applies a patch.
AppImage Version Comparison Patch
tools/build/appimage-dpkg.patch
Changes version comparison in the Package class from packaging.version.parse to pydpkg.Dpkg.compare_versions.

Sequence Diagram(s)

sequenceDiagram
    participant CI as CI Workflow
    participant Docker as Docker Build
    participant Pip as pip3
    participant Patch as Patch File

    CI->>Docker: Start build (no FUSE/SYS_ADMIN/AppArmor options)
    Docker->>Pip: Install appimage-builder, pydpkg via pip3
    Docker->>Patch: Apply appimage-dpkg.patch
    Patch->>Docker: Patch version comparison logic
Loading

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

Possibly related PRs

Poem

A Dockerfile trimmed, no FUSE to be found,
With pip we now build, dependencies sound.
A patch for comparison, versions align,
Debian-style logic—oh, isn’t that fine?
The workflow is lighter, the build hops anew,
A rabbit’s delight in a CI review! 🐇✨

Note

⚡️ Unit Test Generation is now available in beta!

Learn more here, or try it out under "Finishing Touches" below.

✨ Finishing Touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch revert-1947-appimage-bullshit

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ 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.
    • Explain this complex logic.
    • 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 explain this code block.
    • @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 explain its main purpose.
    • @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.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

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.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai generate unit tests to generate unit tests for this PR.
  • @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.

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
Copy Markdown
Contributor

@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 (1)
tools/build/Dockerfile (1)

47-47: Consider the implications of --break-system-packages flag.

The --break-system-packages flag allows pip to install packages that may conflict with system packages. While this resolves the immediate build issue, it could potentially lead to dependency conflicts.

Consider using a virtual environment or documenting why this flag is necessary:

-RUN pip3 install --break-system-packages appimage-builder pydpkg
+RUN python3 -m venv /opt/appimage-env && \
+    /opt/appimage-env/bin/pip install appimage-builder pydpkg && \
+    ln -s /opt/appimage-env/bin/appimage-builder /usr/bin/appimage-builder
📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between a1f0293 and 5a66d37.

📒 Files selected for processing (3)
  • .github/workflows/linux-build.yml (0 hunks)
  • tools/build/Dockerfile (1 hunks)
  • tools/build/appimage-dpkg.patch (1 hunks)
💤 Files with no reviewable changes (1)
  • .github/workflows/linux-build.yml
🧰 Additional context used
🧠 Learnings (1)
📓 Common learnings
Learnt from: nicolasnoble
PR: grumpycoders/pcsx-redux#1885
File: src/support/djbhash.h:35-39
Timestamp: 2025-03-11T00:58:51.671Z
Learning: Tail recursion is preferred by nicolasnoble in the codebase, as it doesn't affect recursion depth when properly optimized by the compiler.
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (13)
  • GitHub Check: pcsx-redux (x86_64-linux)
  • GitHub Check: pcsx-redux (aarch64-linux)
  • GitHub Check: pcsx-redux (aarch64-linux)
  • GitHub Check: pcsx-redux (x86_64-linux)
  • GitHub Check: build-openbios
  • GitHub Check: Codacy Static Code Analysis
  • GitHub Check: toolchain
  • GitHub Check: macos-build-and-test-toolchain
  • GitHub Check: cross-arm64
  • GitHub Check: asan
  • GitHub Check: coverage
  • GitHub Check: build
  • GitHub Check: aur-build
🔇 Additional comments (4)
tools/build/Dockerfile (2)

48-49: LGTM: Patch application approach is sound.

The patch file copying and application looks correct. This approach allows for targeted fixes to the appimage-builder package without modifying the upstream package directly.


40-40: AppImageKit URL change verified

A HEAD request to the new URL returns a 302 redirect to a valid AppImage asset, confirming the repository path and binary name are correct.

Next steps to fully validate the build changes:

  • Review the pip3 install --break-system-packages usage—ensure it won’t conflict with system packages or consider installing in an isolated environment.
  • Verify that the patch file (tools/build/appimage-builder.patch) is present, correctly referenced, and applies cleanly.
  • Confirm that dropping FUSE packages (e.g., libfuse2, fuse) won’t break any downstream AppImage mount operations.
tools/build/appimage-dpkg.patch (2)

9-10: Appropriate change for Debian package version handling.

Switching from packaging.version to pydpkg.Dpkg is the correct approach for handling Debian package versions, which have different semantics than Python package versions (PEP 440).


18-19: Confirm completeness of version comparisons

Our inspection of the patch shows only __gt__ being updated to use Dpkg.compare_versions(), and no other dunder comparison methods are present in this diff. However, since this patch is applied to the external appimagebuilder package, please manually review the full Package class in appimagebuilder/modules/deploy/apt/package.py to ensure that any other comparison methods (__lt__, __le__, __ge__, __eq__, __ne__) are also migrated from packaging.version.parse() to Dpkg.compare_versions().

@nicolasnoble nicolasnoble merged commit ec1154a into main Aug 3, 2025
25 of 26 checks passed
@nicolasnoble nicolasnoble deleted the revert-1947-appimage-bullshit branch August 3, 2025 01:24
@coderabbitai coderabbitai Bot mentioned this pull request Aug 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant