#1132913 kanboard: failing testsuite with latest symfony

Package:
src:kanboard
Source:
src:kanboard
Submitter:
David Prévot
Date:
2026-07-22 00:57:01 UTC
Severity:
normal
Tags:
#1132913#5
Date:
2026-04-07 10:33:09 UTC
From:
To:
Hi Joseph,

kanboard is currently preventing migration of symfony to testing.

https://qa.debian.org/excuses.php?package=symfony

The relevant test failure is the following.

▾ test upstream: test run
 67s autopkgtest [08:29:27]: test upstream: [-----------------------
 67s phpab %development% - Copyright (C) 2009 - 2026 by Arne Blankerts and Contributors
 67s
 67s Scanning directory tests/units
 67s
 67s Autoload file autoload.tests.php generated.
 67s
 68s Proceeding without a composer.json file.PHPUnit 13.0.0 by Sebastian Bergmann and contributors.
 68s
 68s Runtime:       PHP 8.4.16
 68s Configuration: /tmp/autopkgtest-lxc.z2g8f66q/downtmp/autopkgtest_tmp/tests/units.sqlite.xml
 68s
 94s .............................................................   61 / 1147 (  5%)
121s .............................................................  122 / 1147 ( 10%)
146s .............................................................  183 / 1147 ( 15%)
172s .............................................................  244 / 1147 ( 21%)
197s .............................................................  305 / 1147 ( 26%)
219s .............................................................  366 / 1147 ( 31%)
246s .............................................................  427 / 1147 ( 37%)
272s .............................................................  488 / 1147 ( 42%)
297s .............................................................  549 / 1147 ( 47%)
318s ..............................................F
318s
318s Time: 04:10.131, Memory: 44.00 MB
318s
318s There was 1 failure:
318s
318s 1) KanboardTests\units\Job\SubtaskEventJobTest::testTriggerEvents
318s Failed asserting that actual size 4 matches expected size 5.
318s
318s /tmp/autopkgtest-lxc.z2g8f66q/downtmp/autopkgtest_tmp/tests/units/Job/SubtaskEventJobTest.php:55
318s
318s FAILURES!
318s Tests: 596, Assertions: 3193, Failures: 1.
318s autopkgtest [08:33:38]: test upstream: -----------------------]

I’ve noticed the presence of a new upstream release, but am unsure the
issue will get fixed with it. Can you please have a look and figure out
if this is an upstream issue. If the issue is narrowed to the test (and
not an actual issue with the latest symfony version), can you please
workaround or disable it?

Thanks in advance,

taffit

#1132913#12
Date:
2026-04-12 03:12:55 UTC
From:
To:
Hi David,

Test failure happens with the new upstream as well. In fact, there are
a total of three tests that fail:

1) KanboardTests\units\Job\SubtaskEventJobTest::testTriggerEvents
Failed asserting that actual size 4 matches expected size 5.

/build/reproducible-path/kanboard-1.2.52+ds/tests/units/Job/SubtaskEventJobTest.php:55

2) KanboardTests\units\Job\TaskEventJobTest::testTriggerUpdateEvent
Failed asserting that actual size 2 matches expected size 3.

/build/reproducible-path/kanboard-1.2.52+ds/tests/units/Job/TaskEventJobTest.php:75

3) KanboardTests\units\Job\TaskLinkEventJobTest::testTriggerCreationEvents
Failed asserting that actual size 1 matches expected size 2.

/build/reproducible-path/kanboard-1.2.52+ds/tests/units/Job/TaskLinkEventJobTest.php:48

Haven't had time to really dive into this yet... Will try this week,
otherwise feel free to upload with those tests disabled.

#1132913#17
Date:
2026-04-12 07:06:51 UTC
From:
To:
Hi Joe,

The error message suggests that the dataProvider has more entries that
test expects. It may be enough to had a dummy parameter in the test
call. I’m surprised this wasn’t triggered with PHPUnit 13.0 already, but
that indeed looks like a simple test issue. I may not have much time
next week to dive into it, but will try and look into it next weekend if
you can’t find an easy workaround.

Cheers,

taffit

#1132913#22
Date:
2026-04-13 22:00:07 UTC
From:
To:
I had a look at https://github.com/symfony/symfony/issues/63844 but the
fix doesn’t change the test results for kanboard. It looks like the
event count has changed, and that may actually be a bug (either in
kanboard or in symfony).

Regards,

taffit

#1132913#27
Date:
2026-04-14 01:05:17 UTC
From:
To:
Control: retitle -1 regression in TraceableEventDispatcher::getCalledListeners()
Control: reassign -1 php-symfony-event-dispatcher 7.4.8+dfsg-1
Control: affects -1 + kanboard

Okay, I tried the simple thing and downgraded php-symfony-event-dispatcher
to the version in forky/testing [ie. 7.4.7+dfsg-1] and that resolved the
test failures. So this smells like a regression in Symfony.

If I have the chance, I'll try to extract a minimal test case that shows
the issue.
--Joe