gravitational / teleport

The easiest, and most secure way to access and protect all of your infrastructure.
https://goteleport.com
GNU Affero General Public License v3.0
17.69k stars 1.77k forks source link

`TestSPIFFEFederationSyncer` flakiness #47398

Open strideynet opened 1 month ago

strideynet commented 1 month ago

Failure

Link(s) to logs

Relevant snippet

=== FAIL: lib/auth/machineid/machineidv1 TestSPIFFEFederationSyncer (0.22s)
    spiffe_federation_syncer_test.go:179: 
            Error Trace:    /__w/teleport/teleport/lib/auth/machineid/machineidv1/spiffe_federation_syncer_test.go:179
                                        /opt/go/src/runtime/asm_amd64.s:1700
            Error:          Should not be: "fa9014f6-066f-4bba-9d69-703a30afd54d"
            Test:           TestSPIFFEFederationSyncer
strideynet commented 1 month ago

Looks like my fix was not as efficacious as I hoped - we had two weeks without this recurring, but it's just popped up on the flaky test detector: https://github.com/gravitational/teleport.e/actions/runs/11457839742/job/31878962824

===================================================
OUTPUT github.com/gravitational/teleport/lib/auth/machineid/machineidv1.TestSPIFFEFederationSyncer
===================================================
=== RUN   TestSPIFFEFederationSyncer
=== PAUSE TestSPIFFEFederationSyncer
=== CONT  TestSPIFFEFederationSyncer
    spiffe_federation_syncer_test.go:179: 
            Error Trace:    /__w/teleport.e/teleport.e/lib/auth/machineid/machineidv1/spiffe_federation_syncer_test.go:179
                                        /opt/go/src/runtime/asm_amd64.s:1700
            Error:          Should not be: "f069003a-bde6-4b2c-ace9-375547393cb1"
            Test:           TestSPIFFEFederationSyncer
--- FAIL: TestSPIFFEFederationSyncer (0.41s)
{"caller":"tlsca/ca.go:1226","common_name":"unauthorized","component":"ca","dns_names":null,"key_usage":5,"level":"debug","message":"Generating TLS certificate","not_after":"2024-10-22T12:36:01Z","timestamp":"2024-10-22T11:36:01Z"}