Skip to content

fix: disable the Agent-page sync throttle under both test runners - #94

Open
SushantGautam wants to merge 1 commit into
mainfrom
fix/sync-throttle-under-test
Open

SushantGautam wants to merge 1 commit into
mainfrom
fix/sync-throttle-under-test

Conversation

@SushantGautam

Copy link
Copy Markdown
Collaborator

v0.5.54's PyPI publish failed in its pre-publish manage.py test step: test_page_load_reports_lost_resource_without_removing_it saw another test's cached Open WebUI sync, because the throttle from #92 was only disabled in conftest.py (pytest). Settings now set OPENWEBUI_SYNC_TTL_S = 0 whenever the suite runs (_TESTING), unless the env var is set explicitly.

Checks: manage.py test infra --parallel auto --exclude-tag embedded_hatchet with DJANGO_SECRET_KEY=ci-secret-key (the publish command): 1086 tests OK. ruff clean.

The PyPI publish workflow runs manage.py test, which skips conftest.py, so the
per-process throttle handed one test another test's cached sync (ids are
reused across test cases). Settings now turn it off whenever the test suite
runs, unless SIMPLEAUDIT_OPENWEBUI_SYNC_TTL_S is set explicitly.
Copilot AI balanced review requested due to automatic review settings November 11, 2026 19:12

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants