By linking each test to the code it covers, CI knows which tests to replay for a given change. The full suite still runs, but less often, for example every night.
That’s what keeps feedback down to a few minutes when the suite has thousands of tests.