Conversation
|
@claude review |
|
Claude finished @efiop's task in 1m 30s —— View job Code Review
This is a solid improvement for fixing the flaky tests. The old approach was inherently racy: it waited fixed sleep times (2s or 60s), then used file system writes ( What changed
Issues / nits1.
log_since = (
datetime.now(timezone.utc).replace(tzinfo=None) - timedelta(seconds=5)
).isoformat()The 5-second lookback is computed after the stop/kill command is issued. This should be fine since teardown takes ≥1s ( log_since = (datetime.now(timezone.utc).replace(tzinfo=None)).isoformat()
# ... stop_runner / kill_runner ...
marker_prefix = ...This would fully eliminate the timing concern. Fix this → 2. Stale endpoint/field naming
@fal.endpoint("/set-uuid")
async def set_uuid(self, input: SetUUIDInput) -> str:
self.token = input.uuidThe endpoint ( 3. Redundant
with httpx.Client(
base_url=rest_client.base_url,
...
) as client:
response = client.get(rest_client.base_url + f"/logs/?since={log_since}")Since the SummaryThe core approach is correct and a clear improvement over the fixed-sleep + file-IPC strategy. The only change worth considering before merging is moving |
84d8707 to
2330578
Compare
Co-authored-by: Ruslan Kuprieiev <kupruser@gmail.com>
Co-authored-by: Ruslan Kuprieiev <kupruser@gmail.com>
No description provided.