-
Notifications
You must be signed in to change notification settings - Fork 276
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
### What problem does this PR solve? Slow test: Now a pr with "invalid" label will trigger slow test. slow test also triggered in schedule. CI: 1. Add slow test ci trigger. 2. Add testcases that marked as slow in "restart test"/"pysdk test" to slow test. 3. Collect log and FULL catalog of infinity if restart test failed. 4. Fix some test script. Fix: 1. sparse vector mem index dump & insert conflict. [c83703a](c83703a) 2. column entry replay [f2ff2c8](f2ff2c8), [8b34b9e](8b34b9e) 4. chunk index entry replay [1d7f308](1d7f308), [8c4e438](8c4e438), [188fe24](188fe24) 6. handle exception and decrease ref count in persistent manager. [b6a917b](b6a917b) 7. Add dump index wal when merge fulltext index. [8b34b9e](8b34b9e) 8. Init compaction alg after restart. [a59136b](a59136b) ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) - [x] Test cases
- Loading branch information
1 parent
aca0a69
commit e140330
Showing
37 changed files
with
669 additions
and
259 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
psutil~=6.0.0 | ||
psutil~=6.0.0 | ||
timeout-decorator~=0.5.0 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import timeout_decorator | ||
|
||
# Description: use timeout_decorator as backup solution if a test not finish in time | ||
|
||
ONE_TEST_TIMEOUT = 60 * 60 # 1 hour | ||
|
||
|
||
class TimeoutException(Exception): | ||
def __init__(self, name): | ||
super().__init__(name) | ||
print(f"Timeout decorator for {name}") | ||
self.timeout_name = name | ||
|
||
def __str__(self): | ||
return f"Timeout: run {self.timeout_name} exceed {ONE_TEST_TIMEOUT} seconds" | ||
|
||
|
||
# wrap timeout_decorator with time and exception | ||
def my_timeout(timeout_name): | ||
def wrapper(func): | ||
def inner(*args, **kwargs): | ||
try: | ||
return timeout_decorator.timeout(ONE_TEST_TIMEOUT, use_signals=False)( | ||
func | ||
)(*args, **kwargs) | ||
except timeout_decorator.timeout_decorator.TimeoutError: | ||
raise TimeoutException(timeout_name) | ||
|
||
return inner | ||
|
||
return wrapper |
Oops, something went wrong.