Closed keturn closed 3 years ago
The required engine PR was merged, so this does build now.
I'm afraid that as much fun as I had writing it, I don't expect this is readable/maintainable for most people: https://github.com/Terasology/ModuleTestingEnvironment/blob/cc33e468c35f8099d7f9d930868caa298a32fd40/src/main/java/org/terasology/moduletestingenvironment/ChunkRegionFuture.java#L53-L62
so I think we had better find another way to write that without the higher-order function gymnastics before merging this one.
amidst all the distractions in the test log, there is this:
[Chunk-Processing-Reactor] ERROR o.t.e.w.c.p.ChunkProcessingPipeline - Cannot run java.util.concurrent.ExecutorCompletionService$QueueingFuture@6a1cf258 because queue is full
huh. Only saw that particular "queue full" message once; the later test runs don't have it.
Now this is in the unfortunate position of Works On My Machine, Fails in CI. Which I don't like, but it's also status quo—that's why we have @Tag("MteTest")
.
While I'd be very happy to see that fixed, I would also be okay with merging this without the Integration Tests stage passing, so that other tests can start using these new functions.
@DarkWeird when I mentioned “we haven't yet fixed the problems with MTE tests on our CI system,” I was referring to the way the Integration Tests have not been passing for a long time: https://jenkins.terasology.io/teraorg/job/Terasology/job/Modules/job/M/job/ModuleTestingEnvironment/job/develop/
I forwarded some questions about what to do about the JavaDoc to #documentation.
This provides a more powerful version of the
forceAndWaitForGeneration
helper method. The newmakeBlocksRelevant
andmakeChunksRelevant
methods load all required chunks to cover the given region.Depends on:
Reviewers:
ChunkRegionFutureTest
contains one test.