Skip to content

Concurrent SPIR-V codegen building causes issues #621

Description

@nazar-pc

When building multiple crates that depend on SPIR-V codegen, compilation can, unfortunately, fail.

The error is not very descriptive, but I think it is caused by some kind of race:

  Error: `rustc_codegen_spirv` build failed

https://github.com/nazar-pc/abundance/actions/runs/28211711059/job/83574463880

It'd be great if necessary locking was used such that this doesn't cause issues.

The reason I'm now hitting it is because I'm using parallel steps in CI with different target directories concurrently, so SPIR-V codegen apparently ends up being compiled multiple times unnecessarily (it is normally cached, hence only needs to be compiled once) and that process breaks somewhere along the way.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions