Support Bazel repository contents cache

Open
#338 3 comments 1 reaction 0 assignees View on GitHub

Maintainers usually reply within 1 day

@xytan0056 is already working on this.

Since Oct 27, 2026.

  • #341 by @xytan0056 — open

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
68/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
go
Domain
build-system

Research direction

Start with handler/getchangedtargets.go and trace how target graph computation finds Bazel repository metadata, especially the expected external/<repo>.marker file. Compare that lookup with the repository contents cache layout described in the issue, where metadata is in a .recorded_inputs file. Done when analysis handles this layout without the reported missing-marker error; run the relevant target graph tests.

Written by the indexing model from the issue text.

Description

bug

I am trying to setup Tango for one of our projects as a POC. The project is a Java service built with Bazel 9.3.0.

I am facing the following issue when analyzing the repository:

2026-10-20T12:03:08.957+0200    ERROR   handler/getchangedtargets.go:39 GetChangedTargets failed        {"repository": "demand-api", "error": "fetch target graphs: failed to get target graph #1: get target graph: compute target graph: bzlmod repo \"rules_jvm_external++maven+io_netty_netty_codec_protobuf_4_2_19_Final\" has targets in query but no marker file", "error_code": "infra"}

AI assisted analysis: Bazel successfully finds the dependency but Tango fails afterward while calculating target hashes. Tango uses Bazel's repository metadata to detect changes to external dependencies. It currently expects that metadata in an external/@<repo>.marker file. With Bazel's repository contents cache, the dependency directory can instead be a symlink into a shared cache, with metadata stored alongside the cached directory in a .recorded_inputs file. This layout was observed in the affected Tango workers. Tango only looks for .marker files, so it treats the dependency's metadata as missing and aborts the request.

Perhaps I am missing some necessary configuration in the project's .bazelrc to support Tango. Do you any have suggestions or workarounds?

Dominant language
Go
Stars
23
Forks
12
Avg merge
1d 10h
Merged PRs (30d)
18

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from uber/tango

All issues in uber/tango

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.