Looking at the output from Bazel's profiling on my build machine, I notice that Bazel is gladly running at least a dozen or so of my "small" unit tests in parallel, but will only run a few of my "large" tests at once (the others show "action resource lock"). My "large" tests here are selenium browser tests that are run on a remote grid - so although they take a long time, rely on an external resource, and can be flaky, they consume very few resources on the build machine and it's safe to run many of them in parallel.
What's the best way to express a test that takes a long time but consumes few resources? I could set it as "small" with a timeout of "long", but that feels kind of weird in this case. I'm also confused since the user manual says " Bazel uses the size only to determine a default timeout.", but it looks to me like it's also using it as a hint for resource estimation.