mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-06 02:48:13 +00:00
* test(claude_code): move the Claude Code compatibility matrix under tests/e2e Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * ci(claude_code): drop the CircleCI compat PR gate; the matrix runs in the scheduled e2e suite instead Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * ci: restore the upload-coverage job dropped by mistake with the compat gate Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * fix(e2e/claude_code): print rate-limit summary on failed compat runs and fix stale run_daily.sh header comments * test(claude_code): assert fine-grained tool streaming via input_json_delta instead of an event-count floor Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --------- Co-authored-by: mateo <mateo@berri.ai> Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: mateo-berri <277851410+mateo-berri@users.noreply.github.com>
50 lines
1.6 KiB
Python
50 lines
1.6 KiB
Python
"""Tiny CLI wrapper around `claude_code.matrix_builder.build_from_paths`.
|
|
|
|
Exists only so `run_daily.sh` can hand the version metadata + paths into
|
|
the matrix builder without re-implementing it in bash. All real logic
|
|
lives in `matrix_builder.py`, which has its own unit tests under
|
|
`_builder_unit_tests/`.
|
|
|
|
Invoked from the cron worktree (where `uv sync` has installed pyyaml),
|
|
not the dev checkout — the bash script `cd`s into the worktree before
|
|
`uv run python`-ing this file.
|
|
"""
|
|
|
|
from __future__ import annotations
|
|
|
|
import argparse
|
|
import datetime
|
|
import sys
|
|
from pathlib import Path
|
|
|
|
sys.path.insert(0, str(Path(__file__).resolve().parents[2]))
|
|
|
|
from claude_code.matrix_builder import build_from_paths # noqa: E402 # import needs the sys.path bootstrap above
|
|
|
|
|
|
def main() -> int:
|
|
parser = argparse.ArgumentParser(description=__doc__)
|
|
parser.add_argument("--manifest", type=Path, required=True)
|
|
parser.add_argument("--results", type=Path, required=True)
|
|
parser.add_argument("--output", type=Path, required=True)
|
|
parser.add_argument("--litellm-version", required=True)
|
|
parser.add_argument("--claude-code-version", required=True)
|
|
args = parser.parse_args()
|
|
|
|
generated_at = datetime.datetime.now(datetime.timezone.utc).strftime(
|
|
"%Y-%m-%dT%H:%M:%SZ"
|
|
)
|
|
build_from_paths(
|
|
manifest_path=args.manifest,
|
|
results_path=args.results,
|
|
litellm_version=args.litellm_version,
|
|
claude_code_version=args.claude_code_version,
|
|
generated_at=generated_at,
|
|
output_path=args.output,
|
|
)
|
|
print(f"wrote {args.output}")
|
|
return 0
|
|
|
|
|
|
if __name__ == "__main__":
|
|
sys.exit(main())
|