[Monitor Agent][Models] Breaking out errors into more specific error codes for UI to consume
Categories
(Core :: Machine Learning: General, task)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox156 | --- | fixed |
People
(Reporter: tetchart, Assigned: again)
References
(Blocks 1 open bug)
Details
(Whiteboard: [aiact])
Attachments
(1 file)
There are only 2 real errors in the v0 code
- Timeout Error
- Generic Error (everything else)
Types of errors that might happen (vast majority will fall under the generic error)
- Timeout error: monitor is running for too long
- Canceled: User cancels the run / deletes the monitor mid-run
- Interrupted Run: the browser is killed halfway through a run
- Page content error: Page extractor breaks
- Prompt loading error: RS not connecting or some other prompt loading issue
- Model inference failure: all the various server codes we may get from the LLM serving infra
- Budget exceeded
- Infra not available
- Rate limit exceeded
- Etc
- Broken code: bugs get shipped and it breaks the runtime. Automated tests should hopefully stop this, but it could happen
Updated•27 days ago
|
Failed runs currently store only the raw error message, so the UI can't
tell a page that was never fetched apart from a genuine no-match. Failures
are now tagged with a code at the point where they happen (timeout,
interrupted, content_extraction_error, prompt_load_error, model/auth/rate
limit/network from the inference call) and the code is stored on the
history entry as errorCode, validated by the store, and reused as the
telemetry error_code instead of re-deriving it from the message.
getPageContent gains a structured variant that reports per-URL success so
the monitor can fail a run with content_extraction_error when none of the
watched pages could be read, instead of asking the model about error text.
Partial failures still run the check with the pages that loaded. Stale
running entries reconciled at load time get the interrupted code.
Updated•20 days ago
|
Comment 4•12 days ago
|
||
Backed out for causing bc and TV failures at browser_monitor_errors.js
Backout Link
Push with failures
bc backfills
Failure Log
Failure line TEST-UNEXPECTED-FAIL | browser/components/aiwindow/models/tests/browser/browser_monitor_errors.js | test_timed_out_run_records_timeout_code - Uncaught exception in test - [MockEngineManager] Failed to find a request for the engine with purpose "monitor" - timed out after 50 tries.
Updated•4 days ago
|
Comment 7•2 days ago
|
||
Hi @Tyler, I tried a few scenarios for those Error messages but no matter what we do our Tasks will show the Check Failed. Check Again Later, should we see a different message on the Task?
How do we trigger all those error messages ? are those only visible in our debug devtools ? is there any way for QA to verify this issue ?
| Reporter | ||
Comment 8•2 days ago
|
||
This is models side implementation, the UI side is is this bug: https://bugzilla.mozilla.org/show_bug.cgi?id=2057007
Adding @Alex to the thread for if there is a way to verify the issue
Hi @Rares that's working as intended right now. No visible QA change here really. UI/frontend is a separate implementation and bug, this one lands first and wouldn't be viewable from frontend side for QAing. You would want to check that once Bug 2057007 lands.
Description
•