Skip to content

Hermetic builds -- use requirements.txt and remove poetry#15

Merged
m-misiura merged 1 commit into
trustyai-explainability:developfrom
m-misiura:use_reqs_text_in_server
Nov 28, 2025
Merged

Hermetic builds -- use requirements.txt and remove poetry#15
m-misiura merged 1 commit into
trustyai-explainability:developfrom
m-misiura:use_reqs_text_in_server

Conversation

@m-misiura
Copy link
Copy Markdown
Collaborator

Description

For the hermetic builds, requirements.txt file is needed; this is not straightforward with poetry as poetry export fails with e.g.

poetry export --only main --extras "sdd jailbreak openai nvidia tracing models" --format=requirements.txt --output=requirements.txt
Warning: poetry-plugin-export will not be installed by default in a future version of Poetry.
In order to avoid a breaking change and make your automation forward-compatible, please install poetry-plugin-export explicitly. See https://python-poetry.org/docs/plugins/#using-plugins for details on how to install a plugin.
To disable this warning run 'poetry config warnings.export false'.

Dependency walk failed at numpy (>=1.26.2)

Moreover, there is no details where dependencies are coming from

To generate requirements.txt I used uv instead which in my view yields a much more informative file as it shows a trace of where each dependency is coming from

uv pip compile pyproject.toml --extra sdd --extra jailbreak --extra openai --extra nvidia --extra tracing --extra models -o requirements.txt

Additionally, I removed the poetry usage from the Containerfile and just use pip

Test plan

Manually ran this demo using an image quay.io/rh-ee-mmisiura/nemo-guardrails:pip-models

@m-misiura m-misiura requested a review from RobGeada November 28, 2025 12:11
Comment thread requirements.txt
# langchain-community
langchain-community==0.3.29
# via nemoguardrails (pyproject.toml)
langchain-core==0.3.76

Check failure

Code scanning / Trivy

langchain-core: LangChain Vulnerable to Template Injection via Attribute Access in Prompt Templates High

Package: langchain-core
Installed Version: 0.3.76
Vulnerability CVE-2025-65106
Severity: HIGH
Fixed Version: 1.0.7, 0.3.80
Link: CVE-2025-65106
@codecov-commenter
Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (develop@b5f7018). Learn more about missing BASE report.
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             develop      #15   +/-   ##
==========================================
  Coverage           ?   75.39%           
==========================================
  Files              ?      186           
  Lines              ?    18582           
  Branches           ?        0           
==========================================
  Hits               ?    14009           
  Misses             ?     4573           
  Partials           ?        0           
Flag Coverage Δ
python 75.39% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@m-misiura m-misiura merged commit c90cdd9 into trustyai-explainability:develop Nov 28, 2025
17 of 19 checks passed
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.

4 participants