-
Notifications
You must be signed in to change notification settings - Fork 994
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 failing tests in the python ecosystem #10386
Conversation
6d0ccb2
to
d1732fe
Compare
d1732fe
to
785c9b4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like this just updates the tests to reflect that those dependencies aren't being included?
Let's instead figure out what caused this to change, determine if it is a regression and fix it if so.
I agree though my concern was that we'll be blocked from merging and shipping. |
@amazimbe : The issue is that the two dependencies ( The code takes all the dependencies from the fixture setup_with_requires.cfg which is 15 and write to temp setup.cfg which is correct but when the native helper parse the temp setup.cfg at this place there only 13 dependencies and two of the above stated dependencies is missing. |
@amazimbe I should had seen your initial description. You already got this. |
python/spec/dependabot/python/file_parser/setup_file_parser_spec.rb
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @honeyankit for following up, that seems to address the underlying issue 🙇
What are you trying to accomplish?
3 tests are failing on CI in the python ecosystem.
Failed examples:
rspec ./spec/dependabot/python/file_parser/setup_file_parser_spec.rb:178 # Dependabot::Python::FileParser::SetupFileParser for setup.cfg parse length is expected to eq 15
rspec ./spec/dependabot/python/file_parser/setup_file_parser_spec.rb:219 # Dependabot::Python::FileParser::SetupFileParser for setup.cfg parse a tests_require dependencies has the right details
rspec ./spec/dependabot/python/file_parser_spec.rb:999 # Dependabot::Python::FileParser parse with a setup.cfg length is expected to eq 15
It looks like we are running a python script in a subprocess to parse a setup.cfg file here:
https://github.com/dependabot/dependabot-core/blob/main/python/helpers/run.py#L13 .
I'm not sure if something has changed in the python parser but for some reason it's
not including the dependencies under tests_require and that's causing some assertions
in the tests to fail.
The dependencies missing / being ignored are here:
https://github.com/dependabot/dependabot-core/blob/main/python/spec/fixtures/setup_files/setup_with_requires.cfg#L25
#10388
How will you know you've accomplished your goal?
Tests will be green again
Checklist