ci(desktop): add skipVlcSetup opt-out to bypass flaky VLC downloads

get.videolan.org regularly times out from GitHub-hosted runners and
Claude Code web sandboxes, taking the desktop CI build down with it
even though the failure is unrelated to the change under review.

Wire a -PskipVlcSetup=true (env: AMETHYST_SKIP_VLC=true) opt-out in
desktopApp/build.gradle.kts that disables the vlcDownload, upxDownload,
and vlcSetup tasks. Pass it from build.yml so PR CI no longer gates on
VLC reachability, and export the env from the CCW session-start hook.

Release packaging (create-release.yml) intentionally does not set the
flag, so shipped artifacts still bundle VLC.
This commit is contained in:
Claude
2026-05-05 15:41:01 +00:00
parent f2c8e154cf
commit ab68f827ce
3 changed files with 28 additions and 1 deletions
+6 -1
View File
@@ -65,8 +65,13 @@ jobs:
java-version: 21
cache: gradle
# `-PskipVlcSetup=true` disables the vlcDownload / upxDownload / vlcSetup
# tasks (see desktopApp/build.gradle.kts). PR CI artifacts are smoke-test
# only — get.videolan.org is too flaky from GitHub-hosted runners to gate
# PRs on. Release packaging (create-release.yml) deliberately omits this
# flag so shipped artifacts still bundle VLC.
- name: Test + Build Desktop (gradle)
run: ./gradlew :quartz:jvmTest :commons:jvmTest :nestsClient:jvmTest :cli:test :desktopApp:test :desktopApp:${{ matrix.desktop-task }} --no-daemon
run: ./gradlew :quartz:jvmTest :commons:jvmTest :nestsClient:jvmTest :cli:test :desktopApp:test :desktopApp:${{ matrix.desktop-task }} --no-daemon -PskipVlcSetup=true
# jpackage pins libicu to the build host's version (libicu74 on
# ubuntu-24.04). Rewrite the .deb so testers on other Debian/Ubuntu