Refactor LLVM git dependency in clang [chromium/src : main]

0 views
Skip to first unread message

Hans Wennborg (Gerrit)

unread,
May 29, 2026, 8:35:15 AM (3 days ago) May 29
to Dan Le Febvre, Hans Wennborg, Chromium LUCI CQ, android-bu...@system.gserviceaccount.com, chromium...@chromium.org, Daniel Cheng, Ilya Biryukov, Peter Collingbourne, Reid Kleckner, Nico Weber, Lei Zhang, chromium-...@engflow.com, eugeni...@chromium.org, glider...@chromium.org, ukai+...@chromium.org
Attention needed from Dan Le Febvre

Hans Wennborg added 1 comment

Patchset-level comments
File-level comment, Patchset 9 (Latest):
Hans Wennborg . unresolved

Is there a spec or other document about what schema the consumer of this json file supports? Do we know that there's a path forward for e.g. the tarballs in GCS, cherrypicks we apply from github etc., or will that need to be built out later?

As I mentioned before, I'm positive about specifying our build inputs in a more declarative way, but wary about moving them out of the build/update scripts.

We can make it easier for tools and CI pipelines to inquire about the version and other dependencies by adding command-line options to the script, including one that outputs json.

My preference would be if update.py can continue to be the source of truth for what version it will update to. It is a nice property that the script is self-contained, and CLANG_REVISION has been where we define our clang version for a very long time. Moving it will break things, so we shouldn't do it without good reason.

Open in Gerrit

Related details

Attention is currently required from:
  • Dan Le Febvre
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I01f7ac3149a39c96494ece567a7d0b32a4bb7c24
Gerrit-Change-Number: 7882751
Gerrit-PatchSet: 9
Gerrit-Owner: Dan Le Febvre <d...@google.com>
Gerrit-Reviewer: Dan Le Febvre <d...@google.com>
Gerrit-Reviewer: Hans Wennborg <ha...@chromium.org>
Gerrit-CC: Daniel Cheng <dch...@chromium.org>
Gerrit-CC: Ilya Biryukov <ibir...@google.com>
Gerrit-CC: Lei Zhang <the...@chromium.org>
Gerrit-CC: Nico Weber <tha...@chromium.org>
Gerrit-CC: Peter Collingbourne <p...@chromium.org>
Gerrit-CC: Reid Kleckner <r...@chromium.org>
Gerrit-Attention: Dan Le Febvre <d...@google.com>
Gerrit-Comment-Date: Fri, 29 May 2026 12:34:55 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Dan Le Febvre (Gerrit)

unread,
May 31, 2026, 10:49:43 PM (2 hours ago) May 31
to Hans Wennborg, Chromium LUCI CQ, android-bu...@system.gserviceaccount.com, chromium...@chromium.org, Daniel Cheng, Ilya Biryukov, Peter Collingbourne, Reid Kleckner, Nico Weber, Lei Zhang, chromium-...@engflow.com, eugeni...@chromium.org, glider...@chromium.org, ukai+...@chromium.org
Attention needed from Hans Wennborg

Dan Le Febvre added 1 comment

Patchset-level comments
Hans Wennborg . unresolved

Is there a spec or other document about what schema the consumer of this json file supports? Do we know that there's a path forward for e.g. the tarballs in GCS, cherrypicks we apply from github etc., or will that need to be built out later?

As I mentioned before, I'm positive about specifying our build inputs in a more declarative way, but wary about moving them out of the build/update scripts.

We can make it easier for tools and CI pipelines to inquire about the version and other dependencies by adding command-line options to the script, including one that outputs json.

My preference would be if update.py can continue to be the source of truth for what version it will update to. It is a nice property that the script is self-contained, and CLANG_REVISION has been where we define our clang version for a very long time. Moving it will break things, so we shouldn't do it without good reason.

Dan Le Febvre

Is there a spec or other document about what schema the consumer of this json file supports? Do we know that there's a path forward for e.g. the tarballs in GCS, cherrypicks we apply from github etc., or will that need to be built out later?

I have all of that tested in another CL but I don't want to submit some large CL in one go. But all of those things you mentioned should go in the same JSON file.

As I mentioned before, I'm positive about specifying our build inputs in a more declarative way, but wary about moving them out of the build/update scripts.

Is your concern that we don't know who else is parsing these python files to get version numbers? Outside of chromium. At some point something will change and break this type of workflow.

>
> We can make it easier for tools and CI pipelines to inquire about the version and other dependencies by adding command-line options to the script, including one that outputs json.

yes but its absolutely not ideal to be executing random python files in secure environments just to get version numbers.


>
> My preference would be if update.py can continue to be the source of truth for what version it will update to. It is a nice property that the script is self-contained, and CLANG_REVISION has been where we define our clang version for a very long time. Moving it will break things, so we shouldn't do it without good reason.

I think for now its probably OK but we will need higher BCID levels in the near future and this whole python file being authoritive for dependencies just wont be sustainable.

Open in Gerrit

Related details

Attention is currently required from:
  • Hans Wennborg
Gerrit-Attention: Hans Wennborg <ha...@chromium.org>
Gerrit-Comment-Date: Mon, 01 Jun 2026 02:49:13 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Hans Wennborg <ha...@chromium.org>
satisfied_requirement
unsatisfied_requirement
open
diffy
Reply all
Reply to author
Forward
0 new messages