infra: ignore core dependents for 0.3rc (#25980)

This commit is contained in:
Erick Friis
2024-09-03 11:06:45 -07:00
committed by GitHub
parent 0c69c9fb3f
commit 8590b421c4

View File

@@ -16,6 +16,10 @@ LANGCHAIN_DIRS = [
"libs/experimental",
]
# for 0.3rc, we are ignoring core dependents
# in order to be able to get CI to pass for individual PRs.
IGNORE_CORE_DEPENDENTS = True
# ignored partners are removed from dependents
# but still run if directly edited
IGNORED_PARTNERS = [
@@ -93,7 +97,8 @@ def add_dependents(dirs_to_eval: Set[str], dependents: dict) -> List[str]:
for dir_ in dirs_to_eval:
# handle core manually because it has so many dependents
if "core" in dir_:
updated.add(dir_)
if not IGNORE_CORE_DEPENDENTS:
updated.add(dir_)
continue
pkg = "langchain-" + dir_.split("/")[-1]
updated.update(dependents[pkg])