Skip to content

Commit 2151633

Browse files
committed
test changes
1 parent 119df18 commit 2151633

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ test_integration:
3838
--maxfail=10 \
3939
--log-level=INFO \
4040
tests/integration \
41-
-k 'loki' \
41+
-k 'test_s3_merged_log_reader' \
4242
-n 12
4343

4444

platform_monitoring/loki_client.py

+7-7
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ async def query_range(self, **params: Any) -> dict[str, Any]:
9393
)
9494

9595
result["data"]["result"] = data_result
96-
log = f"{params=} {result=}"
97-
logger.info(log)
96+
# log = f"{params=} {result=}"
97+
# logger.info(log)
9898
return result
9999

100100
async def query_range_page_iterate(
@@ -113,10 +113,10 @@ async def query_range_page_iterate(
113113
yield response
114114

115115
# remove
116-
logger.info(
117-
"Total entries returned: %s",
118-
response["data"]["stats"]["summary"]["totalEntriesReturned"],
119-
)
116+
# logger.debug(
117+
# "Total entries returned: %s",
118+
# response["data"]["stats"]["summary"]["totalEntriesReturned"],
119+
# )
120120

121121
if response["data"]["stats"]["summary"]["totalEntriesReturned"] < limit:
122122
break
@@ -127,4 +127,4 @@ async def query_range_page_iterate(
127127
end = int(response["data"]["result"][-1][0]) - 1
128128

129129
# remove
130-
logger.info("%s", f"{start=} {end=}")
130+
# logger.debug("%s", f"{start=} {end=}")

tests/integration/test_kube.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -660,7 +660,6 @@ async def _consume_log_reader(
660660
async with log_reader as it:
661661
async for chunk in it:
662662
buffer += chunk
663-
logger.info("Buffer: %s", buffer)
664663
if delay:
665664
await asyncio.sleep(delay)
666665
except asyncio.CancelledError:
@@ -1319,7 +1318,8 @@ async def coro() -> bytes | Exception:
13191318

13201319
# Output for debugging
13211320
for i, (name, payload) in enumerate(zip(names, payloads, strict=False)):
1322-
print(f"{i}. {name}: {payload!r}") # noqa: T201
1321+
print(f"111111111 {i}. {name}: {payload!r}") # noqa: T201
1322+
logger.info("222222222 %s: %r", name, payload)
13231323

13241324
expected_payload = "".join(f"{i}\n" for i in range(1, 6)).encode()
13251325
# All logs are completely either live or archive, no separator.

tests/k8s/cluster.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ function k8s::apply_all_configurations {
5252

5353
function k8s::wait_for_all_pods_running {
5454

55-
kubectl wait --for=condition=ready deployment/loki-read --timeout=300s
55+
kubectl wait --for=condition=ready deployment/loki-read --timeout=200s
5656
return 0
5757

5858
# local timeout=180

0 commit comments

Comments
 (0)