Repository navigation
fix(plugins): preserve Google Calendar timestamp offsets - #13284
kaijakagi-sys wants to merge 5 commits into
Conversation
Failure-Class: none Fixes BasedHardware#13149. Preserve fractional offset instants and normalize lowercased UTC z. Offline production handler regression: 9 failures before, 25 subcases pass after. Local preflight: 14 checks pass; shallow-history checks limited.
There was a problem hiding this comment.
All reported issues were addressed across 4 files
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
|
Verified this fix end to end - the bug report in #13149 is precise and the repair is correct. The defect: What I verified:
Per-file notes:
One non-blocking nit (same area the code-review bot flagged): after this change a payload can send Thanks @kaijakagi-sys for the well-scoped report and the hermetic tests. Leaving the merge decision with the human maintainers, since #13149 still has two open questions that need a maintainer ruling: whether this standalone plugin remains a supported surface, and the bounty-confirmation request. by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with |
kodjima33
left a comment
There was a problem hiding this comment.
backend/community fix: confirmed on main dt_str is lowercased before the ISO fallback, so .replace('Z',...) never matched and tzinfo was stripped after parsing an offset, discarding the real instant for fractional-second offset timestamps. Fix lowercases the replace target and keeps tzinfo. Issue #13149 real, scoped diff, tests added.
Preserve Calendar and upstream USGS checks; plugin code unchanged. Calendar: 5 tests / 25 cases pass. USGS: 5 tests pass. Exact-base local preflight: 14 checks pass, with shallow-history limitation. No live provider, OAuth or deployment verification.
|
Follow-up after the merge of current main (a0ce036): re-verified on the new head and everything still holds.
Since the reviewed logic is unchanged, the earlier approval on the pre-merge head substantively carries to this merge commit; a fresh maintainer approval on a0ce036 would still be the clean bookkeeping. Still leaving the merge decision with the human maintainers: #13149 remains open with no maintainer response - it needs a ruling on whether this standalone plugin remains a supported surface, and on the bounty-confirmation request. Thanks again @kaijakagi-sys for keeping the branch current. by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with |
|
Follow-up on the rebase-narrowed head 1815960, now that #13528 landed the tzinfo-preserving normalization on main. What I verified on this head:
On the three red checks, none belong to this diff:
Remaining for a human maintainer: the existing approval is on the pre-rebase head (8b57707), so the narrowed head needs a fresh sign-off and merge call - noting #13149 is now closed via #13528, leaving this PR's value as the one-line fallback residual plus the regression suite. Thanks @kaijakagi-sys for narrowing the diff against current main. by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with |
Preserve reviewed plugin code unchanged. Component regression tests and committed-tree local preflight pass with the current PR body. Hosted mobile and Swift checks remain authoritative.
|
Update for head The static/test job reports 826 executed Swift suites, with failing batches split into smaller runs. The explicit final suite-step failure is its wall-time budget: 3163s versus 1800s. Launcher tests succeeded in 144s against their 360s budget, and the separate release compile succeeded. The independent and aggregate gates remain failed. Thirty-two slow suites were deferred by the PR lane; macOS manifest checks and the separate release-mode UserNotifications regression were skipped. The remaining production diff is only the lowercase- |
kodjima33
left a comment
There was a problem hiding this comment.
Re-verified after new commits: Google Calendar lowercase 'z' fractional-UTC parsing fix is real, scoped, tested, not yet on main. CI green. DIRTY/conflicting mergeability — leaving at approve, not merging.
|
The checks-manifest conflict noted in your review is resolved in GitHub now reports this head mergeable. Eight of nine hosted workflows have passed; Desktop Swift CI is still queued, so the new head is not fully CI-green yet. The conflict blocker is cleared; once that remaining check finishes, this is ready for your merge decision. |
|
The remaining Desktop Swift CI run has now completed successfully on current head This head preserves the UTC normalization merged in #13528 and retains only the lowercase |
|
Follow-up on merge head 4dbe808 (checks-manifest conflict resolved against 10748b0):
The conflict blocker noted earlier is resolved and nothing remains from the automated side. Since the approval predates this merge head, the final merge call stays with a human maintainer — the only delta to eyeball beyond the already-approved plugin code is the manifest resolution. by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with |
kodjima33
left a comment
There was a problem hiding this comment.
Confirmed real bug: parse_datetime() lowercases dt_str early, so the ISO fallback's .replace("Z", ...) never matches; fractional-second UTC timestamps fail to parse. Fix (.replace("z",...)) is correct and covered by new tests. Backend/community area, confidence 5/5, not yet fixed on main.
aryanorastar
left a comment
There was a problem hiding this comment.
Verified on 4dbe80855929.
Head is CONFLICTING/DIRTY, so this cannot merge even with kodjima APPROVE. Rebase onto current main and keep the diff on .github/checks-manifest.yaml, plugins/omi-google-calendar-app/README.md, plugins/omi-google-calendar-app/main.py, plugins/omi-google-calendar-app/test_main.py.
kodjima size-gate APPROVE is not a maintainer merge. I am not merging until this is MERGEABLE and green.
|
— Astar, on behalf of @aryanorastar |
|
Keeping this open. Not approving — Astar, on behalf of @aryanorastar |
|
Closing. This is already on main via #13528. Not merged. |
|
Hey @kaijakagi-sys 👋 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
Fixes #13149.
Preserve the UTC-normalization implementation merged in #13528 and close the remaining fractional-second UTC
Zparsing gap. The parser lowercases input first, so its fallback must replace lowercasez. This is the original lowercase-normalization correction from this PR, now narrowed to the one-line residual against current main. No upstream offset normalization is reverted.Verification
9180aff1: 3 failing fractional-UTC subcases. With the one-line residual fix: all 5 methods / 25 subcases pass.make preflightwith the draft PR body and explicit local PR-body checks: all 14 selected checks pass.Product invariants affected
none
Failure-Class: none
Reward status
The issue's suggested bounty remains unapproved. This is an existing contribution revision, not a claim of award or payment.
The regression remains plugin-local because the datetime parser and event payload contract are local to this integration; it catches the concrete #13149 failure without introducing a shared runtime guard.