Repository navigation
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.
Catches or excludes all 39 mutants that the weekly run reported in Issue #150.
Closes #150
Done when
scripts/coverage-container.shpasses: fmt, clippy-D warnings, nextest, 100% line coverage. Local run on 1455996: 894 tests pass, 14392 of 14392 lines covered.How each finding is handled
cli.rsresolve_setup_languages,prompt_themelanguage_prompts_start_on_the_saved_choiceswith a prompt that answers every list with its default.prompt_themeonly returnedColorfulTheme::default(), so the three prompts call that directly.display.rspreferred_resolutiondownload.rsSLOW_WINDOW_BYTES,unpooled_client5_242_880with a comment (tests use 5, so no test could check the product). New testanother_mirror_that_stops_responding_still_fails: the client for other mirrors keeps the stall timeout.common.rsdiscard_stale_archiveMAX_CACHED_ARCHIVE_AGEold, to the nanosecond, is kept or dropped, and no test can make that age.app.rsremember_windowa_zoomed_window_bigger_than_its_monitor_shrinks_to_fit, with the monitor known only after the zoom, as on Wayland.dialogs.rsChoiceDialog::showlong_choice_lists_scroll_and_keep_cancel_on_screen: with 40 options, the list takes at most 60% of the window and Cancel stays on screen.motion.rshighlight,presssetup.rsshow_install,skip_completed_stepsinstall_texts_leave_room_for_the_status_icons.skip_completed_stepsuses(start..last).find(..), so no counter can stop moving (two of its mutants timed out).welcome.rscover_uvwidgets.rsfocus_ring,cardwidgets.rsstatus_dotwidgets.rstoggle_rowtoggle_row_texts_wrap_inside_the_row: both texts stay inside the row in a narrow window.cli.rshas_only_gui_flags(timeouts)All changes
.cargo/mutants.toml: excludehighlightandpress(both name forms),focus_ring,card, and the equivalent mutants incover_uvanddiscard_stale_archive, each with a comment.src/cli.rs: removeprompt_theme, and rewritehas_only_gui_flagsover an iterator.src/cli_tests.rs: a default-answer prompt and the saved language test.src/display.rs: zero-size and area cases forpreferred_resolution.src/external/download.rs:SLOW_WINDOW_BYTESwritten out, a/stallmirror and the stall test. Flaky test fix:cancelling_stops_a_download_that_receives_nothingnow allowsSTALL_TIMEOUT * 3. On a busy machine it failed at 1.75 s against a 1 s limit. The server answers only afterSTALL_TIMEOUT * 3, so the test still fails if the cancel waits for the answer.src/ui/app_tests.rs: zoomed window test.src/ui/dialogs.rs: long list test. Its state is only theChoiceDialog, so every line of the test runs (CI coverage had found a closure line that never ran).src/ui/setup.rs:skip_completed_stepswithfind.src/ui/setup_tests.rs: install text width test.src/ui/widgets.rs: remove the unusedstatus_dot, and add the toggle row wrap test..cargo/mutants.toml(review fix): thehighlight,press,focus_ringandcardexclusions now name their files.\bcard\balso matchedWelcomeScreen::cardinsrc/ui/welcome.rs.cargo mutants --listgives the same 2048 mutants before and after.src/ui/setup.rs(review fix):INSTALL_CARD_WIDTHandSTATUS_ICON_SIZEname the install card width and the status icon size, and the layout test uses them.Review
One Sonnet 5.5 review of the full diff on adcf7db (
usage.pyshowed Room 0, so one review). I checked each finding myself:\bcard\b,in (highlight|press)$): fixed in 1455996, see item 11.install_texts_leave_room_for_the_status_icons: fixed, see item 12.another_mirror_that_stops_responding_still_failsmay flake under load: not changed. I ran it and the cancel test 40 times each with--stress-count 40at a load average of 38 to 51. All 80 runs passed. The exact retry count is what catches the mutant, so a weaker assert would lose it.install_texts_leave_room_for_the_status_iconsremoveshold-modsonly when it passes: not changed. A failed assert ends the test and the temporary folder, which stops the worker. The test before it does the same.The fixes do not change logic: a regex anchor (checked with
--list) and two named constants.