[llvm] 4c10240 - [llvm-ir2vec][NFC] Adding disclaimer to Bindings requirements.txt to check compatibility with ml-compiler-opt (#198171)
via llvm-commits
llvm-commits at lists.llvm.org
Tue May 19 03:05:32 PDT 2026
Author: Nishant Sachdeva
Date: 2026-05-19T15:35:27+05:30
New Revision: 4c10240569025ab1fe086f220d59d36abfcbe906
URL: https://github.com/llvm/llvm-project/commit/4c10240569025ab1fe086f220d59d36abfcbe906
DIFF: https://github.com/llvm/llvm-project/commit/4c10240569025ab1fe086f220d59d36abfcbe906.diff
LOG: [llvm-ir2vec][NFC] Adding disclaimer to Bindings requirements.txt to check compatibility with ml-compiler-opt (#198171)
Follow up PR for
https://github.com/llvm/llvm-zorg/pull/846#issuecomment-4467263196
Added:
Modified:
llvm/tools/llvm-ir2vec/Bindings/requirements.txt
Removed:
################################################################################
diff --git a/llvm/tools/llvm-ir2vec/Bindings/requirements.txt b/llvm/tools/llvm-ir2vec/Bindings/requirements.txt
index f5ea093068a2b..8f1f4cfee54d7 100644
--- a/llvm/tools/llvm-ir2vec/Bindings/requirements.txt
+++ b/llvm/tools/llvm-ir2vec/Bindings/requirements.txt
@@ -1,2 +1,34 @@
-# BUILD dependencies
+# IR2Vec python bindings' dependencies
+#
+# BEFORE UPDATING: verify compatibility with ml-compiler-opt's Pipfile/Pipenv
+# environment first. The bot environment is initialized from there and conflicts
+# or version skews will cause failures that are hard to diagnose because bots
+# restart/get preempted at arbitrary intervals with no persistent state.
+#
+# See: https://github.com/google/ml-compiler-opt/Pipfile
+
+
+# IR2Vec unit-test dependencies
+#
+# Context: LLVM's post-merge CI bots are launched via the zorg repository
+# (llvm/llvm-zorg), which configures and schedules the buildbot workers.
+# The ml-opt* bots among these use google/ml-compiler-opt to set up
+# their Python environment (via its Pipenv/Pipfile). IR2Vec's unit tests run
+# on those same bots, so, these dependencies get installed on the same
+# environment as ml-compiler-opt's Pipenv environment.
+#
+# Because bots restart/get preempted at arbitrary intervals with no persistent
+# state, a dependency conflict between ml-compiler-opt's Pipenv and these
+# requirements will cause hard-to-diagnose initialization failures.
+#
+# BEFORE UPDATING these requirements: verify tml-compiler-opt pipenv
+# can be applied first, then these requirements.
+#
+# Recommended verification workflow:
+# 1. Apply ml-compiler-opt's pipenv (Pipfile.lock) in a fresh venv.
+# 2. pip install the updated requirements on top of it.
+# 3. Run unit tests locally to confirm no breakage.
+#
+# See: https://github.com/llvm/llvm-zorg (bot configuration)
+# https://github.com/google/ml-compiler-opt (Pipfile / build env)
nanobind>=2.9, <3.0
More information about the llvm-commits
mailing list