Support Bazel repository contents cache

オープン
#338 コメント 3 件 リアクション 1 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@xytan0056 がすでに取り組んでいます。

2026年10月27日 から。

  • #341 @xytan0056 による — オープン

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
68/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
go
領域
build-system

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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?

主要言語
Go
スター
23
フォーク
11
平均マージ
1日 10時間
マージ済み PR(30日)
18

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

uber/tango のほかの issue

uber/tango の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。