Skip to content

run-examples-macos-on-metal job is failing #24291

@alice-i-cecile

Description

@alice-i-cecile

See https://github.com/bevyengine/bevy/actions/runs/25822568493/job/75867370625?pr=24240 for an example of the failure, although it's quite widespread.

See

run-examples-macos-metal:
for the job in question.

The logs show that this is calling rustup-init rather than cargo. This appears to be because we've somehow gotten that stuck in our cache. We should be able to clear this as a bandaid, but the bigger problem is that there's a problem in https://github.com/bevyengine/bevy/blob/a399db032194403995eb3b8ed14b3c348e5d36e3/.github/workflows/update-caches.yml

My analysis here is that there are two bugs here:

  1. ~/.cargo/bin/ should not be included in our cache, in update-caches.yml, to avoid this sort of problem. We could maybe do better than this, but https://github.com/Swatinem/rust-cache/blob/master/README.md#known-issues suggests to me that this is non-trivial to do correctly.
  2. We should be restoring the cache first, then installing the toolchain. This is a non-op if the toolchain is already valid.

1 should fix the current problem, at least when combined with a cache flush. I think 2 is probably worth doing too, but that should be a separate PR that looks at all of our usages of this pattern.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-Build-SystemRelated to build systems or continuous integrationC-BugAn unexpected or incorrect behaviorP-CriticalThis must be fixed immediately or contributors or users will be severely impactedS-Ready-For-ImplementationThis issue is ready for an implementation PR. Go for it!

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions