Implement project stage four - #1343
Conversation
Co-authored-by: amirbiron <amirbiron@gmail.com>
|
Cursor Agent can help with this pull request. Just |
🧯 Dangerous deletes guard reportPolicy: see .cursorrules — dangerous deletions are blocked unless wrapped safely. Summary:
Flagged findings (file:line:snippet): Excluded matches (by path pattern) |
⏱️ Performance report(No performance test durations collected. Mark tests with |
This change defers the import of metrics functions until they are actually needed, improving startup performance and reducing optional dependencies. Co-authored-by: amirbiron <amirbiron@gmail.com>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Co-authored-by: amirbiron <amirbiron@gmail.com>
📖 Documentation PreviewThe documentation has been built successfully!
To view locally:
|
|
@copilot הטסט תקוע לא מתקדם, ומצאתי: |
|
@amirbiron I've opened a new pull request, #1347, to work on those changes. Once the pull request is ready, I'll request review from you. |
|
הטסט תקוע לא מתקדם, ומצאתי: |
|
נראה שזה נופל על הסטטוס־API של GitHub בגלל שהערך ב־
ברגע שה־context נקי מהאימוג’י, הסטטוסים שוב יעבדו. Learn more about Cursor Agents |
…texts (#1347) * Initial plan * Fix: Remove emojis from GitHub status context fields Co-authored-by: amirbiron <215461772+amirbiron@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: amirbiron <215461772+amirbiron@users.noreply.github.com>
This change removes the '🧪' emoji from CI test names in documentation and workflow files. Co-authored-by: amirbiron <amirbiron@gmail.com>
Co-authored-by: amirbiron <amirbiron@gmail.com>
Fix formatting of push event in CI/CD workflow.
Co-authored-by: amirbiron <amirbiron@gmail.com>
Remove unused imports and dummy classes. Improve test clarity by directly testing session creation. Co-authored-by: amirbiron <amirbiron@gmail.com>
|
תקוע המון זמן ככה:
|
|
סקרתי את סדר הקבצים בתיקיית
async def _async_sleep_with_backoff(attempt: int, policy: RetryPolicy) -> None:
delay = compute_backoff_delay(attempt, policy)
if delay <= 0:
return
try:
await asyncio.sleep(delay)
except asyncio.CancelledError:
raise
except Exception:
return
Learn more about Cursor Agents |
|
Cursor Agent can help with this pull request. Just |
Co-authored-by: amirbiron <amirbiron@gmail.com>
Co-authored-by: amirbiron <amirbiron@gmail.com>
Co-authored-by: amirbiron <amirbiron@gmail.com>
Co-authored-by: amirbiron <amirbiron@gmail.com>
Co-authored-by: amirbiron <amirbiron@gmail.com>
Co-authored-by: amirbiron <amirbiron@gmail.com>
Co-authored-by: amirbiron <amirbiron@gmail.com>
What
resilience.pyעם ניהול Retry/Circuit Breaker ומשתני ENV ניתנים לכיוון.http_sync.requestו-http_async.requestבמדיניות הרזיליינס, כולל עדכוני observability ו-emit אירועים.metrics.py(קשור לשלב 4) עם מטריקות חדשות למדדי resiliency.Why
שלב 4 דרש רזיליינס מלא מול שירותים חיצוניים ומטריקות שמאפשרות ניטור. הבנייה מחדש מאחדת את כל הניהול לנקודה אחת ומקטינה רעשים זמניים, לצד היכולת לזהות מוקדים בעייתיים (CB פתוח, כמות retries וכו’).
Docs
Tests
pytestמותקן בסביבה (ניסיון להריץpython3 -m pytestנכשל).Note
Adds a resilience layer (retry + circuit breaker) to async/sync HTTP, updates integrations/bot/utils to use it with observability, introduces outbound metrics, aligns required check names (no emojis) across CI/docs, and expands tests.
resilience.pywith env‑configurableRetryPolicy/CircuitBreakerand helpers (resolve_labels, metrics hooks).http_async.pyandhttp_sync.pywith resilientrequest(...)(retries, backoff, circuit breaker, observability events/spans) and session instrumentation.utils.FileUtils.download_filetohttp_async.request(...)withservice/endpointlabels.github_menu_handler.apply_rate_limit_delay.metrics.pywith outbound request duration, retry counters, and circuit state/success‑rate gauges..github/workflows/ci.yml/deploy.ymland PR template/docs.Unit Tests (3.11/3.12); add env to minimize backoff during tests.Written by Cursor Bugbot for commit 12b2cb2. This will update automatically on new commits. Configure here.