Last modified: 2012-11-09 00:58:54 UTC
WMDE reported a situation where allocations were not as they expected in a 5 banner equal weighted campaign. Quantitatively they obtained (0.23, 0.20, 0.17, 0.20, 0.20) over 3,546,000 impressions. A test on AA wiki shows agrees with this result, the number of slots allocated, in same banner order, was (7, 6, 5, 6, 6). The 7 slot banner was in slots 24 thru 30. The 5 slot banner was in slots 13 thru 17.
The bug comes in at BannerChooser.php:chooseBanner(). 1/5 + 1/5 + 1/5 in double precision floating point comes to just infinitesimally above the slot boundary under allocating this banner. This error is then corrected by the final slot.
The patch for this bug is https://gerrit.wikimedia.org/r/#/c/32317/
Deploy window scheduled for UTC Nov 8 2300.