Repository navigation
Conversation
|
Note for maintainers / bounty payout: Please ensure all bounty rewards for this PR are routed to my verified EVM / Base wallet: 0xb5aFc89b57Fa8270bB7261348179D28099BEa2a0. Thank you! |
|
Thanks @Ivansky1 — well-scoped fix for #14126, and the crash vectors check out against What I verified:
Blocking (one line): Non-blocking nits:
Once the by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with |
|
Payout information update:
Thank you! |
Git-on-my-level
left a comment
There was a problem hiding this comment.
Thanks for this — the hardening is real, and the null-owner / null-tags crash paths from #14126 are exactly what got fixed. I verified the production logic, and separately hit two mechanical blockers that will keep CI red. Both look quick to fix.
Verified good:
- plugins/omi-stack-overflow-app/main.py —
_format_answernow guardsownerwith anisinstance(owner_data, dict)check, so the reportedAttributeErroron"owner": nullis gone;_format_questionandget_questionhandletagsbeing null, a plain string, or a list with non-string elements;_request_jsonrejects non-dict JSON before touchingerror_id/backoff; and theRequestValidationErrorhandler returns HTTP 200 with theChatToolResponseenvelope, matching the chat-tool contract the issue describes. - plugins/omi-stack-overflow-app/models.py — the
mode="before"validators behave correctly under the plugin's pinned pydantic 2.10.4; null optionals sent by the agent coerce to defaults as intended. - .github/checks-manifest.yaml —
stack-overflow-app-testsis correctly placed underchecks:(notexempt:), withlocal+cilanes and triggers matching the sibling plugin entries.
Blocker 1 — PR Metadata Preflight is failing: the repo's failure-class protocol requires a declaration in the PR body for fix: commits. Please add exactly one line to the description — Failure-Class: none, or Failure-Class: FC-<slug> if an existing class fits, or Failure-Class: new. Those are the accepted forms listed in the check output.
Blocker 2 — the new test suite fails in the environment the manifest runs it in. Manifest commands execute in a stdlib-only CI lane (the Hygiene job installs only pyyaml, and the workflow comment is explicit that manifest checks consume only Python stdlib + Git). In that environment the pydantic stubs in test_main.py activate, and 3 of the 26 tests fail because the stub BaseModel doesn't run your validators:
- test_search_questions_request_validation:
req_nulls.siteisNone, not"stackoverflow" - test_get_question_request_validation:
question_id="9988"stays a string instead of coercing to 9988 - test_get_top_answers_request_validation:
limit=NonestaysNoneinstead of coercing to 3
With the plugin's real pinned requirements installed, the same suite passes 26/26 — the production code is fine; the mismatch is only that these three assertions assume real pydantic while the file also ships a no-deps mode. Simplest fix: gate them with @unittest.skipUnless(HAVE_REAL_PYDANTIC, ...) (set the flag when the real import succeeds), or make the stub BaseModel/Field faithful enough to run the validators. For reference, plugins/omi-open-meteo-app/test_main.py passes in the same stdlib-only mode. Since this command is now a standing ci-lane gate (it also runs on main pushes after merge), it needs to be green in that environment.
Nits, non-blocking:
- main.py:
MAX_LIMIT,_coerce_bool,_safe_limit,_safe_site,_safe_tagsare imported but unused after the move into models.py. - The
if isinstance(payload, dict)re-wraps in each endpoint are only reachable in direct unit calls — harmless, just noting they're dead in the served path.
kodjima33 has already approved this head; I'm requesting changes only for the two mechanical items above — no product-direction concerns with the change itself. Once the Failure-Class line is added and the three model tests are stdlib-safe, this should be good to go.
by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with need human response.
…emove unused imports
|
Thanks @Git-on-my-level and @kodjima33! Both blockers and nits have been addressed:
Ready for final merge sign-off! Payout details:
|
|
@Git-on-my-level need human response - Hey David! Both blockers (Failure-Class line and stdlib CI test compatibility) plus all review nits are resolved in commit da0e50d (26/26 tests passing). Ready for final merge sign-off! |
Both blockers from the automated change request are resolved on da0e50d: the PR body declares 'Failure-Class: none', and the three pydantic-dependent model tests are gated behind HAVE_REAL_PYDANTIC so the suite passes in both the deps-installed and stdlib-only manifest lanes (verified by direct execution: 26/26 pass with deps, 23 pass + 3 skip stdlib-only).
|
Follow-up on the two blockers from the earlier automated review — both are resolved on da0e50d. Thanks for the quick turnaround.
I've dismissed the outdated change request accordingly. The only remaining item is CI catching up on the new head — the metadata preflight failure on the previous head predates the body fix. One note for maintainers: this PR and #14133 both fix #14126; choosing which one lands is a maintainer call — no technical blockers remain on this head. by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with |
|
Verified on Leaving this open as the unique remaining-hole vehicle ( Not approving: hosted CI has not gone green on this SHA. kodjima APPROVE is not a merge. I am not merging. |
|
Keeping this open. Not approving — Astar, on behalf of @aryanorastar |
|
Closing because this change is already on main. |
|
Hey @Ivansky1 👋 Thank you so much for taking the time to contribute to Omi! We truly appreciate you putting in the effort to submit this pull request. After careful review, we've decided not to merge this particular PR. Please don't take this personally — we genuinely try to merge as many contributions as possible, but sometimes we have to make tough calls based on:
Before your next PR, please skim:
If this was declined for direction or taste, maintainers should cite an invariant ID or open a proposed one — ask if that citation is missing. Your contribution is still valuable to us, and we'd love to see you contribute again in the future! If you'd like feedback on how to improve this PR or want to discuss alternative approaches, please don't hesitate to reach out. Thank you for being part of the Omi community! |
Summary of Changes
Fixes #14126
Failure-Class: none
This PR resolves reliability vulnerabilities, input validation deficiencies, and unhandled exception vectors in plugins/omi-stack-overflow-app:
Defensive Parsing & Uncaught Crash Fixes:
Typed Request Validation Models & Chat-Tool Error Envelope:
Hermetic Unit Test Suite & Manifest Registration:
Bounty & Payout Information