Skip to content

Run `vulnerabilities_autocomplete_finder_spec` in random order

What does this MR do and why?

While refactoring the vulnerabilities_autocomplete_finder_spec, I noticed the spec was listed in rspec_order_todo.yml

After merging that MR, the following script indicates this spec is now safe to run in a random order:

scripts/rspec_check_order_dependence \
    ./ee/spec/finders/autocomplete/vulnerabilities_autocomplete_finder_spec.rb

resolves: #442173 (closed)

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Script Output

Run options: include {:focus=>true}

All examples were filtered out; ignoring {:focus=>true}

Test environment set up in 0.987759756 seconds
....................

Finished in 10.93 seconds (files took 11.82 seconds to load)
20 examples, 0 failures

[TEST PROF INFO] Time spent in factories: 00:05.440 (43.79% of total time)
Run options: include {:focus=>true}

All examples were filtered out; ignoring {:focus=>true}

Test environment set up in 0.898978257 seconds
....................

Finished in 10.57 seconds (files took 11.98 seconds to load)
20 examples, 0 failures

[TEST PROF INFO] Time spent in factories: 00:05.481 (45.37% of total time)
Run options: include {:focus=>true}

All examples were filtered out; ignoring {:focus=>true}

Randomized with seed 25115

Test environment set up in 0.900641115 seconds
....................

Finished in 10.44 seconds (files took 11.89 seconds to load)
20 examples, 0 failures

Randomized with seed 25115

[TEST PROF INFO] Time spent in factories: 00:05.561 (46.66% of total time)


The files passed all checks!

They are likely not order-dependent and can be run in random order and thus
are being removed from 'spec/support/rspec_order_todo.yml':

  * Removing 'ee/spec/finders/autocomplete/vulnerabilities_autocomplete_finder_spec.rb'

Related to #442173 (closed)

Edited by Michael Becker

Merge request reports