Repository navigation
Feature: Automate AUR release - #3910
Conversation
WalkthroughThe workflows were updated to enhance AUR package update automation. In the AUR workflow, the job name capitalization was standardized, apt sources were updated before installing both 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed 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)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Actionable comments posted: 3
🧹 Nitpick comments (1)
.github/workflows/aur.yml (1)
69-70:git stageis an alias – use the canonicalgit addfor portability
Although recent Git versions shipstageas an alias, older ones (and minimal containers) don’t. Using the primary command avoids surprises.- git stage . + git add .
There was a problem hiding this comment.
Actionable comments posted: 4
🧹 Nitpick comments (1)
.github/workflows/appimage.yml (1)
181-192: Duplicated hashing code – move to a single reusable stepThe two hash steps are identical except for the matrix guard. This duplication is brittle and clutters the workflow.
- - name: Compute sha256 hash - id: checksum - run: | - APPIMAGE_SHA256=$(sha256sum cryptomator-*.AppImage | cut -d ' ' -f1) - echo "sha256sum=${APPIMAGE_SHA256}" >> "$GITHUB_OUTPUT" + - name: Compute sha256 hash + id: checksum + run: | + APPIMAGE_SHA256=$(sha256sum cryptomator-*.AppImage | cut -d ' ' -f1) + echo "sha256sum=${APPIMAGE_SHA256}" >> "$GITHUB_OUTPUT" + env: + ARCH: ${{ matrix.appimage-suffix }} + + outputs: + sha256-${{ matrix.appimage-suffix }}: ${{ steps.checksum.outputs.sha256sum }}This keeps a single source of truth and plays nicer with refactors.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
.github/workflows/appimage.yml(3 hunks)
🧰 Additional context used
🪛 actionlint (1.7.7)
.github/workflows/appimage.yml
227-227: property "get-version" is not defined in object type {build: {outputs: {aarch64-sha256: string; x64-sha256: string}; result: string}}
(expression)
230-230: property "get-version" is not defined in object type {build: {outputs: {aarch64-sha256: string; x64-sha256: string}; result: string}}
(expression)
237-237: property "get-version" is not defined in object type {build: {outputs: {aarch64-sha256: string; x64-sha256: string}; result: string}}
(expression)
245-245: property "get-version" is not defined in object type {build: {outputs: {aarch64-sha256: string; x64-sha256: string}; result: string}}
(expression)
267-267: input "artifact-ids" is not defined in action "actions/download-artifact@v4". available inputs are "github-token", "merge-multiple", "name", "path", "pattern", "repository", "run-id"
(action)
267-267: object, array, and null values should not be evaluated in template with ${{ }} but evaluating the value of type {aarch64-sha256: string; x64-sha256: string}
(expression)
🪛 YAMLlint (1.37.1)
.github/workflows/appimage.yml
[error] 267-267: no new line character at the end of file
(new-line-at-end-of-file)
⏰ Context from checks skipped due to timeout of 90000ms (1)
- GitHub Check: Create PR for aur-bin repo
🔇 Additional comments (1)
.github/workflows/appimage.yml (1)
223-226: Package installation likely fails on Ubuntu runners
makepkgis supplied by the Archpacmanpackage itself; Debian/Ubuntu split does not provide amakepkgpackage, andpacman-package-manageralone doesn’t ship it.
Either switch to anarchlinuxcontainer or installpacmanfrom the AUR build ofpacman-bin.Failure mode:
makepkg: command not found→.SRCINFOgeneration step breaks.
* make sed commands more robust * apply workaround for matrix outputs overwriting each other
There was a problem hiding this comment.
Actionable comments posted: 2
🧹 Nitpick comments (3)
.github/workflows/appimage.yml (3)
202-206: Consider narrowing the artifact download to prevent accidental hash collisions
actions/download-artifactwithoutnamepulls all artifacts from the run.
If any future job uploads an additional*.AppImage, the checksum step will
pick up multiple files and produce ambiguous output.with: name: appimage-* path: downloads/ merge-multiple: trueOr keep the current setting but filter explicitly with
head -n1when
computing the hashes.
208-213: Hash extraction not resilient to multiple matches
sha256sum downloads/cryptomator-*-x86_64.AppImage | cut -d' ' -f1returns
all hashes concatenated with line-breaks if more than one file matches,
propagating a malformed value toPKGBUILD.
Append| head -n1(or filter the glob) to guarantee exactly one hash.
259-259: Missing trailing newlineYAMLlint flags the lack of a final EOL. Add one to satisfy linters and keep
diffs clean.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
.github/workflows/appimage.yml(1 hunks).github/workflows/aur.yml(3 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
- .github/workflows/aur.yml
🧰 Additional context used
🧠 Learnings (2)
📓 Common learnings
Learnt from: infeo
PR: cryptomator/cryptomator#3910
File: .github/workflows/aur.yml:54-55
Timestamp: 2025-06-25T15:40:07.452Z
Learning: In Ubuntu repositories, the pacman package manager is available as `pacman-package-manager`, not just `pacman`. When installing pacman tools on Ubuntu for AUR workflows, use `sudo apt install makepkg pacman-package-manager`.
.github/workflows/appimage.yml (9)
Learnt from: infeo
PR: cryptomator/cryptomator#3641
File: .github/workflows/win-exe.yml:19-19
Timestamp: 2024-12-10T17:06:19.650Z
Learning: In the Cryptomator project, the exact JDK version is fixed in release workflows (e.g., `.github/workflows/win-exe.yml`, `.github/workflows/mac-dmg.yml`) to ensure reproducible builds.
Learnt from: infeo
PR: cryptomator/cryptomator#3267
File: src/main/java/org/cryptomator/ui/vaultoptions/VaultOptionsController.java:54-56
Timestamp: 2024-07-27T13:14:40.963Z
Learning: The user `infeo` has clarified that in the Cryptomator project, it is intentional for the vault options to be disabled when the vault is unlocked and not disabled when the vault is locked. This is a specific design decision for the `VaultOptionsController.java` within the context of PR 3267.
Learnt from: purejava
PR: cryptomator/cryptomator#3311
File: src/main/java/org/cryptomator/ui/vaultoptions/MasterkeyOptionsController.java:0-0
Timestamp: 2024-11-24T16:47:01.698Z
Learning: In Cryptomator, avoid adding unnecessary complexity to error handling in UI controllers unless it's critical.
Learnt from: gepbird
PR: cryptomator/cryptomator#3621
File: src/main/java/org/cryptomator/ui/keyloading/hub/HubConfig.java:55-58
Timestamp: 2024-11-19T23:01:51.307Z
Learning: In the Cryptomator project, updating `LegacyRegisterDeviceController` is not necessary when changing URI construction methods.
Learnt from: infeo
PR: cryptomator/cryptomator#3618
File: src/main/java/org/cryptomator/ui/fxapp/FxApplicationWindows.java:151-165
Timestamp: 2024-11-21T16:57:58.292Z
Learning: In the file `src/main/java/org/cryptomator/ui/fxapp/FxApplicationWindows.java`, when reviewing the method `showDokanySupportEndWindow`, suggestions to add error handling to asynchronous dialog creation (e.g., `CompletableFuture`) may be considered out of scope for certain pull requests.
Learnt from: infeo
PR: cryptomator/cryptomator#3618
File: src/main/java/org/cryptomator/ui/dialogs/SimpleDialogController.java:27-45
Timestamp: 2024-12-11T13:52:42.201Z
Learning: In the Cryptomator project, parameter validation is performed in the `SimpleDialog` builder, so it's unnecessary to duplicate validation in controller classes like `SimpleDialogController`.
Learnt from: infeo
PR: cryptomator/cryptomator#3780
File: src/main/java/org/cryptomator/ui/eventview/EventListCellController.java:113-128
Timestamp: 2025-03-21T15:58:30.027Z
Learning: In Cryptomator's event system, entries are removed directly from the model (FileSystemEventAggregator) and then automatically synced to the view (FxFSEventList) with a potential delay of up to one second. This follows a model-view pattern where verification of removal is handled by the synchronization mechanism rather than explicit logging.
Learnt from: overheadhunter
PR: cryptomator/cryptomator#3641
File: .github/workflows/win-exe.yml:20-21
Timestamp: 2024-12-11T08:28:24.864Z
Learning: In the Cryptomator project, it's acceptable to update the JDK version (e.g., to JDK 23) while keeping the JavaFX version at an older version (e.g., JavaFX 22.0.2), as this has not caused problems in the past.
Learnt from: infeo
PR: cryptomator/cryptomator#3618
File: src/main/java/org/cryptomator/ui/dialogs/SimpleDialogController.java:55-67
Timestamp: 2024-12-11T13:52:43.966Z
Learning: In the `SimpleDialogController` class of the Cryptomator application, the actions passed to the `handleOk()` and `handleCancel()` methods are responsible for their own error handling. Therefore, wrapping these actions with try-catch blocks in the controller is unnecessary.
🪛 YAMLlint (1.37.1)
.github/workflows/appimage.yml
[error] 259-259: no new line character at the end of file
(new-line-at-end-of-file)
⏰ Context from checks skipped due to timeout of 90000ms (1)
- GitHub Check: Create PR for aur-bin repo
|
@overheadhunter I'll adjust the secret name of the auth token in a seperate commit, since it affects also other workflows. |
This PR adds a new workflow to the repository: AUR release automation
The workflow is started by a published release or manually. In the latter case the release tag must be specified. It works similarly to the flathub release workflow: