X Tutup
Skip to content

CI: Build macOS binary without Vulkan if Vulkan SDK fails installing#104307

Merged
Repiteo merged 1 commit intogodotengine:masterfrom
akien-mga:ci-macos-vulkan-sdk-optional
Mar 18, 2025
Merged

CI: Build macOS binary without Vulkan if Vulkan SDK fails installing#104307
Repiteo merged 1 commit intogodotengine:masterfrom
akien-mga:ci-macos-vulkan-sdk-optional

Conversation

@akien-mga
Copy link
Member

@akien-mga akien-mga commented Mar 18, 2025

It's not rare for this step to fail, either due to network errors, or occasional changes in how the Vulkan SDK is distributed which require editing our script.

Today it started failing because https://sdk.lunarg.com/ returns error 502: Bad Gateway.

A drawback of this change is that if the Vulkan SDK does change setup and the step fails due to other aspects than network errors, we won't catch it right away. We'd need to manually check the log once in a while to confirm that it's still being installed and enabled fine. But it's probably ok.

@akien-mga akien-mga added this to the 4.5 milestone Mar 18, 2025
@akien-mga akien-mga requested a review from a team as a code owner March 18, 2025 10:30
@akien-mga akien-mga added the cherrypick:4.4 Considered for cherry-picking into a future 4.4.x release label Mar 18, 2025
@AThousandShips
Copy link
Member

I wonder if we can make it output a warning like when the cache fails to save to make it more clear when looking at CI to ensure we can rebuild it once the upstream issues goes away to ensure we don't merge without ensuring it builds safely with Vulkan

@Chubercik
Copy link
Contributor

I wonder if we can make it output a warning like when the cache fails to save to make it more clear when looking at CI to ensure we can rebuild it once the upstream issues goes away to ensure we don't merge without ensuring it builds safely with Vulkan

Maybe related: https://stackoverflow.com/q/74907704/14664861

@akien-mga akien-mga force-pushed the ci-macos-vulkan-sdk-optional branch from d295d7b to e151419 Compare March 18, 2025 11:26
@akien-mga
Copy link
Member Author

I wonder if we can make it output a warning like when the cache fails to save to make it more clear when looking at CI to ensure we can rebuild it once the upstream issues goes away to ensure we don't merge without ensuring it builds safely with Vulkan

I changed it to an explicit warning:

image

On the other hand I don't think it should be a sign that we should hold off merging a PR until it's resolved, because at this point to explicit failure we currently have without this PR is good enough.

It's rare that a PR would specifically impact the ability for macOS only to build for Vulkan, so for the vast majority of PRs, it should be no problem if we merge a PR that had a vulkan=no build due to a temporary CI issue. If it's a Vulkan specific PR of course, we should be a bit more cautious.

It's not rare for this step to fail, either due to network errors,
or occasional changes in how the Vulkan SDK is distributed which require
editing our script.
@akien-mga akien-mga force-pushed the ci-macos-vulkan-sdk-optional branch from e151419 to b84828b Compare March 18, 2025 11:45
@akien-mga
Copy link
Member Author

Note: The LunarG website is back online so the step is no longer failing.

Copy link
Member

@AThousandShips AThousandShips left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Repiteo Repiteo merged commit b33072a into godotengine:master Mar 18, 2025
20 checks passed
@Repiteo
Copy link
Contributor

Repiteo commented Mar 18, 2025

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cherrypick:4.4 Considered for cherry-picking into a future 4.4.x release enhancement platform:macos topic:buildsystem

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

X Tutup