Skip to content

Commit

Permalink
Clean up TestMain from integration tests to fix caching (#2090)
Browse files Browse the repository at this point in the history
## Changes
- Remove TestMain from integration tests and related checks.
- This fixes "go test" caching for integration tests.

The test_main.go files were added in
#2009 to make sure integration
tests are not run as part of go test ./.... We recommend running make
test to run tests, which includes the packages to test (and excludes
integration).

## Tests
To test that caching works I ran a test twice:

```
+ CLOUD_ENV=aws
+ go test --timeout 3h -v -run TestDefaultPython/3.9 ./integration/bundle/
…
PASS
ok      github.com/databricks/cli/integration/bundle    (cached)
```
  • Loading branch information
denik authored Jan 8, 2025
1 parent 02c7df3 commit 8fd793b
Show file tree
Hide file tree
Showing 22 changed files with 0 additions and 398 deletions.
13 changes: 0 additions & 13 deletions integration/assumptions/main_test.go

This file was deleted.

13 changes: 0 additions & 13 deletions integration/bundle/main_test.go

This file was deleted.

13 changes: 0 additions & 13 deletions integration/cmd/alerts/main_test.go

This file was deleted.

13 changes: 0 additions & 13 deletions integration/cmd/api/main_test.go

This file was deleted.

13 changes: 0 additions & 13 deletions integration/cmd/auth/main_test.go

This file was deleted.

13 changes: 0 additions & 13 deletions integration/cmd/clusters/main_test.go

This file was deleted.

13 changes: 0 additions & 13 deletions integration/cmd/fs/main_test.go

This file was deleted.

13 changes: 0 additions & 13 deletions integration/cmd/jobs/main_test.go

This file was deleted.

13 changes: 0 additions & 13 deletions integration/cmd/main_test.go

This file was deleted.

13 changes: 0 additions & 13 deletions integration/cmd/repos/main_test.go

This file was deleted.

13 changes: 0 additions & 13 deletions integration/cmd/secrets/main_test.go

This file was deleted.

13 changes: 0 additions & 13 deletions integration/cmd/storage_credentials/main_test.go

This file was deleted.

13 changes: 0 additions & 13 deletions integration/cmd/sync/main_test.go

This file was deleted.

13 changes: 0 additions & 13 deletions integration/cmd/version/main_test.go

This file was deleted.

13 changes: 0 additions & 13 deletions integration/cmd/workspace/main_test.go

This file was deleted.

116 changes: 0 additions & 116 deletions integration/enforce_convention_test.go

This file was deleted.

22 changes: 0 additions & 22 deletions integration/internal/main.go

This file was deleted.

13 changes: 0 additions & 13 deletions integration/libs/filer/main_test.go

This file was deleted.

13 changes: 0 additions & 13 deletions integration/libs/git/main_test.go

This file was deleted.

13 changes: 0 additions & 13 deletions integration/libs/locker/main_test.go

This file was deleted.

Loading

0 comments on commit 8fd793b

Please sign in to comment.