mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-11-10 06:07:16 +01:00
itest: shuffle test cases to even out blocks mined in tranches
This commit adds a new flag to shuffle all the test cases before running them so tests which require lots of blocks to be mined are less likely to be run in the same tranch. The other benefit is this approach provides a more efficient way to figure which tests are broken since all the differnet backends are running different tranches in their builds, we can identify more failed tests in one push.
This commit is contained in:
4
Makefile
4
Makefile
@@ -220,7 +220,7 @@ clean-itest-logs:
|
||||
itest-only: clean-itest-logs db-instance
|
||||
@$(call print, "Running integration tests with ${backend} backend.")
|
||||
date
|
||||
EXEC_SUFFIX=$(EXEC_SUFFIX) scripts/itest_part.sh 0 1 $(TEST_FLAGS) $(ITEST_FLAGS) -test.v
|
||||
EXEC_SUFFIX=$(EXEC_SUFFIX) scripts/itest_part.sh 0 1 $(SHUFFLE_SEED) $(TEST_FLAGS) $(ITEST_FLAGS) -test.v
|
||||
$(COLLECT_ITEST_COVERAGE)
|
||||
|
||||
#? itest: Build and run integration tests
|
||||
@@ -233,7 +233,7 @@ itest-race: build-itest-race itest-only
|
||||
itest-parallel: clean-itest-logs build-itest db-instance
|
||||
@$(call print, "Running tests")
|
||||
date
|
||||
EXEC_SUFFIX=$(EXEC_SUFFIX) scripts/itest_parallel.sh $(ITEST_PARALLELISM) $(NUM_ITEST_TRANCHES) $(TEST_FLAGS) $(ITEST_FLAGS)
|
||||
EXEC_SUFFIX=$(EXEC_SUFFIX) scripts/itest_parallel.sh $(ITEST_PARALLELISM) $(NUM_ITEST_TRANCHES) $(SHUFFLE_SEED) $(TEST_FLAGS) $(ITEST_FLAGS)
|
||||
$(COLLECT_ITEST_COVERAGE)
|
||||
|
||||
#? itest-clean: Kill all running itest processes
|
||||
|
||||
Reference in New Issue
Block a user