Adding extra extend template to skip this job in the presence of a triggering MR
When the detached pipeline is running, it will not generate a compile-and-unit-test job. Instead, the only job that is intended to run is the trigger-trusted-tests job. The .skipForTriggeringMergeRequests is a convenience template to use when you want to suppress a job for the detached pipeline, but run it for normal pipelines / trusted pipelines.
Normally, the integration tests are suppressed because they have rules requiring some protected variables -- which detached pipelines wouldn't have access to. I'm surprised you don't need any such variables in this case, but here's how you would suppress it easily in that case.