opentofu: Darwin e2e test failure in CI

The “Run e2e test for darwin_amd64” job seems to be failing on the same spot fairly frequently in recent runs after merges. Seems to be failing on this scenario.

Running this locally, it does seem like this test takes a while to run, so maybe the error is related to resource constraints? Searching for this error message implies it may be related to the time it takes to instantiate the provider, vs. just a spurious network connection as you might think from reading the error message quickly.

tofu test  19.12s user 4.15s system 123% cpu 18.898 total

Side note: the example code in the test directory (and really, a lot of tf / hcl code in the codebase) is not formatted with tf fmt

OpenTofu Version

latest

OpenTofu Configuration Files

https://github.com/opentofu/opentofu/tree/main/internal/command/e2etest/testdata/overrides-in-tests

Debug Output

See GHA runs

Expected Behavior

The test should pass predictably

Actual Behavior

=== RUN   TestMocksAndOverrides
    test_test.go:74: unexpected error on 'test': exit status 1
    test_test.go:77: unexpected stderr output on 'test':
        ╷
        │ Error: failed to read schema for aws_s3_bucket.test in registry.opentofu.org/hashicorp/aws: failed to instantiate provider "registry.opentofu.org/hashicorp/aws" to obtain schema: timeout while waiting for plugin to start
        │ 
        │ 
        ╵

Steps to Reproduce

  1. merge code

Additional Context

No response

References

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 23 (20 by maintainers)

Most upvoted comments

I can check with @Yantrio next week what our budget is for the larger runners, which would probably be the easiest solution here.

Normalized deviance of test failures is not a good path to be on.