Skip to content

Flaky test: TestFileWatcherCRLProviderDirectoryScan #6772

@arvindbr8

Description

@arvindbr8

Flaked in go1.21, 386

Custom error message: cannot construct CRL from file "/home/runner/work/grpc-go/grpc-go/security/advancedtls/testdata/crl/unrevoked.pem": fail to parse CRL: x509: malformed crlCustom error message: cannot construct CRL from file "/home/runner/work/grpc-go/grpc-go/security/advancedtls/testdata/crl/provider_crl.cnf": fail to parse CRL: x509: malformed crlCustom error message: cannot construct CRL from file "/home/runner/work/grpc-go/grpc-go/security/advancedtls/testdata/crl/provider_server_cert.key": fail to parse CRL: x509: malformed crlCustom error message: cannot construct CRL from file "/home/runner/work/grpc-go/grpc-go/security/advancedtls/testdata/crl/provider_client_trust_key.pem": fail to parse CRL: x509: malformed crlCustom error message: cannot construct CRL from file "/home/runner/work/grpc-go/grpc-go/security/advancedtls/testdata/crl/provider_server_cert.pem": fail to parse CRL: x509: malformed crlCustom error message: cannot construct CRL from file "/home/runner/work/grpc-go/grpc-go/security/advancedtls/testdata/crl/provider_client_cert.key": fail to parse CRL: x509: malformed crlCustom error message: cannot construct CRL from file "/home/runner/work/grpc-go/grpc-go/security/advancedtls/testdata/crl/provider_client_trust_cert.pem": fail to parse CRL: x509: malformed crlCustom error message: cannot construct CRL from file "/home/runner/work/grpc-go/grpc-go/security/advancedtls/testdata/crl/README.md": fail to parse CRL: x509: malformed crlCustom error message: cannot construct CRL from file "/home/runner/work/grpc-go/grpc-go/security/advancedtls/testdata/crl/provider_create.sh": fail to parse CRL: x509: malformed crlCustom error message: cannot construct CRL from file "/home/runner/work/grpc-go/grpc-go/security/advancedtls/testdata/crl/revokedInt.pem": fail to parse CRL: x509: malformed crlCustom error message: cannot construct CRL from file "/home/runner/work/grpc-go/grpc-go/security/advancedtls/testdata/crl/provider_client_cert.pem": fail to parse CRL: x509: malformed crlCustom error message: cannot construct CRL from file "/home/runner/work/grpc-go/grpc-go/security/advancedtls/testdata/crl/provider_server_trust_key.pem": fail to parse CRL: x509: malformed crlCustom error message: cannot construct CRL from file "/home/runner/work/grpc-go/grpc-go/security/advancedtls/testdata/crl/revokedLeaf.pem": fail to parse CRL: x509: malformed crlCustom error message: cannot construct CRL from file "/home/runner/work/grpc-go/grpc-go/security/advancedtls/testdata/crl/provider_extensions.conf": fail to parse CRL: x509: malformed crlCustom error message: cannot construct CRL from file "/home/runner/work/grpc-go/grpc-go/security/advancedtls/testdata/crl/provider_server_trust_cert.pem": fail to parse CRL: x509: malformed crlCustom error message: cannot construct CRL from file "/home/runner/work/grpc-go/grpc-go/security/advancedtls/testdata/crl/unrevoked.pem": fail to parse CRL: x509: malformed crlCustom error message: cannot construct CRL from file "/home/runner/work/grpc-go/grpc-go/security/advancedtls/testdata/crl/provider_crl.cnf": fail to parse CRL: x509: malformed crlCustom error message: cannot construct CRL from file "/home/runner/work/grpc-go/grpc-go/security/advancedtls/testdata/crl/provider_server_cert.key": fail to parse CRL: x509: malformed crlCustom error message: cannot construct CRL from file "/home/runner/work/grpc-go/grpc-go/security/advancedtls/testdata/crl/provider_client_trust_key.pem": fail to parse CRL: x509: malformed crlCustom error message: cannot construct CRL from file "/home/runner/work/grpc-go/grpc-go/security/advancedtls/testdata/crl/provider_server_cert.pem": fail to parse CRL: x509: malformed crlCustom error message: cannot construct CRL from file "/home/runner/work/grpc-go/grpc-go/security/advancedtls/testdata/crl/provider_client_cert.key": fail to parse CRL: x509: malformed crlCustom error message: cannot construct CRL from file "/home/runner/work/grpc-go/grpc-go/security/advancedtls/testdata/crl/provider_client_trust_cert.pem": fail to parse CRL: x509: malformed crlCustom error message: cannot construct CRL from file "/home/runner/work/grpc-go/grpc-go/security/advancedtls/testdata/crl/README.md": fail to parse CRL: x509: malformed crlCustom error message: cannot construct CRL from file "/home/runner/work/grpc-go/grpc-go/security/advancedtls/testdata/crl/provider_create.sh": fail to parse CRL: x509: malformed crlCustom error message: cannot construct CRL from file "/home/runner/work/grpc-go/grpc-go/security/advancedtls/testdata/crl/revokedInt.pem": fail to parse CRL: x509: malformed crlCustom error message: cannot construct CRL from file "/home/runner/work/grpc-go/grpc-go/security/advancedtls/testdata/crl/provider_client_cert.pem": fail to parse CRL: x509: malformed crlCustom error message: cannot construct CRL from file "/home/runner/work/grpc-go/grpc-go/security/advancedtls/testdata/crl/provider_server_trust_key.pem": fail to parse CRL: x509: malformed crlCustom error message: cannot construct CRL from file "/home/runner/work/grpc-go/grpc-go/security/advancedtls/testdata/crl/revokedLeaf.pem": fail to parse CRL: x509: malformed crlCustom error message: cannot construct CRL from file "/home/runner/work/grpc-go/grpc-go/security/advancedtls/testdata/crl/provider_extensions.conf": fail to parse CRL: x509: malformed crlCustom error message: cannot construct CRL from file "/home/runner/work/grpc-go/grpc-go/security/advancedtls/testdata/crl/provider_server_trust_cert.pem": fail to parse CRL: x509: malformed crl--- FAIL: Test (9.08s)
    --- FAIL: Test/FileWatcherCRLProviderDirectoryScan (0.01s)
        crl_provider_test.go:213: Using tmpdir: /tmp/filewatcher1134696436
        tlogger.go:116: INFO crl_provider.go:219 [advancedtls] Scan of CRLDirectory /tmp/filewatcher1134696436 completed, 1 files found and processed successfully, in-memory CRL storage flushed and repopulated  (t=+307.805µs)
        tlogger.go:116: INFO crl_provider.go:219 [advancedtls] Scan of CRLDirectory /tmp/filewatcher1134696436 completed, 2 files found and processed successfully, in-memory CRL storage flushed and repopulated  (t=+1.[371](https://github.com/grpc/grpc-go/actions/runs/6788352269/job/18453163059?pr=6720#step:8:372)622ms)
        tlogger.go:116: INFO crl_provider.go:219 [advancedtls] Scan of CRLDirectory /tmp/filewatcher1134696436 completed, 1 files found and processed successfully, in-memory CRL storage flushed and repopulated  (t=+1.570725ms)
        --- FAIL: Test/FileWatcherCRLProviderDirectoryScan/Addition_and_deletion_(2_map_entries) (0.00s)
            crl_provider_test.go:287: Parsed Cert sub = CN=Root CA (2021-02-02T07:31:54-08:00),OU=Production+OU=campus-sln,O=Google LLC,L=Mountain View,ST=California,C=US iss = CN=Root CA (2021-02-02T07:31:54-08:00),OU=Production+OU=campus-sln,O=Google LLC,L=Mountain View,ST=California,C=US
            crl_provider_test.go:287: Parsed Cert sub = CN=node CA (2021-02-02T07:31:54-08:00),OU=Production+OU=campus-sln,O=Google LLC,L=Mountain View,ST=California,C=US iss = CN=Root CA (2021-02-02T07:31:54-08:00),OU=Production+OU=campus-sln,O=Google LLC,L=Mountain View,ST=California,C=US
            crl_provider_test.go:287: Parsed Cert sub =  iss = CN=node CA (2021-02-02T07:31:54-08:00),OU=Production+OU=campus-sln,O=Google LLC,L=Mountain View,ST=California,C=US
            crl_provider_test.go:293: CRL is unexpectedly nil
            crl_provider_test.go:287: Parsed Cert sub = CN=Root CA (2021-02-02T07:32:57-08:00),OU=Production+OU=campus-sln,O=Google LLC,L=Mountain View,ST=California,C=US iss = CN=Root CA (2021-02-02T07:32:57-08:00),OU=Production+OU=campus-sln,O=Google LLC,L=Mountain View,ST=California,C=US
            crl_provider_test.go:287: Parsed Cert sub = CN=node CA (2021-02-02T07:32:57-08:00),OU=Production+OU=campus-sln,O=Google LLC,L=Mountain View,ST=California,C=US iss = CN=Root CA (2021-02-02T07:32:57-08:00),OU=Production+OU=campus-sln,O=Google LLC,L=Mountain View,ST=California,C=US
            crl_provider_test.go:287: Parsed Cert sub =  iss = CN=node CA (2021-02-02T07:32:57-08:00),OU=Production+OU=campus-sln,O=Google LLC,L=Mountain View,ST=California,C=US
            crl_provider_test.go:293: CRL is unexpectedly nil
            crl_provider_test.go:287: Parsed Cert sub = CN=Root CA (2021-02-02T07:30:36-08:00),OU=Production+OU=campus-sln,O=Google LLC,L=Mountain View,ST=California,C=US iss = CN=Root CA (2021-02-02T07:30:36-08:00),OU=Production+OU=campus-sln,O=Google LLC,L=Mountain View,ST=California,C=US
            crl_provider_test.go:287: Parsed Cert sub = CN=node CA (2021-02-02T07:30:36-08:00),OU=Production+OU=campus-sln,O=Google LLC,L=Mountain View,ST=California,C=US iss = CN=Root CA (2021-02-02T07:30:36-08:00),OU=Production+OU=campus-sln,O=Google LLC,L=Mountain View,ST=California,C=US
            crl_provider_test.go:287: Parsed Cert sub =  iss = CN=node CA (2021-02-02T07:30:36-08:00),OU=Production+OU=campus-sln,O=Google LLC,L=Mountain View,ST=California,C=US
            crl_provider_test.go:296: CRL is unexpectedly not nil
        tlogger.go:116: WARNING crl_provider.go:204 [advancedtls] Can't add CRL from file /tmp/filewatcher1134696436/README.md under CRLDirectory /tmp/filewatcher1134696436%!(EXTRA *errors.errorString=cannot construct CRL from file "/tmp/filewatcher1134696436/README.md": fail to parse CRL: x509: malformed crl)  (t=+2.880946ms)
        tlogger.go:116: INFO crl_provider.go:227 [advancedtls] Scan of CRLDirectory /tmp/filewatcher1134696436 completed, 2 files found, 1 files processing failed, 1 entries of in-memory CRL storage added/updated  (t=+2.900447ms)
        --- FAIL: Test/FileWatcherCRLProviderDirectoryScan/Addition_and_a_corrupt_file_(3_map_entries) (0.00s)
            crl_provider_test.go:287: Parsed Cert sub = CN=Root CA (2021-02-02T07:31:54-08:00),OU=Production+OU=campus-sln,O=Google LLC,L=Mountain View,ST=California,C=US iss = CN=Root CA (2021-02-02T07:31:54-08:00),OU=Production+OU=campus-sln,O=Google LLC,L=Mountain View,ST=California,C=US
            crl_provider_test.go:287: Parsed Cert sub = CN=node CA (2021-02-02T07:31:54-08:00),OU=Production+OU=campus-sln,O=Google LLC,L=Mountain View,ST=California,C=US iss = CN=Root CA (2021-02-02T07:31:54-08:00),OU=Production+OU=campus-sln,O=Google LLC,L=Mountain View,ST=California,C=US
            crl_provider_test.go:287: Parsed Cert sub =  iss = CN=node CA (2021-02-02T07:31:54-08:00),OU=Production+OU=campus-sln,O=Google LLC,L=Mountain View,ST=California,C=US
            crl_provider_test.go:293: CRL is unexpectedly nil
            crl_provider_test.go:287: Parsed Cert sub = CN=Root CA (2021-02-02T07:32:57-08:00),OU=Production+OU=campus-sln,O=Google LLC,L=Mountain View,ST=California,C=US iss = CN=Root CA (2021-02-02T07:32:57-08:00),OU=Production+OU=campus-sln,O=Google LLC,L=Mountain View,ST=California,C=US
            crl_provider_test.go:287: Parsed Cert sub = CN=node CA (2021-02-02T07:32:57-08:00),OU=Production+OU=campus-sln,O=Google LLC,L=Mountain View,ST=California,C=US iss = CN=Root CA (2021-02-02T07:32:57-08:00),OU=Production+OU=campus-sln,O=Google LLC,L=Mountain View,ST=California,C=US
            crl_provider_test.go:287: Parsed Cert sub =  iss = CN=node CA (2021-02-02T07:32:57-08:00),OU=Production+OU=campus-sln,O=Google LLC,L=Mountain View,ST=California,C=US
            crl_provider_test.go:293: CRL is unexpectedly nil
            crl_provider_test.go:287: Parsed Cert sub = CN=Root CA (2021-02-02T07:30:36-08:00),OU=Production+OU=campus-sln,O=Google LLC,L=Mountain View,ST=California,C=US iss = CN=Root CA (2021-02-02T07:30:36-08:00),OU=Production+OU=campus-sln,O=Google LLC,L=Mountain View,ST=California,C=US
            crl_provider_test.go:287: Parsed Cert sub = CN=node CA (2021-02-02T07:30:36-08:00),OU=Production+OU=campus-sln,O=Google LLC,L=Mountain View,ST=California,C=US iss = CN=Root CA (2021-02-02T07:30:36-08:00),OU=Production+OU=campus-sln,O=Google LLC,L=Mountain View,ST=California,C=US
            crl_provider_test.go:287: Parsed Cert sub =  iss = CN=node CA (2021-02-02T07:30:36-08:00),OU=Production+OU=campus-sln,O=Google LLC,L=Mountain View,ST=California,C=US
        tlogger.go:116: INFO crl_provider.go:219 [advancedtls] Scan of CRLDirectory /tmp/filewatcher1134696436 completed, 0 files found and processed successfully, in-memory CRL storage flushed and repopulated  (t=+3.615658ms)
        tlogger.go:116: INFO crl_provider.go:157 [advancedtls] Scanning of CRLDirectory /tmp/filewatcher1134696436 stopped  (t=+4.215467ms)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions