Repository navigation
Do not show a simulation result where nothing was tested - #87
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #86.
Web wording, one spec sentence pair and the README limits. No change to the simulation,
results/or the bundles, so nothing needs to be run again.Why
Of the 119 simulations in the published results, 40 do not test the proposed fix, and the screen showed them as a result:
route_through_api,invert_dependency,extract_interface): every link between the two modules is deleted, then the link is reported as goneExamples: artemis rank 39 is about one import line and reported 164 links removed. graylog ranks 6 and 7 and shopware rank 4, all in a top 10, said the link remains although nothing was moved.
What changes
One helper,
simulationKind(finding)inweb/src/screens/decisions/FixFirst.tsx, decides the wording for the list badge, the detail text and the grid's fix panel:spec.md§8.5: two sentences for these two cases.README.mdLimits: a new bullet with the counts above, and the existing "link remains" counts corrected from 32, 10 and 35 to 29, 1 and 22, because 25 of those were never simulated.What I ran and saw
make checkpasses: ruff, 36 Python tests passed and 1 skipped, contracts up to date, typecheck, 4 web tests, build.The app was served locally and these pages of the committed bundles were rendered with headless Chrome (Decisions detail, grid with the fix off, grid with the fix on). The text was read out of the rendered page.
Counts under the helper's rule, from the bundles:
Limits
judgeoutput and needs the results regenerated; see section 5 of Do not show a simulation result where nothing was tested #86.LINK_REMOVINGinsrc/codexray/judge/jobs.py. If that list changes, this one must follow.