It happens time and time again: we create a test, it fails and after half an hour of debugging we realize we just need to set our tracking_page_size config value.
Having an assertion in place for this will probably save a lot of time in the long run. (Even though it seems some of our tests are currently failing when adding it – so it's not too simple to implement, unfortunately. But maybe that means some of those tests cheat a bit in other ways, which would then be an additional advantage if we could fix that, too.)

Comments

drunken monkey created an issue. See original summary.

drunken monkey’s picture

Status: Active » Needs review
StatusFileSize
new617 bytes

Status: Needs review » Needs work

The last submitted patch, 2: 2729193-2--content_entity_tracking_page_size_assert.patch, failed testing.

The last submitted patch, 2: 2729193-2--content_entity_tracking_page_size_assert.patch, failed testing.

drunken monkey’s picture

Status: Needs work » Needs review
StatusFileSize
new9.53 KB

Here is the patch with all the necessary "set config" additions to tests.
I've also added checks to only disable batches for tracking if we are actually running tests via the GUI. Don't know why we didn't do that before? (But if there's a good reason, we can of course also skip that change.)

borisson_’s picture

Status: Needs review » Reviewed & tested by the community

This looks great! I like this very much.

  • drunken monkey committed 137117c on 8.x-1.x
    Issue #2729193 by drunken monkey: Added a runtime assertion to ensure...
drunken monkey’s picture

Status: Reviewed & tested by the community » Fixed

Me too, thanks for reviewing!
Committed.
Here's to hopefully numerous saved hours of needless bughunting!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.