chore: Increase timeout for codspeed workflow and fix typo in configuration (#7598)
* fix: correct typo in pyproject.toml timeout configuration Updated the timeout_method key in the pytest.ini_options section from 'tiemout_method' to 'timeout_method' for proper functionality. * chore: increase timeout for codspeed workflow to 600 seconds Updated the codspeed workflow configuration to extend the timeout limit, ensuring more robust execution during CI processes. * fix: Update assertion in TestGraphRAGComponent to use set comparison for improved clarity and performance * fix: Change pytest timeout method from thread to signal for improved reliability
This commit is contained in:
parent
bec701789c
commit
3407fecc79
3 changed files with 5 additions and 4 deletions
1
.github/workflows/codspeed.yml
vendored
1
.github/workflows/codspeed.yml
vendored
|
|
@ -43,5 +43,6 @@ jobs:
|
||||||
--codspeed \
|
--codspeed \
|
||||||
-m "not api_key_required" \
|
-m "not api_key_required" \
|
||||||
-n auto
|
-n auto
|
||||||
|
--timeout 600
|
||||||
- name: Minimize uv cache
|
- name: Minimize uv cache
|
||||||
run: uv cache prune --ci
|
run: uv cache prune --ci
|
||||||
|
|
|
||||||
|
|
@ -233,7 +233,7 @@ ignore-regex = '.*(Stati Uniti|Tense=Pres).*'
|
||||||
|
|
||||||
[tool.pytest.ini_options]
|
[tool.pytest.ini_options]
|
||||||
timeout = 120
|
timeout = 120
|
||||||
tiemout_method = "thread"
|
timeout_method = "signal"
|
||||||
minversion = "6.0"
|
minversion = "6.0"
|
||||||
testpaths = ["tests", "integration"]
|
testpaths = ["tests", "integration"]
|
||||||
console_output_style = "progress"
|
console_output_style = "progress"
|
||||||
|
|
|
||||||
|
|
@ -159,6 +159,6 @@ class TestGraphRAGComponent(ComponentTestBaseWithoutClient):
|
||||||
|
|
||||||
# Ensures all the k-start_k documents returned via traversal have the same metadata as the
|
# Ensures all the k-start_k documents returned via traversal have the same metadata as the
|
||||||
# ones returned via the similarity search
|
# ones returned via the similarity search
|
||||||
assert list({doc.data["type"] for doc in results if doc.data["_depth"] == 0}) == list(
|
assert {doc.data["type"] for doc in results if doc.data["_depth"] == 0} == {
|
||||||
{doc.data["type"] for doc in results if doc.data["_depth"] >= 1}
|
doc.data["type"] for doc in results if doc.data["_depth"] >= 1
|
||||||
)
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue