Skip to content

CI doesn't lint test code, and the lasso test can time out under load #367

Closed

Description

@repires

Part of the roadmap card 🧪 Comprehensive Testing & QA ("Establish robust automated testing pipelines and continuous integration for stability across platforms").

Test code isn't linted

CI runs cargo clippy on the library code only, so warnings in #[cfg(test)] code go unnoticed. Running clippy with --all-targets on the test builds CI already compiles finds 5 errors on master:

Where Lint
desktop/src/native/window.rs, portal_string_reads_plain_and_wrapped_layouts useless_conversion: Variant::from(Variant::from(..)) is an identity conversion, so the "wrapped" value isn't wrapped and the nested-variant branch is never tested
core/src/rclone/engine/process.rs field_reassign_with_default
core/src/services/flow/workflow/types.rs (2×) cloned_ref_to_slice_refs
core/src/services/flow/workflow/engine/run.rs unnecessary_literal_unwrap

dirs is also listed in core's dependencies but isn't used there anymore (the server still uses it).

Lasso test timeout

"keeps selecting newly rendered batches during one list lasso gesture" (nautilus-view-pane.component.spec.ts) passes alone in under a second, but it took 7 to 9 s and hit the 5 s timeout in full npm run test:ci runs on a busy machine. Its getBoundingClientRect mock calls querySelectorAll over up to 650 items for every item, which is quadratic.

Merge combinations

#357 and #353 each passed CI but failed together on master, which #364 fixed. "Require branches to be up to date before merging" or a merge queue would catch that. It's a repository setting.

Fixed by #365, except the repository setting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions