We already perform the doc-compile task in the ! Ubuntu 20.04 variant, there is no need to do it twice.
This happens because we associated the tag pull_request to this task and those two variants are executing the tests associated with this tag.
We can create a separate tag for documentation-related tasks:
diff --git a/test/evergreen.yml b/test/evergreen.yml index e1c8d4033..9b7ae4a38 100755 --- a/test/evergreen.yml +++ b/test/evergreen.yml @@ -2316,7 +2316,7 @@ tasks: env CC=/opt/mongodbtoolchain/v3/bin/gcc CXX=/opt/mongodbtoolchain/v3/bin/g++ PATH=/opt/mongodbtoolchain/v3/bin:/opt/java/jdk11/bin:$PATH sh s_release `date +%Y%m%d` - name: doc-compile - tags: ["pull_request"] + tags: ["documentation"] run_on: - ubuntu2004-test commands: @@ -3985,7 +3985,7 @@ buildvariants: make_command: ninja data_validation_stress_test_args: -t r -m -W 3 -D -p -n 100000 -k 100000 -C cache_size=100MB tasks: - - name: ".pull_request !.pull_request_compilers" + - name: ".pull_request .documentation !.pull_request_compilers" - name: compile - name: make-check-test - name: unit-test