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

fix: Change get_filters to not hang due to long filter strings #1418

Open
wants to merge 7 commits into
base: develop
Choose a base branch
from

Conversation

nj1973
Copy link
Contributor

@nj1973 nj1973 commented Jan 30, 2025

We had an issue in the regex used to split filters that was hanging for a long time on long filters.

I created a new utility function dedicated to splitting strings in separators that are not in single quotes and used that function to split --filters strings. We no longer get the timeouts.

This PR adds a new Python package for testing, pytest-timeout. I used this to write failing tests before I fixed the problem.

@nj1973 nj1973 linked an issue Jan 30, 2025 that may be closed by this pull request
@nj1973
Copy link
Contributor Author

nj1973 commented Jan 30, 2025

/gcbrun

@nj1973 nj1973 marked this pull request as ready for review January 30, 2025 22:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Filters option processing hanging in regex processing
1 participant