Skip to content

Action conflicts: 'foo.repo_mapping' is generated by these conflicting actions #28056

@dzbarsky

Description

@dzbarsky

Description of the bug:

This seems like an 8.5 regression under coverage.

Full error:

(20:26:23) ERROR: file 'test/unit/debug_info/test-2282882243/myrusttest.repo_mapping' is generated by these conflicting actions:
Label: //test/unit/debug_info:myrusttest
RuleClass: rust_test rule
JavaActionClass: class com.google.devtools.build.lib.analysis.RepoMappingManifestAction
Configuration: fc009888277660f88b19e6ceb6bb06fc13b096a64c55515624720a7efa31dbfd, c3f664967775ba0a33b3c89f4c7fce8c56b05aad1d56c43a445c63f27133c655
Mnemonic: RepoMappingManifest
Action key: 930ed508831bb3eb42749ca75e5695206fab55c4ac80fa80b2a1db16aad69c33, a793df2bd4717c6fb3af51c213cfcc306a60f42266e57dbd65d601c2abb30b95
Progress message: Writing repo mapping manifest for //test/unit/debug_info:myrusttest
Action describeKey: (null)
PrimaryInput: (null)
PrimaryOutput: File:[[<execution_root>]bazel-out/darwin_arm64-fastbuild/bin]test/unit/debug_info/test-2282882243/myrusttest.repo_mapping
Owner information: ConfiguredTargetKey{label=//test/unit/debug_info:myrusttest, config=BuildConfigurationKey[fc009888277660f88b19e6ceb6bb06fc13b096a64c55515624720a7efa31dbfd]}, ConfiguredTargetKey{label=//test/unit/debug_info:myrusttest, config=BuildConfigurationKey[c3f664967775ba0a33b3c89f4c7fce8c56b05aad1d56c43a445c63f27133c655]}
MandatoryInputs: are equal
Outputs: are equal
(20:26:23) ERROR: file 'test/unit/debug_info/test-2282882243/myrusttest.repo_mapping' is generated by these conflicting actions:
Label: //test/unit/debug_info:myrusttest
RuleClass: rust_test rule
JavaActionClass: class com.google.devtools.build.lib.analysis.RepoMappingManifestAction
Configuration: fc009888277660f88b19e6ceb6bb06fc13b096a64c55515624720a7efa31dbfd, c3f664967775ba0a33b3c89f4c7fce8c56b05aad1d56c43a445c63f27133c655
Mnemonic: RepoMappingManifest
Action key: 930ed508831bb3eb42749ca75e5695206fab55c4ac80fa80b2a1db16aad69c33, a793df2bd4717c6fb3af51c213cfcc306a60f42266e57dbd65d601c2abb30b95
Progress message: Writing repo mapping manifest for //test/unit/debug_info:myrusttest
Action describeKey: (null)
PrimaryInput: (null)
PrimaryOutput: File:[[<execution_root>]bazel-out/darwin_arm64-fastbuild/bin]test/unit/debug_info/test-2282882243/myrusttest.repo_mapping
Owner information: ConfiguredTargetKey{label=//test/unit/debug_info:myrusttest, config=BuildConfigurationKey[fc009888277660f88b19e6ceb6bb06fc13b096a64c55515624720a7efa31dbfd]}, ConfiguredTargetKey{label=//test/unit/debug_info:myrusttest, config=BuildConfigurationKey[c3f664967775ba0a33b3c89f4c7fce8c56b05aad1d56c43a445c63f27133c655]}
MandatoryInputs: are equal
Outputs: are equal

Which category does this issue belong to?

No response

What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.

Non-minimal repro:

bazelbuild/rules_rust#3785
https://buildkite.com/bazel/rules-rust-rustlang/builds/16186#019b32ec-60de-4972-a57d-d47177161cf1

Which operating system are you running Bazel on?

No response

What is the output of bazel info release?

No response

If bazel info release returns development version or (@non-git), tell us how you built Bazel.

No response

What's the output of git remote get-url origin; git rev-parse HEAD ?


If this is a regression, please try to identify the Bazel commit where the bug was introduced with bazelisk --bisect.

No response

Have you found anything relevant by searching the web?

No response

Any other information, logs, or outputs that you want to share?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    team-Configurabilityplatforms, toolchains, cquery, select(), config transitionsteam-ExternalDepsExternal dependency handling, remote repositiories, WORKSPACE file.type: buguntriaged

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions