pulumi/sdk/go/common
Abhinav Gupta 42c1a2bf01
testing/Environment: Tolerate faillures in deleting the test directory
CI land attempts have started failing occasionally on Windows
with the following error:

```
=== FAIL: . TestLanguageImportSmoke/go (4.00s)
    environment.go:96: Created new test environment:  C:\Users\RUNNER~1\AppData\Local\Temp\test-env711178549
    smoke_test.go:129: Running command pulumi login --cloud-url file://C:/Users/RUNNER~1/AppData/Local/Temp/test-env711178549
    smoke_test.go:130: Running command pulumi new go --yes
    smoke_test.go:131: Running command pulumi import --yes random:index/randomId:RandomId identifier p-9hUg
    history_test.go:28:
        	Error Trace:	C:/a/pulumi/pulumi/sdk/go/common/testing/environment.go:132
        	            				C:/a/pulumi/pulumi/tests/history_test.go:28
        	            				C:/a/pulumi/pulumi/tests/smoke_test.go:132
        	Error:      	Received unexpected error:
        	            	remove C:\Users\RUNNER~1\AppData\Local\Temp\test-env711178549\project: The process cannot access the file because it is being used by another process.
        	Test:       	TestLanguageImportSmoke/go
        	Messages:   	cleaning up test directory "C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\test-env711178549"
```

The code path that is encountering this issue
is hit after the integration test has already passed.
So we're failing tests that are otherwise green
because it's taking a little too long for the system
to mark the resource as free.

This makes make DeleteEnvironment more tolerant of these failures,
logging them without marking the test as failed.
2023-05-11 17:02:51 -07:00
..
apitype Enable display of backend messages during updates 2023-04-21 14:44:40 -07:00
constant Send update metadata about update plans 2022-10-12 22:55:59 +01:00
diag go/common: Make DefaultSink thread-safe 2023-03-24 08:34:35 -07:00
display Moving previewDigest to sdk/go/common/display, and exporting it. (#9886) 2022-06-27 09:08:06 -05:00
encoding all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
env filestate: Support opting into legacy layout 2023-03-31 13:21:37 -07:00
resource Merge #12836 2023-05-07 10:16:20 +00:00
testing testing/Environment: Tolerate faillures in deleting the test directory 2023-05-11 17:02:51 -07:00
tokens Move simplifyTypeName to DisplayName() method on token.Type 2023-04-13 14:44:07 -07:00
tools all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
util sdk/common/retry: Fix extraneous backoff 2023-03-24 16:39:02 -07:00
version move pkg/version -> sdk/go/common/version 2020-03-18 15:25:25 -07:00
workspace add rate limited url to http requests 2023-04-24 16:16:35 +01:00