Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[POC] Check Python paths to determine if a check is Python #32922

Closed

Conversation

pgimalac
Copy link
Member

@pgimalac pgimalac commented Jan 13, 2025

What does this PR do?

Get Python's sys.path, and use it to check if a check has a Python version, rather than loading it.

Motivation

It would allow checking if a check is Python without loading Python, which would unblock checks-agent POC or lazy loading rtloader POC.

Describe how you validated your changes

Possible Drawbacks / Trade-offs

As is, this doesn't really help, since there is an io default check, and also an io standard library module, so we would always have to start Python to know if it's an actual check or not.

We could just hardcode that io is an exception and we know it's Go, but it also means break any user using an io custom check...

Additional Notes

I'm only opening this PR to keep tracks of it.

…paths to determine if a check might be Python
@pgimalac pgimalac closed this Jan 13, 2025
@github-actions github-actions bot added the short review PR is simple enough to be reviewed quickly label Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
short review PR is simple enough to be reviewed quickly team/agent-shared-components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant