-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create a Go script to run Dgraph tests concurrently (#6895)
The current test.sh script runs all the packages one by one, which takes 30mins for the tests to run. Even then, we have to separate out the systests from the rest. This PR creates an equivalent Go script which can divide up the packages in multiple goroutines. Each goroutine runs a Dgraph cluster which the tests (running on that goroutine) use. To avoid interactions among clusters, the script changes docker-compose to not expose the ports. Instead, the docker generated public ports are used to interact with the cluster. The script makes the cluster prefix available via environment variable, which gets picked up by testutil package to find the right address for the Dgraph instance via Docker. TODO: This PR disables a bunch of tests and packages which are failing. For now, we set concurrency to 1, due to some weird failures with tests when run with multiple clusters. Needs more work to fix up these failures. Co-authored-by: Daniel Mai <[email protected]>
- Loading branch information
1 parent
17a3dbb
commit 79d7f9c
Showing
61 changed files
with
1,848 additions
and
1,104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.