The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
infra: fail check_diffs if too many files changed (#15423)
Erick Friis1437872df9ed
diff --git a/.github/scripts/check_diff.py b/.github/scripts/check_diff.pyindex a10dee9ec3..15192fe5da 100644--- a/.github/scripts/check_diff.py+++ b/.github/scripts/check_diff.py@@ -13,6 +13,10 @@ if __name__ == "__main__":files = sys.argv[1:]dirs_to_run = set()+ if len(files) == 300:+ # max diff length is 300 files - there are likely files missing+ raise ValueError("Max diff reached. Please manually run CI on changed libs.")+for file in files:if any(file.startswith(dir_)@@ -48,4 +52,5 @@ if __name__ == "__main__":dirs_to_run.update(LANGCHAIN_DIRS)else:pass- print(json.dumps(list(dirs_to_run)))+ json_output = json.dumps(list(dirs_to_run))+ print(f"dirs-to-run={json_output}")diff --git a/.github/workflows/check_diffs.yml b/.github/workflows/check_diffs.ymlindex 442d2ebdb4..83dd2d5863 100644--- a/.github/workflows/check_diffs.yml+++ b/.github/workflows/check_diffs.yml@@ -27,7 +27,8 @@ jobs:- id: filesuses: Ana06/[email protected]- id: set-matrix- run: echo "dirs-to-run=$(python .github/scripts/check_diff.py ${{ steps.files.outputs.all }})" >> $GITHUB_OUTPUT+ run: |+ python .github/scripts/check_diff.py ${{ steps.files.outputs.all }} >> $GITHUB_OUTPUToutputs:dirs-to-run: ${{ steps.set-matrix.outputs.dirs-to-run }}ci: