Skip to content

Fix TraceLens Docker images to install runtime dependencies#833

Merged
devalshahamd merged 3 commits into
mainfrom
fix-tracelens-docker-deps
Jul 21, 2026
Merged

Fix TraceLens Docker images to install runtime dependencies#833
devalshahamd merged 3 commits into
mainfrom
fix-tracelens-docker-deps

Conversation

@haofrank

@haofrank haofrank commented Jul 21, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Replace pip install --no-deps /tmp/TraceLens in inference Docker build workflows
  • Install TraceLens with runtime dependencies such as orjson and matplotlib
  • Add build-time validation for core TraceLens inference imports and CLI commands

Details

The vLLM and SGLang inference Docker workflow scripts previously installed TraceLens with --no-deps, which allowed images to contain TraceLens entry points while missing required runtime dependencies.

This could make TraceLens post-processing fail later with errors such as:

ModuleNotFoundError: No module named 'orjson'

Updated scripts:

  • examples/custom_workflows/inference_analysis/build_docker_vllm.sh
  • examples/custom_workflows/inference_analysis/build_docker_sglang.sh

Both now install TraceLens with dependencies:
pip install --upgrade /tmp/TraceLens

@haofrank
haofrank requested a review from devalshahamd as a code owner July 21, 2026 00:09
@devalshahamd
devalshahamd merged commit 65f14cd into main Jul 21, 2026
3 checks passed
@devalshahamd
devalshahamd deleted the fix-tracelens-docker-deps branch July 21, 2026 23:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants