Skip to content

terraform unit tests depend on calls to terraform registry #2474

Closed as not planned
@spikecurtis

Description

@spikecurtis

e.g.

    provision_test.go:328: ERROR ╷
    provision_test.go:328: ERROR │Error: Failed to query available provider packages
    provision_test.go:328: ERROR │
    provision_test.go:328: ERROR │Could not retrieve the list of available versions for provider
    provision_test.go:328: ERROR │hashicorp/null: could not query provider registry for
    provision_test.go:328: ERROR │registry.terraform.io/hashicorp/null: the request failed after 2 attempts,
    provision_test.go:328: ERROR │please try again later: Get
    provision_test.go:328: ERROR │"https://registry.terraform.io/v1/providers/hashicorp/null/versions":
    provision_test.go:328: ERROR │net/http: request canceled (Client.Timeout exceeded while awaiting headers)
    provision_test.go:328: ERROR ╵
    provision_test.go:328: ERROR 
    provision_test.go:325: 
        	Error Trace:	provision_test.go:325
        	Error:      	Received unexpected error:
        	            	initialize terraform: exit status 1
        	            		storj.io/drpc/drpcwire.UnmarshalError:26
        	            		storj.io/drpc/drpcstream.(*Stream).HandlePacket:1[98](https://github.com/coder/coder/runs/6940482685?check_suite_focus=true#step:10:99)
        	            		storj.io/drpc/drpcmanager.(*Manager).manageReader:211
        	Test:       	TestProvision_ExtraEnv

These timeouts cause our tests to be flaky (not to mention slow).

Metadata

Metadata

Assignees

No one assigned

    Labels

    apiArea: HTTP API

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions