mirror of
https://github.com/BerriAI/litellm.git
synced 2026-12-03 01:38:46 +00:00
* build(docker): build the FIPS image from the main Dockerfile with FLAVOR=fips
Dockerfile.fips repeated most of the main Dockerfile, so every shared change had to be made twice. The FIPS steps now live in the main Dockerfile as stages that only --build-arg FLAVOR=fips reaches. The default flavor builds exactly what it built before, and it never pulls the Chainguard base or mounts the cgr-token secret.
The FIPS Scan workflow now runs on every Dockerfile change and reads its uv commands from the builder-deps-fips stage. The FIPS owners also own the shared Dockerfile and its dockerignore.
* test(docker): check the user each flavor's image actually ships with
The non-root test took the last USER line in the Dockerfile, which is now the
fips-check stage's USER root. That stage only feeds a report into final-fips,
so the test failed while both shipped images still run as 65532.
The test now follows each flavor's FROM chain from the final stage and checks
the USER it inherits, for both standard and fips.
* build(docker): keep the FIPS scan inputs out of the default build
The shared dockerignore let scan_bundled_crypto.sh and fips_elf_inventory.txt
into every build, so COPY . . put them in the standard builder image. The
dockerignore is back to main's, and fips-check now reads both files from a
fips-scan build context that FIPS builds pass with
--build-context fips-scan=litellm/deploy/docker. Without it, a FIPS build stops
with an error that names the flag, so the scan cannot be skipped by accident.
* build(docker): run the FIPS scan for every runnable FIPS target
EXPOSE and ENTRYPOINT sat in the shared runtime stage, before fips-check, so
FLAVOR=fips with --target runtime or --target final-standard built a runnable
FIPS image that never ran the scan. Dockerfile.fips only set them after its
scan.
The shared stage is now runtime-app, and runtime resolves to runtime-${FLAVOR},
where runtime-fips copies the fips-check report. EXPOSE and ENTRYPOINT move to
runtime, the last stage, so the default target and compose's target: runtime
build exactly what they built before for the default flavor, and every runnable
FLAVOR=fips target runs the scan. test_dockerfile_fips_scan.py checks that every
FLAVOR=fips stage with an ENTRYPOINT depends on fips-check.
* test(docker): count EXPOSE as runnable when checking the FIPS scan gate
The published FIPS image carries both ENTRYPOINT and EXPOSE, so a FLAVOR=fips stage that only adds EXPOSE is also a runnable image and must depend on fips-check.
76 lines
3.8 KiB
YAML
76 lines
3.8 KiB
YAML
description: >-
|
|
Paths deliberately outside CI coverage, each with the reason it is exempt.
|
|
assert_ci_coverage.py fails when a test file or Dockerfile is neither invoked
|
|
by a job nor listed here, so every entry below is a decision on the record.
|
|
|
|
test_paths:
|
|
- reason: ran only in CircleCI, removed
|
|
paths:
|
|
- tests/e2e/migrations/test_legacy.py
|
|
- tests/e2e/migrations/test_pooling.py
|
|
- tests/e2e/migrations/test_recovery.py
|
|
- tests/e2e/migrations/test_rolling_upgrade.py
|
|
- tests/e2e/migrations/test_shaped_database.py
|
|
- tests/e2e/migrations/test_startup.py
|
|
- tests/e2e/migrations/test_upgrade.py
|
|
- tests/integration/database/test_roi_observed.py
|
|
- reason: >-
|
|
litellm.agent() end-to-end suite. It drives the real claude, codex, opencode and pi CLIs and
|
|
deepagents against a live LiteLLM AI Gateway, so it needs those binaries on PATH plus
|
|
LITELLM_PROXY_API_BASE / LITELLM_PROXY_API_KEY, and skips without them. Run manually
|
|
before changing litellm/harness; the mocked coverage runs in tests/unit/harness and
|
|
tests/unit/llms/*/harness
|
|
paths:
|
|
- tests/harness_e2e
|
|
- reason: >-
|
|
The Rust/Python parity harness is run manually through its local CLI. Recorded replay,
|
|
fixture generation, and harness checks are intentionally outside pull request CI
|
|
paths:
|
|
- tests/rust-python-harness
|
|
- reason: >-
|
|
Owned by the open pull request that moves the Rust/Python parity checks (#45135). It ran in
|
|
the retired build_and_test job that globbed tests/test_*.py,
|
|
and that pull request gives it a new home
|
|
paths:
|
|
- tests/test_rust_python_harness.py
|
|
- reason: >-
|
|
The end-to-end suite runs against a deployed proxy from its own in-cluster rig rather than
|
|
from a pull request; it needs a live gateway and provider credentials no PR job holds
|
|
paths:
|
|
- tests/e2e
|
|
- reason: >-
|
|
The documentation and code-quality workflows execute four files in this directory by name as
|
|
scripts and pytest never collects the directory, so these six run nowhere; listed individually
|
|
so a seventh cannot inherit the exemption
|
|
paths:
|
|
- tests/documentation_tests/test_exception_types.py
|
|
- tests/documentation_tests/test_general_setting_keys.py
|
|
- tests/documentation_tests/test_optional_params.py
|
|
- tests/documentation_tests/test_readme_providers.py
|
|
- tests/documentation_tests/test_requests_lib_usage.py
|
|
- tests/documentation_tests/test_standard_logging_payload.py
|
|
- reason: >-
|
|
Named like a test but shaped like a benchmark: it fetches live image URLs, times aiohttp
|
|
against httpx, prints the ratio, and asserts nothing, so pytest cannot collect it (its
|
|
functions take arguments, not fixtures) and running it beside its siblings in the
|
|
code-quality workflow would add a network dependency for a number nothing reads. Exempt
|
|
as a script rather than as an unresolved gap; revisit by deleting it once the aiohttp
|
|
choice it informed is settled
|
|
paths:
|
|
- tests/code_coverage_tests/test_aio_http_image_conversion.py
|
|
- reason: >-
|
|
Third-party integration tests that skip themselves without OCI configuration or sandbox
|
|
credentials, neither of which a pull request job holds
|
|
paths:
|
|
- tests/integration/sandbox/test_e2b_sandbox.py
|
|
- tests/integration/test_oci_integration.py
|
|
- tests/integration/test_oci_proxy_integration.py
|
|
|
|
dockerfiles:
|
|
- reason: >-
|
|
The Rust gateway image compiles the whole workspace in release mode, which is too slow for
|
|
a per-pull-request job while the gateway binary is still being assembled; the Rust lint,
|
|
clippy, and compile jobs already cover the code it packages. Revisit when the gateway is
|
|
published
|
|
paths:
|
|
- litellm/rust/crates/gateway/Dockerfile
|