Last modified: 2013-12-05 13:17:24 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T59974, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 57974 - API unit tests generate output in the middle of the phpunit progress indicator
API unit tests generate output in the middle of the phpunit progress indicator
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
unspecified
All All
: Unprioritized trivial (vote)
: ---
Assigned To: Nobody - You can work on this!
: easy
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-12-04 12:36 UTC by Marcin Cieślak
Modified: 2013-12-05 13:17 UTC (History)
6 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Marcin Cieślak 2013-12-04 12:36:14 UTC
Configuration read from /usr/home/saper/test/mytest/tests/phpunit/suite.xml

.............................................................   61 / 7428 (  0%)
.................EEEEEEEE....................................  122 / 7428 (  1%)
.............................................................  183 / 7428 (  2%)
.............................................................  244 / 7428 (  3%)
.............................................................  305 / 7428 (  4%)
.............................................................  366 / 7428 (  4%)
.............................................................  427 / 7428 (  5%)
.............................................................  488 / 7428 (  6%)
.............................................................  549 / 7428 (  7%)
.............................................................  610 / 7428 (  8%)
.............................................................  671 / 7428 (  9%)
.............................................................  732 / 7428 (  9%)
.............................................................  793 / 7428 ( 10%)
.............................................................  854 / 7428 ( 11%)
.............................................................  915 / 7428 ( 12%)
.............................................................  976 / 7428 ( 13%)
............................................................. 1037 / 7428 ( 13%)
............................................................. 1098 / 7428 ( 14%)
............................................................. 1159 / 7428 ( 15%)
............................................................. 1220 / 7428 ( 16%)
............................................................. 1281 / 7428 ( 17%)
............................................................. 1342 / 7428 ( 18%)
............................................................. 1403 / 7428 ( 18%)
............................................................. 1464 / 7428 ( 19%)
............................................................. 1525 / 7428 ( 20%)
............................................................. 1586 / 7428 ( 21%)
............................................................. 1647 / 7428 ( 22%)
............................................................. 1708 / 7428 ( 22%)
...............E............................................. 1769 / 7428 ( 23%)
............................................................. 1830 / 7428 ( 24%)
............................................................. 1891 / 7428 ( 25%)
............................................................. 1952 / 7428 ( 26%)
............................................................. 2013 / 7428 ( 27%)
............................................................. 2074 / 7428 ( 27%)
......................EE..FF......E.......................... 2135 / 7428 ( 28%)
...........E................................................. 2196 / 7428 ( 29%)
............................................................. 2257 / 7428 ( 30%)
.......................................F
Request: generator=links&titles=AQBT-Links&action=query

Expected:
Array
(
    [query] => Array
        (
            [pages] => Array
                (
                    [1] => Array
                        (
                            [pageid] => 1
                            [ns] => 0
                            [title] => AQBT-All
                        )

                    [2] => Array
                        (
                            [pageid] => 2
                            [ns] => 0
                            [title] => AQBT-Categories
                        )

                    [4] => Array
                        (
                            [pageid] => 4
                            [ns] => 0
                            [title] => AQBT-Templates
                        )

                )

        )

)

Result:
Array
(
    [query] => Array
        (
            [pages] => Array
                (
                    [109] => Array
                        (
                            [pageid] => 109
                            [ns] => 0
                            [title] => AQBT-Categories
                        )

                    [108] => Array
                        (
                            [pageid] => 108
                            [ns] => 0
                            [title] => AQBT-All
                        )

                    [111] => Array
                        (
                            [pageid] => 111
                            [ns] => 0
                            [title] => AQBT-Templates
                        )

                )

        )

)
..................... 2318 / 7428 ( 31%)
Comment 1 Marcin Cieślak 2013-12-04 12:40:02 UTC
Actually all ApiQuerySqliteBugTest is having this problem, too.
Comment 2 Marcin Cieślak 2013-12-04 12:40:30 UTC
er, ApiQueryTestBase I mean
Comment 3 Brad Jorsch 2013-12-04 15:30:02 UTC
What's wrong with using print_r for printing output? What do you think should be used instead?
Comment 4 Brad Jorsch 2013-12-04 15:52:17 UTC
Oh, I think I see the problem. It's not print_r, it's that the output (some of which is print_r and some plain print statements) is being dumped in the middle of the progress indication rather than being accumulated into the test result.
Comment 5 Gerrit Notification Bot 2013-12-04 17:02:21 UTC
Change 99156 had a related patch set uploaded by Anomie:
Improve ApiQueryTestBase::assertResult

https://gerrit.wikimedia.org/r/99156
Comment 6 Gerrit Notification Bot 2013-12-05 01:04:32 UTC
Change 99156 merged by jenkins-bot:
Improve ApiQueryTestBase::assertResult

https://gerrit.wikimedia.org/r/99156
Comment 7 Niklas Laxström 2013-12-05 13:17:24 UTC
I have a similar problem with other test: https://gerrit.wikimedia.org/r/#/c/95868/

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links