Compare commits

...

3 Commits

Author SHA1 Message Date
Sydney Runkle
4cbefc0285 attempt 2025-12-03 11:31:09 -05:00
Sydney Runkle
ffed9e479d deps 2025-12-03 11:26:09 -05:00
Sydney Runkle
14dc47e1a4 diff checker 2025-12-03 11:23:19 -05:00

View File

@@ -33,12 +33,6 @@ LANGCHAIN_DIRS = [
"libs/model-profiles",
]
# When set to True, we are ignoring core dependents
# in order to be able to get CI to pass for each individual
# package that depends on core
# e.g. if you touch core, we don't then add textsplitters/etc to CI
IGNORE_CORE_DEPENDENTS = False
# ignored partners are removed from dependents
# but still run if directly edited
IGNORED_PARTNERS = [
@@ -260,21 +254,13 @@ if __name__ == "__main__":
# libs/langchain_v1, even though the workflow may only affect documentation.
dirs_to_run["extended-test"].update(LANGCHAIN_DIRS)
if file.startswith("libs/core"):
if file.startswith("libs/core/"):
dirs_to_run["codspeed"].add("libs/core")
if any(file.startswith(dir_) for dir_ in LANGCHAIN_DIRS):
# add that dir and all dirs after in LANGCHAIN_DIRS
# for extended testing
found = False
for dir_ in LANGCHAIN_DIRS:
if dir_ == "libs/core" and IGNORE_CORE_DEPENDENTS:
dirs_to_run["extended-test"].add(dir_)
continue
if file.startswith(dir_):
found = True
if found:
dirs_to_run["extended-test"].add(dir_)
if (langchain_matches := [d for d in LANGCHAIN_DIRS if file.startswith(d + "/")]):
# add the specific dir that changed for extended testing
# dependents will be added later via add_dependents()
dirs_to_run["extended-test"].update(langchain_matches)
elif file.startswith("libs/standard-tests"):
# TODO: update to include all packages that rely on standard-tests (all partner packages)
# Note: won't run on external repo partners