-
-
Notifications
You must be signed in to change notification settings - Fork 584
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
Updated match.py to handle matched_text_diagnostics seperately #3510
Conversation
Signed-off-by: Shaikh Mohd Tehami <[email protected]>
Some tests are failing and internally they are failing due to tests/scancode/test_cli.py , even locally this test fails and shows - src/scancode/cli_test_utils.py: 210: AssertionError that is - On line 210 I found this - https://github.com/nexB/scancode-toolkit/blob/e005a91c649cdf52b340882e072043008911562e/src/scancode/cli_test_utils.py#L207C2-L207C2
Does this means my logic of code is wrong or can regenerating this test fix the failure ? |
@tehami02 Thanks! any plan to push this through? |
@pombredanne Yeah, but I think I'll need to pass all the tests. If you have any solution about how can I make my code pass tests that are failing please share. |
@tehami02 thanks++ for the PR and sorry for the late reply here, this fell through the cracks 😅 For future reference, see https://scancode-toolkit.readthedocs.io/en/stable/contribute/contrib_dev.html#running-tests for more info on running tests and looking into failures to check whether the code is working as intended and if you need to regenerate test fixtures by using something like: Here there were a few more changes required to just add the new attribute, see 2ddb31c#diff-e6d56ce33d4c6e9fcf1d10ee56286e5e11f5eb07739ca062b401e798a684f2c7R789, and then a lot more to make sure the license detection objects in packages/top-level unique detections also reflect with a new attribute in a same way, and other plugins work as intended without failing, see 2ddb31c for reference. I had a lot more changes in license detection also added, so to avoid conflicts I'm adding your change in that PR instead. I've used your commit here at #3620 and then added my changes on top of it, so you see what more you should have done here. I'm closing this PR as I've already used the code from this PR. Thanks again, and you can work on other good first issues instead: https://github.com/nexB/scancode-toolkit/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22 |
@AyanSinhaMahapatra Thanks for completing the issue. I'll go through your PR to understand how things work here. Btw can u suggest anything else I should do to understand working of this software and codebase more efficiently as I would like to contribute more into it with greater understanding as I can see many issues are unresolved. |
@tehami02 see https://github.com/nexB/scancode-toolkit/issues?q=is%3Aopen+is%3Aissue+label%3Apackage-formats for supporting more package formats in SCTK, there are nice to look into and add support for. |
Updated match.py to handle matched_text_diagnostics seperately #3426
Tasks
Run tests locally to check for errors.
Signed-off-by: Mohd Tehami [email protected]