On Thu, 3 Nov 2022, Matthieu Baerts wrote: > Hi Menglong, > > Thank you for the v6! > > It looks like the CI is not happy with it: > > On 03/11/2022 14:21, MPTCP CI wrote: >> Hi Menglong, >> >> Thank you for your modifications, that's great! >> >> Our CI did some validations and here is its report: >> >> - KVM Validation: normal: >> - Success! ✅: >> - Task: https://cirrus-ci.com/task/4909154062565376 >> - Summary: https://api.cirrus-ci.com/v1/artifact/task/4909154062565376/summary/summary.txt >> >> - KVM Validation: debug: >> - Unstable: 1 failed test(s): selftest_diag 🔴: >> - Task: https://cirrus-ci.com/task/6035053969408000 >> - Summary: https://api.cirrus-ci.com/v1/artifact/task/6035053969408000/summary/summary.txt > > As you can see: > > ---------------------------- > (...) > # all listen sockets [ ok ] > # after MPC handshake [ ok ] > # ....chk remote_key [ ok ] > # ....chk no fallback [ ok ] > # chk 2 msk in use [ ok ] > # chk 0 msk in use after flush [ ok ] > # check fallback [ ok ] > # many msk socket present [ fail ] timeout > while expecting 200 max 201 last 1 > # chk many msk in use [ fail ] expected > 200 found 0 > # chk 0 msk in use after flush [ ok ] > ---------------------------- > > I guess one socket is still present after the 'check fallback': you > probably need to modify flush_pids() to wait for the processes to be > over, as suggested on a comment in your v5, no? > > https://lore.kernel.org/all/b3f3c01e-4010-d5ce-970d-394711bcd0e1@tessares.net/ > > I don't think it is a good idea to wait for >= 200 except if it takes a > very long time to have the previous socket terminated. If it does, maybe > we should re-order the test or re-create the netns instead of re-using it. > > > About the patch 3/4, note that the SIGUSR1 is probably stopping the test > earlier than expected because the interrupt will cause some actions to > stop but still good to check for the 'quit' variable. > > > Also, one small detail for patch 4/4: can you add "...." at the > beginning of the new lines you print in the selftest, similar to > "....chk no fallback"? > Menglong - Thanks for the updated patches. The test ran ok on my local system, but the CI is slow on the debug build which makes the timing trickier. I don't have anything to add to Matthieu's comments above, seems like his suggestions will resolve the CI issue. -- Mat Martineau Intel