Skip to content

fix(ci): harden SDK path verification against stdout noise#3966

Merged
mmabrouk merged 3 commits intorelease/v0.94.1from
ci/fix-sdk-path-verification
Mar 11, 2026
Merged

fix(ci): harden SDK path verification against stdout noise#3966
mmabrouk merged 3 commits intorelease/v0.94.1from
ci/fix-sdk-path-verification

Conversation

@mmabrouk
Copy link
Member

@mmabrouk mmabrouk commented Mar 11, 2026

Summary

  • The "Verify SDK source path in image" step in 06-railway-preview-build.yml captures stdout from import agenta; print(agenta.__file__) into a variable and matches it against /app/sdk/*.
  • litellm >=1.82 (released 2026-03-10) now prints a Provider List: ... banner to stdout on import, which pollutes the captured variable and breaks the case-match.
  • This causes both the agenta-api and agenta-services build jobs to fail on any PR that touches sdk/ and doesn't have a cached image layer with the older litellm.

Fix

  • Redirect stderr with 2>/dev/null and pipe through | tail -1 so only the final printed line (agenta.__file__) is captured, regardless of any third-party import noise.

Affected PRs


Open with Devin

Third-party packages (e.g. litellm >=1.82) can print diagnostic
messages to stdout on import, which pollutes the path captured by
the verify-SDK step and causes the case-match against /app/sdk/* to
fail.

Redirect stderr and pipe through tail -1 so only the final printed
line (agenta.__file__) is captured.
@vercel
Copy link

vercel bot commented Mar 11, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
agenta-documentation Ready Ready Preview, Comment Mar 11, 2026 9:20pm

Request Review

@dosubot dosubot bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Mar 11, 2026
devin-ai-integration[bot]

This comment was marked as resolved.

Co-authored-by: devin-ai-integration[bot] <158243242+devin-ai-integration[bot]@users.noreply.github.com>
devin-ai-integration[bot]

This comment was marked as resolved.

@mmabrouk mmabrouk changed the base branch from main to release/v0.94.1 March 11, 2026 21:19
Co-authored-by: devin-ai-integration[bot] <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@mmabrouk mmabrouk merged commit d3db21d into release/v0.94.1 Mar 11, 2026
1 of 2 checks passed
@github-actions
Copy link
Contributor

Railway Preview Environment

Preview URL https://gateway-production-17cc.up.railway.app/w
Project agenta-oss-pr-3966
Image tag pr-3966-7fe87a2
Status Deployed
Railway logs Open logs
Workflow logs View workflow run
Updated at 2026-03-11T21:29:50.639Z

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci/cd SDK size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant