Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
@apaderno What I described is essentially what I use for core development. I haven't found an advantage for Docker/Vagrant or full DrupalCI locally. I have a bunch of shell scripts for running tests, and if need all that DrupalCI does it is because I need a full testbot run and don't want to do that locally (though I have been toying with setting up a Pi4 Branble to do it).
For clarity, that is for the active display, not in the generic sense for all displays attached to a $view. The active display isn't available in some of the early hooks (and I totally forget which ones).
The declaration should be function mymodule_update_8001(&$sandbox), as arrays have weird pass by value/reference rules in PHP. So, I highly suspect in the UpdateManager(?), this isn't actually being called as a batch.