ext/snmp: Add XFAIL on several tests - #22476
Conversation
Girgias
left a comment
There was a problem hiding this comment.
Can always add more if we missed some.
|
@Girgias Should this be backported to 8.4 and 8.5? |
SNMP tests are likely to fail on Windows CI when network features are tested. So I add all these XFAIL sections to those tests to make sure it don't bother unrelated CI runs.
|
This makes the tests fallible on all platforms, and hence effectively useless. We should either use the retry mechanism (see |
|
Using XFAIL just for Windows via SKIPIF is a optimization. wdyt @Girgias @iluuu1994? |
Do you have a failed test run at hand? Does that mean all SNMP tests fail? |
I have no way of reproducing the issue. But I guess it seems more than a timeout, since multiple tests fail when it happens. Sadly, I can't reproduce any of the failure in my local Windows machine. The issue only occurs remotely. |
|
Do you have an old link is what I meant? |
Yes, for example: https://github.com/php/php-src/actions/runs/31586188059/job/94080512001 |
|
Only three tests failed, so it doesn't look like the server completely failed to start. |
|
There are examples that all of them fails: https://github.com/php/php-src/actions/runs/31617658217/job/94184456225 I think it would be reasonable to do both. Since I don't see anything harmful in adding the retrying function and SKIPIF together. |
You're not looking at that right. They warn because they succeed and have |
|
I've done adding |
|
I don't understand why we don't go for the repeat solution if only some tests fail. Otherwise we might as well remove SNMP from the Windows build. |
Not sure if the repeat solution can solve the issue since we don't know the reason of the failure. But we can always revert it if failure is observed. See #23237. |
|
@iluuu1994 See https://github.com/php/php-src/actions/runs/31630685374/job/94245202431, there are still possible failures when we enables retrying. |
|
@LamentXU123 This test was previously marked as |
SNMP tests are likely to fail on Windows CI when network features are tested. So I add all these XFAIL sections to those tests to make sure it don't bother unrelated CI runs.