Skip to content

fix: Fix the broken test_valid_requirements test #3673

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

Closed
wants to merge 10 commits into from

Conversation

ayushthe1
Copy link
Contributor

fixes #3644 .
The test "test_valid_requirements" in test/test_package_list_parser.py is broken. This PR attempts to fix it.

For more context on why this test is failing and why I have taken this approach to fix this, please refer to my post here on gitter.

Copy link
Contributor

@terriko terriko left a comment

Choose a reason for hiding this comment

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

The multiple result issue is going to need some additional fixes, probably using PURL since for common words like 'requests' the results may just be plain wrong. But I think you've got the right approach for dealing with this right now. Thank you!

I'm going to commit a suggestion for a slightly clearer error message and I may cause a merge conflict because of the test disabling PR that just got merged, so expect a bit of churn in this PR while I get that sorted.

Copy link
Contributor

@terriko terriko left a comment

Choose a reason for hiding this comment

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

Need to fix some linter stuff. I noted the easy one but I think black wants to fix the other file too.

@terriko
Copy link
Contributor

terriko commented Jan 18, 2024

Updating the branch to see where we're at. Sorry this fell off my radar!

@terriko
Copy link
Contributor

terriko commented Mar 12, 2024

I'm trying to update the branch to see what's going on with this again, but it looks like it's pulling in a bunch of changes I don't want so it may need bigger fixes that I can do through the web interface.

@terriko terriko added the awaiting maintainer Need a maintainer to respond / help out label Mar 12, 2024
@terriko
Copy link
Contributor

terriko commented Mar 13, 2024

Okay, this is not working (as in, the test is still failing) and it looks like a couple of the generated fuzz files somehow are stuck in this pull request.

I'm going to go ahead and close this, but feel free to make a fresh branch with only your test_valid_requirements changes and open it up again if you can get the test to actually work.

@terriko terriko closed this Mar 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting CI awaiting maintainer Need a maintainer to respond / help out
Projects
None yet
Development

Successfully merging this pull request may close these issues.

fix: TestPackageListParser/test_valid_requirements is broken
2 participants