build(linux): avoid network for appstream cli & add missing deps - #5363
Conversation
These are transient errors. I'd rather not disable network altogether. |
|
These "transient errors" cause |
|
We test it in CI on every PR run. It does fail sometimes, but not very often. |
|
I just enabled Cloudflare WARP on my system and was able to build this project without my commit: Thus, proving cloudflare is blocking certain networks from running appstream cli properly. Since this PKGBUILD is also hosted on the AUR and other places, I think it would be best just to disable the network all together. Or, at least have a way to check to see if cloudflare is blocking the site on someone's PC. |
|
Can you add the new argument when |
Done! |
|
Bundle ReportBundle size has no change ✅ |
|
Are we not using namcap correctly here? Sunshine/.github/workflows/ci-archlinux.yml Line 133 in 3437a0b |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #5363 +/- ##
==========================================
- Coverage 27.45% 27.43% -0.02%
==========================================
Files 113 113
Lines 25554 25554
Branches 11244 11244
==========================================
- Hits 7016 7011 -5
- Misses 14571 16453 +1882
+ Partials 3967 2090 -1877
Flags with carried forward coverage won't be shown. Click here to find out more. |
Running namcap on the PKGBUILD vs the *.pkg.tar.zst produces different results. For example: The actual sunshine packages seems to have a lot of unnecessary dependencies, and is also not explicitly reliant on Me personally, I try to remove all the warnings on my PKGBUILD, but as long as there are no errors, it's like whatever. |



Description
As of right now, the PKGBUILD fails to build on Arch Linux due to AppStream throwing warnings when validating a file. Therefore, I have created a pull request to add
--no-nettoappstreamcli validate. Furthermore, when checking the ensuing package withnamcap(a tool used by Arch maintainers), the package was missinggtk3,hicolor-icon-theme, andlibayatana-appindicator. This is with building sunshine against the latest pre-release (2026.619.155209).I believe appstream fails to validate due to these pages being behind Cloudflare, but that's just my guess.
Here is CLI output of the build failing without this commit:
Screenshot
Issues Fixed or Closed
Roadmap Issues
Type of Change
Checklist
AI Usage