A merge gate reads a check that CI creates only after its test jobs finish, and one commit gets two CI runs. The faster run turns green first and the gate passes while the slower run is still testing.
Wait on the run, not on the summary check. A summary check that does not exist yet is not a pass.
Test the states the platform makes. A fixture of an impossible state proves nothing.
Test the states the platform makes. A fixture of an impossible state proves nothing.