<div dir="ltr">This is very useful information, thanks!<div>However, after making a quick browsing for this in our wiki pages- I wasn&#39;t able to find it anywhere.. How can we add it to the wiki? it should be easy located as it is very relevant for every vdsm developer..</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Dec 29, 2015 at 7:10 PM, Nir Soffer <span dir="ltr">&lt;<a href="mailto:nsoffer@redhat.com" target="_blank">nsoffer@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Tue, Dec 29, 2015 at 7:04 PM, Yaniv Kaul &lt;<a href="mailto:ykaul@redhat.com">ykaul@redhat.com</a>&gt; wrote:<br>
<span class="">&gt; On Tue, Dec 29, 2015 at 6:29 PM, Nir Soffer &lt;<a href="mailto:nsoffer@redhat.com">nsoffer@redhat.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; Hi all,<br>
&gt;&gt;<br>
&gt;&gt; Recently we added a new test, breaking make check when run on a<br>
&gt;&gt; development<br>
&gt;&gt; machine as non-privileged user.<br>
&gt;&gt; <a href="https://gerrit.ovirt.org/50984" rel="noreferrer" target="_blank">https://gerrit.ovirt.org/50984</a><br>
&gt;&gt;<br>
&gt;&gt; This test pass on the CI environment, because the tests are running as<br>
&gt;&gt; root.<br>
&gt;<br>
&gt;<br>
</span>&gt; Should we do something different in CI?<br>
<br>
We should, but I want to discuss this in the devel mailing list.<br>
<br>
Nir<br>
<br>
&gt; Y.<br>
<div class="HOEnZb"><div class="h5">&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Please verify that &quot;make check&quot; is successful on your development<br>
&gt;&gt; environment.<br>
&gt;&gt; otherwise, you may break the tests for others using this practice.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Best practice for running the tests:<br>
&gt;&gt;<br>
&gt;&gt; 1. Run the tests for the module you change:<br>
&gt;&gt;<br>
&gt;&gt; $ ./run_tests_local.sh rwlock_test.py<br>
&gt;&gt; nose.config: INFO: Ignoring files matching [&#39;^\\.&#39;, &#39;^_&#39;, &#39;^setup\\.py$&#39;]<br>
&gt;&gt; rwlock_test.RWLockStressTests<br>
&gt;&gt;     test_fairness(1, 2)                                         SKIP:<br>
&gt;&gt; Stress tests are disabled<br>
&gt;&gt;     test_fairness(2, 8)                                         SKIP:<br>
&gt;&gt; Stress tests are disabled<br>
&gt;&gt;     test_fairness(3, 32)                                        SKIP:<br>
&gt;&gt; Stress tests are disabled<br>
&gt;&gt;     test_fairness(4, 128)                                       SKIP:<br>
&gt;&gt; Stress tests are disabled<br>
&gt;&gt; rwlock_test.RWLockTests<br>
&gt;&gt;     test_concurrent_readers                                     OK<br>
&gt;&gt;     test_demotion_no_waiters                                    OK<br>
&gt;&gt;     test_demotion_with_blocked_reader                           SKIP:<br>
&gt;&gt; Slow tests are disabled<br>
&gt;&gt;     test_demotion_with_blocked_writer                           SKIP:<br>
&gt;&gt; Slow tests are disabled<br>
&gt;&gt;     test_exclusive_context_blocks_reader                        SKIP:<br>
&gt;&gt; Slow tests are disabled<br>
&gt;&gt;     test_exclusive_context_blocks_writer                        SKIP:<br>
&gt;&gt; Slow tests are disabled<br>
&gt;&gt;     test_fifo                                                   SKIP:<br>
&gt;&gt; Slow tests are disabled<br>
&gt;&gt;     test_promotion_forbidden                                    OK<br>
&gt;&gt;     test_recursive_read_lock                                    OK<br>
&gt;&gt;     test_recursive_write_lock                                   OK<br>
&gt;&gt;     test_release_other_thread_read_lock                         OK<br>
&gt;&gt;     test_release_other_thread_write_lock                        OK<br>
&gt;&gt;     test_shared_context_allows_reader                           OK<br>
&gt;&gt;     test_shared_context_blocks_writer                           SKIP:<br>
&gt;&gt; Slow tests are disabled<br>
&gt;&gt;     test_wakeup_all_blocked_readers                             SKIP:<br>
&gt;&gt; Slow tests are disabled<br>
&gt;&gt;     test_wakeup_blocked_reader                                  SKIP:<br>
&gt;&gt; Slow tests are disabled<br>
&gt;&gt;     test_wakeup_blocked_writer                                  SKIP:<br>
&gt;&gt; Slow tests are disabled<br>
&gt;&gt;<br>
&gt;&gt; ----------------------------------------------------------------------<br>
&gt;&gt; Ran 21 tests in 0.005s<br>
&gt;&gt;<br>
&gt;&gt; This should be very fast and should run after every change.<br>
&gt;&gt;<br>
&gt;&gt; 2. Check that slow and stress tests pass<br>
&gt;&gt;<br>
&gt;&gt; Some modules have @slowtest and @stresstest, which are skipped by default.<br>
&gt;&gt; When modifying such modules, enable also these tests:<br>
&gt;&gt;<br>
&gt;&gt; $ ./run_tests_local.sh rwlock_test.py --enable-slow-tests<br>
&gt;&gt; --enable-stress-tests<br>
&gt;&gt; nose.config: INFO: Ignoring files matching [&#39;^\\.&#39;, &#39;^_&#39;, &#39;^setup\\.py$&#39;]<br>
&gt;&gt; rwlock_test.RWLockStressTests<br>
&gt;&gt;     test_fairness(1, 2)                                         OK<br>
&gt;&gt;     test_fairness(2, 8)                                         OK<br>
&gt;&gt;     test_fairness(3, 32)                                        OK<br>
&gt;&gt;     test_fairness(4, 128)                                       OK<br>
&gt;&gt; rwlock_test.RWLockTests<br>
&gt;&gt;     test_concurrent_readers                                     OK<br>
&gt;&gt;     test_demotion_no_waiters                                    OK<br>
&gt;&gt;     test_demotion_with_blocked_reader                           SKIP:<br>
&gt;&gt; Known issue in current code<br>
&gt;&gt;     test_demotion_with_blocked_writer                           OK<br>
&gt;&gt;     test_exclusive_context_blocks_reader                        OK<br>
&gt;&gt;     test_exclusive_context_blocks_writer                        OK<br>
&gt;&gt;     test_fifo                                                   OK<br>
&gt;&gt;     test_promotion_forbidden                                    OK<br>
&gt;&gt;     test_recursive_read_lock                                    OK<br>
&gt;&gt;     test_recursive_write_lock                                   OK<br>
&gt;&gt;     test_release_other_thread_read_lock                         OK<br>
&gt;&gt;     test_release_other_thread_write_lock                        OK<br>
&gt;&gt;     test_shared_context_allows_reader                           OK<br>
&gt;&gt;     test_shared_context_blocks_writer                           OK<br>
&gt;&gt;     test_wakeup_all_blocked_readers                             OK<br>
&gt;&gt;     test_wakeup_blocked_reader                                  OK<br>
&gt;&gt;     test_wakeup_blocked_writer                                  OK<br>
&gt;&gt;<br>
&gt;&gt; ----------------------------------------------------------------------<br>
&gt;&gt; Ran 21 tests in 14.054s<br>
&gt;&gt;<br>
&gt;&gt; This may take more time.<br>
&gt;&gt;<br>
&gt;&gt; 3. When the module tests pass, run &quot;make check&quot;<br>
&gt;&gt;<br>
&gt;&gt;     make check<br>
&gt;&gt;<br>
&gt;&gt; This takes about 90 seconds.<br>
&gt;&gt;<br>
&gt;&gt; To run all tests, including slow and stress tests, use:<br>
&gt;&gt;<br>
&gt;&gt;     make check-all<br>
&gt;&gt;<br>
&gt;&gt; This may take couple of minutes, so it is not recommended.<br>
&gt;&gt;<br>
&gt;&gt; Thanks,<br>
&gt;&gt; Nir<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; Devel mailing list<br>
&gt;&gt; <a href="mailto:Devel@ovirt.org">Devel@ovirt.org</a><br>
&gt;&gt; <a href="http://lists.ovirt.org/mailman/listinfo/devel" rel="noreferrer" target="_blank">http://lists.ovirt.org/mailman/listinfo/devel</a><br>
&gt;<br>
&gt;<br>
_______________________________________________<br>
Devel mailing list<br>
<a href="mailto:Devel@ovirt.org">Devel@ovirt.org</a><br>
<a href="http://lists.ovirt.org/mailman/listinfo/devel" rel="noreferrer" target="_blank">http://lists.ovirt.org/mailman/listinfo/devel</a><br>
</div></div></blockquote></div><br></div>