[go: up one dir, main page]

Page MenuHomePhabricator

Bug 2064487 - added 'triggers' field to telemetry table r?npodgurski,#ai-models-reviewers
Needs ReviewPublic

Authored by bjohns on Fri, Oct 16, 3:02 PM.
Referenced Files
F84523033: D334574.1792412590.diff
Sun, Oct 18, 12:23 PM
F84463679: D334574.1792343931.diff
Sat, Oct 17, 5:18 PM
F84462749: D334574.1792343021.diff
Sat, Oct 17, 5:03 PM
F84462746: D334574.1792343019.diff
Sat, Oct 17, 5:03 PM
F84462519: D334574.1792342669.diff
Sat, Oct 17, 4:57 PM
F84462516: D334574.1792342664.diff
Sat, Oct 17, 4:57 PM
F84462511: D334574/new/.1792342659.diff
Sat, Oct 17, 4:57 PM
Unknown Object (File)
Sat, Oct 17, 9:02 AM

Details

Reviewers
npodgurski
cmurray
jlewis
Group Reviewers
ai-security-reviewers
Bugzilla Bug ID
2064487
Merge Conflict Status
Landing merges cleanly into the target branch
Merges cleanly when merged against target branch tip 6210f73af7ef, starting from 751f5671de2d.
Last checked Fri, Oct 16, 9:29 PM
Diff 1410099, based on 751f5671de2d

Diff Detail

Repository
rFIREFOXAUTOLAND firefox-autoland
Branch
HEAD

Event Timeline

bjohns created this revision.
phab-bot changed the visibility from "Custom Policy" to "Public (No Login Required)".Fri, Oct 16, 3:04 PM
phab-bot changed the edit policy from "Custom Policy" to "Restricted Project (Project)".
phab-bot removed a project: secure-revision.
bjohns updated this revision to Diff 1409468.

(Reviewing Diff 1409468)
The schema change, migration and set-union upsert look correct: NULL values are coalesced, and the new column is guarded by both the version check and a column-existence check. The scheduler change follows the same metadata shape as the midChat path. The main weak spot is cleanup timing in the new browser test.


Please use / reactions on inline comments to provide feedback. This will have a significant impact on the quality of future reviews.
browser/components/aiwindow/models/tests/browser/browser_llmaj_telemetry.js
91

markStub.called turns true while #onInterval is still running. After markLLMTelemetryProcessed the loop waits 3–4 s on setTimeout, and only then does its finally run and set LAST_RUN_PREF to Date.now(). Calling destroy() doesn't cancel that pending run. So the run keeps going after the sandbox is restored, and it overwrites the pref this block restores once the task has finished. That leaks state into later tests. Fix by waiting for the run to finish before cleanup. One way: wait for LAST_RUN_PREF to become non-zero. Another: stub the delay so it resolves right away.

bjohns updated this revision to Diff 1409813.
bjohns updated this revision to Diff 1409842.
bjohns retitled this revision from WIP: Bug 2064487 - added 'triggers' field to telemetry table to Bug 2064487 - added 'triggers' field to telemetry table r?npodgurski,#ai-models-reviewers.