Spin off from #2849674: Complex job in ViewExecutable::unserialize() causes data corruption and #2701829: Extension objects should not implement \Serializable, original test by @andypost
When adding a test for batched bulk updates using a View, seg faults occurred on the test bot when this got committed, see #2898721: Random segfault currently in FileFieldWidgetTest::testMultiValuedWidget()
The offending test was removed from the original issue since there was sufficient test coverage via a Kerneltest, but it would be worthwhile to add this coverage and discover why this would cause a seg fault on the test bot.
Extensive testing was done in #2879048: Ignore: patch testing issue for #2919863 from #57 onwards.
The right fix is probably being worked on in #2842393: Discover why gc_disable() improves update.php stability. Once that gets fixed we should work on getting the full batch test in.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | interdiff-2-5.txt | 2.04 KB | Anonymous (not verified) |
| #5 | 2900399-5.patch | 5.69 KB | Anonymous (not verified) |
| #2 | x20_2900399-2.patch | 6.16 KB | Anonymous (not verified) |
| #2 | 2900399-2.patch | 5.67 KB | Anonymous (not verified) |
Comments
Comment #2
Anonymous (not verified) commentedUnfortunately, we lost this random fail. So, reroll #2849674-76: Complex job in ViewExecutable::unserialize() causes data corruption interdiff-2849674-64-76.txt from Lendude.
Comment #3
Anonymous (not verified) commentedDon't credit me here. This is patch from @Lendude.
Comment #5
Anonymous (not verified) commentedCS fix + replace deprecated code + update batch after #2401797: Introduce a batch builder class to make the batch API easier to use. One diff is remove checking about empty operations:
- if ($operations) {Because it seems this extra checking. But if I'm wrong, it can be returned like:
See also #2921862-33: Segfault on PHP5.5 and PostgreSQL where it is further confirmed that this test action is not the cause of random fails.
Comment #7
Anonymous (not verified) commentedBatchBuilder only for 8.6.x :(
Comment #8
borisson_I found a really small nitpick, otherwise this patch looks great!
The
there is not needed, this test doesn't use translations.Comment #12
manuel garcia commentedI believe this was already done as part of #2701829: Extension objects should not implement \Serializable no?