Skip to content

Conversation

@thesomewhatyou
Copy link
Collaborator

@thesomewhatyou thesomewhatyou commented Nov 26, 2025

Summary

This change stabilizes the CI ISO build by switching package mirrors to a CDN-based mirror and enabling curl-based transfers to improve download reliability and speed.

Details

  • Update pacman configuration to use CDN chaotic mirror endpoints for chaotic-aur and garuda
  • Distribute mirror changes to the ISO build profile (airootfs) to ensure consistency
  • Enable curl-based transfer command in pacman for more resilient downloads
  • Align mirror usage with CI requirements to reduce flaky fetches during builds

Summary by CodeRabbit

  • Chores
    • Enabled curl-based download transfers for package management.
    • Updated repository mirror sources to new CDN endpoints for improved download performance and reliability.

✏️ Tip: You can customize this high-level summary in your review settings.

…nable curl transfers

This change improves CI ISO build reliability and speed by switching
chaotic mirrors to the CDN mirror and enabling curl-based transfers in
pacman to handle slow connections more gracefully.

- Update root pacman.conf to use CDN chaotic.cx for chaotic-aur and garuda
- Propagate mirror changes into airootfs/pacman.conf used during ISO build
- Enable XferCommand = /usr/bin/curl -L -C - -f -o %o %u to bypass slow transfers
- Improves CI build stability with faster, more reliable downloads
@coderabbitai
Copy link

coderabbitai bot commented Nov 26, 2025

Walkthrough

The pull request modifies two pacman.conf files to uncomment the XferCommand option, enabling curl-based package downloads, and updates mirror URLs for chaotic-aur and garuda repositories from geo-mirror.chaotic.cx to cdn-mirror.chaotic.cx.

Changes

Cohort / File(s) Summary
Configuration Updates
airootfs/etc/pacman.conf, pacman.conf
Uncommented XferCommand line to enable curl-based file transfers; replaced two repository mirror URLs from geo-mirror.chaotic.cx to cdn-mirror.chaotic.cx for chaotic-aur and garuda repositories

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

  • Both file modifications follow the same homogeneous pattern (uncomment + URL replacement)
  • Configuration changes with straightforward, verifiable edits
  • No complex logic or multi-step dependencies

Possibly related PRs

  • GabeOS-Arch/GabeOS-Workflow-Dev#15: Prior PR that added geo-mirror URLs for chaotic-aur and garuda repositories; this PR updates those mirror endpoints to cdn-mirror and enables XferCommand

Poem

🐰 A curl command springs to life,
Mirrors dance from geo to cdn,
Swift downloads, no more strife!
Configuration's gentle zen.

Pre-merge checks and finishing touches

✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title directly and specifically describes the main changes: switching mirror sources from geo-mirror to CDN mirror and enabling curl transfers for pacman configuration in CI ISO builds.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch ci-fix-iso-build-mirror-timeout

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

Comment @coderabbitai help to get the list of available commands and usage tips.

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 (1)
pacman.conf (1)

18-20: Ensure curl is available everywhere this pacman.conf is used, and consider retry flags.

Uncommenting this XferCommand is fine, but pacman will now hard‑depend on /usr/bin/curl in every environment (host, CI container, chroot, etc.) that uses this config. Please verify curl is installed in all those contexts, otherwise downloads will fail instead of falling back to the internal downloader. For CI robustness, you may also want to add basic retry/timeout flags (e.g. --retry, --retry-delay, --connect-timeout).

-XferCommand = /usr/bin/curl -L -C - -f -o %o %u
+XferCommand = /usr/bin/curl -L -C - --retry 3 --retry-delay 5 --connect-timeout 15 -f -o %o %u
📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 95679a0 and 3295e4a.

📒 Files selected for processing (2)
  • airootfs/etc/pacman.conf (2 hunks)
  • pacman.conf (2 hunks)
⏰ 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). (1)
  • GitHub Check: build-and-upload
🔇 Additional comments (3)
pacman.conf (1)

102-108: Mirror host switch to cdn-mirror.chaotic.cx looks good; just confirm it’s the desired CI endpoint.

Updating both chaotic-aur and garuda to https://cdn-mirror.chaotic.cx/$repo/$arch matches the stated CI goals and is consistent with the airootfs pacman.conf. Please double‑check that this CDN host is the one currently recommended by Chaotic/Garuda for automated builds, and keep in mind that any future mirror/XferCommand changes will need to be applied in both this file and airootfs/etc/pacman.conf to avoid drift.

airootfs/etc/pacman.conf (2)

18-20: Verify curl is included in the ISO environment that uses this config.

Since the live/airootfs pacman now relies on /usr/bin/curl via XferCommand, ensure curl is part of the ISO’s package list (and any build chroots that read this file). If it’s missing, pacman inside the ISO will fail to download packages.


102-108: Runtime mirror configuration matches root pacman.conf – good for consistency.

The switch to cdn-mirror.chaotic.cx for chaotic-aur and garuda here mirrors the top‑level pacman.conf, which should keep CI builds and the live system behavior aligned. Nothing else to change from my side as long as this CDN endpoint is confirmed as the intended one for CI.

@cto-new cto-new bot merged commit 1900a3d into master Nov 26, 2025
4 checks passed
@coderabbitai coderabbitai bot mentioned this pull request Dec 14, 2025
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