Skip to content

Conversation

@sriram-mv
Copy link
Contributor

When no requirements.txt exists or download_dependencies=False, the workflow only copies files and doesn't run pip. In these cases, skip PythonRuntimeValidator and use the base RuntimeValidator instead.

This allows builds to succeed even when the target Python runtime isn't installed locally, as long as no dependencies need to be installed.

Issue #, if available:

#678

Description of changes

Determine if pip is required for the workflow and only then validate the runtime.

Description of how you validated changes

Unit tests and integration tests.

Checklist

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

When no requirements.txt exists or download_dependencies=False,
the workflow only copies files and doesn't run pip. In these cases,
skip PythonRuntimeValidator and use the base RuntimeValidator instead.

This allows builds to succeed even when the target Python runtime
isn't installed locally, as long as no dependencies need to be installed.
@sriram-mv sriram-mv requested a review from a team as a code owner January 27, 2026 20:26
@github-actions github-actions bot added pr/external stage/needs-triage Automatically applied to new issues and PRs, indicating they haven't been looked at. area/workflow/python_pip labels Jan 27, 2026
Copy link
Contributor

@reedham-aws reedham-aws left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These changes individually look good to me (and thus I'm approving). I do have a question about whether this pattern should apply to other workflows. For example, should the Ruby builder need ruby installed? It's fine by me if we merge this and then create an issue to track the remaining ones, but please correct me if this is a pip only issue.

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

Labels

area/workflow/python_pip pr/external stage/needs-triage Automatically applied to new issues and PRs, indicating they haven't been looked at.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants