Skip to content

ci: pin JDK 21 for Android compile smoke and JVM unit tests - #24785

Closed
kodjima33 wants to merge 1 commit into
mainfrom
ci/android-pin-java21
Closed

kodjima33 wants to merge 1 commit into
mainfrom
ci/android-pin-java21

Conversation

@kodjima33

@kodjima33 kodjima33 commented Nov 6, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

ubuntu-latest is moving to the ubuntu-26.04 image. Its default JDK is 25, and Gradle fails with Unsupported class file major version 69. Android Compile Smoke and Android JVM Unit Tests relied on the runner default; the emulator job already pins temurin 21. This pins 21 in both.

Evidence: #24737 failed both jobs twice on Image: ubuntu-26.04 (run 42207263552, attempts 1 and 2) while Android Emulator Acceptance passed on the same run. Main's nightly passed at 04:44 UTC on Image: ubuntu-24.04.

Verification

  • actionlint clean, test_mobile_ci_infra_guards.py passes.
  • This PR's own Android jobs run on the workflow change.

UI-Evidence: none

Product invariants affected

none

🤖 Generated with Claude Code

View guided diff Turn on auto-fix

ubuntu-latest is rolling to ubuntu-26.04, whose default JDK 25 makes Gradle
fail with "Unsupported class file major version 69" (#24737 run
42207263552, twice). The emulator job already pins temurin 21; the compile
smoke and JVM unit test jobs relied on the runner default.

@cubic-dev-ai cubic-dev-ai Bot 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.

No issues found across 1 file

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

View guided diff | Turn on auto-fix | Re-trigger cubic

@kodjima33

Copy link
Copy Markdown
Collaborator Author

Superseded by 5503c2d on main (same Java 21 pin).

@kodjima33 kodjima33 closed this Nov 6, 2026
@kodjima33
kodjima33 deleted the ci/android-pin-java21 branch November 6, 2026 12:31
@github-actions

github-actions Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

Hey @kodjima33 👋

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:

  • Project standards — Ensuring consistency across the codebase
  • User needs — Making sure changes align with what our users need
  • Code best practices — Maintaining code quality and maintainability
  • Project direction — Keeping aligned with our product principles and locked invariants

Before your next PR, please skim:

  • PRODUCT.md — product north star
  • Product invariants — locked rules (shared chat, memory tiers, agent control plane, integrations, brand)

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!

aryanorastar added a commit that referenced this pull request Nov 6, 2026
## What changed and why

Mobile could restore a confirmed deletion from cached conversation
history after reopening. It also restored failed deletes without telling
the user why the conversation returned. Clear only the confirmed row
from the current and legacy caches, and show a failure when the delete
is refused. Queue the failure message behind any active Undo prompt.

Confirmed deletions also remove the row and its processing cards from
other open lists and fence stale writes from separate providers. Persist
the confirmed ID for its account before rewriting either cache. A
restart during eviction or after a failed write leaves the marker in
place. Successful eviction clears the marker after both snapshots have
been saved.

The Java 21 pin from #24785 cleared both Android failures in the
combined run. Main then landed the equivalent pin in 5503c2d. This
branch takes the workflow from main, with no workflow changes in the
final diff. The workflow passed actionlint and the four local mobile CI
infrastructure tests. The final revision passed 194 focused Flutter
tests, including the latest Home row and linked-task filters and a
regression for late live updates during Undo and an in-flight delete. A
refused request still reports failure after navigation. Late merge
completion retires the sources without publishing a deleted target. A
stale full page excludes confirmed deletions from its storage cursor,
and an in-flight next-page request retries at the corrected offset. A
simulated interruption before the cache rewrite completes verifies that
the durable marker hides only the deleted row after restart. A completed
request from an earlier sign-in session cannot alter the replacement
session cache, even when the UID matches.

Refs #24719. This covers the reproduced mobile conversation paths. The
reported account traces and the separate desktop, memory, task and
recording-storage paths still need investigation.

## Product invariants affected

none

## How it was verified

- The two new provider and widget regressions failed on main at
`579400fdf6`: two confirmed rows returned from cache, and a refused
delete restored its row without an error.
- 101 focused Flutter tests passed, including concurrent deletes,
offline cache restoration, legacy snapshots, Undo, and account-switch
isolation. Flutter analysis and local preflight passed.
- An iPhone 16 Pro simulator on iOS 26.5 exercised the shared delete UI
and real mobile HTTP client against a local fixture. A 409 restored the
selected row and showed the error. A manual retry received 204.
Reopening the provider with the fixture stopped kept the unrelated
conversation and omitted the deleted one.

- Two additional cache regressions cover false-returning and throwing
storage writes. Both cache formats stay filtered on restart, unrelated
rows remain, and the fallback does not apply to a different account. A
second-provider regression verifies that an older Home response cannot
restore a row deleted by the day view. An additional processing
regression covers real and optimistic cards, unrelated work and late
updates. Two route-lifetime cases verify that a confirmed response still
evicts after navigation and cannot affect a replacement session. The
expanded focused run passed all 123 tests.
- On the updated iPhone 16 Pro simulator build, an older response from a
second provider and a forced preference write failure both followed the
successful retry. Both live lists excluded the deleted row and a fresh
offline reopen kept only the unrelated row. Both simulator cases passed
again on the updated revision, including removal of matching processing
cards, late processing events, and a delayed confirmation after the
owning route was disposed. The final simulator run also injected a stale
live update during Undo and confirmed the selected row stayed hidden
until the server response. The latest simulator run passed three
scenarios, including both confirmation and refusal after leaving the
route.

## Tests

`conversation_pending_delete_test.dart` exercises two confirmed deletes
and a fresh provider reopening from disk.
`conversation_hub_actions_test.dart` verifies the error after the
initiating control has unmounted.
`conversation_cache_background_decode_test.dart` verifies both cache
formats are cleaned off the UI isolate.

## UI evidence

iPhone 16 Pro simulator with two synthetic rows. The shared delete flow
restores the selected row and shows its error after a 409 refusal.

![Refused mobile conversation
delete](https://raw.githubusercontent.com/BasedHardware/omi/c048f3938eaefcf08e068a1c5b0f76bcfe42a11a/.agent-artifacts/ui-evidence/24719-conversation-delete/001-mobile-ios-delete-refusal.png)

## Failure class (fixes)

Failure-Class: none

Line-Count-Exception: app/lib/backend/preferences.dart | 1661 -> 1757 |
Eviction shares the existing preference cache generation and account
guards so older or legacy cache writes cannot restore the deleted row.
Line-Count-Exception: app/lib/providers/conversation_provider.dart |
2279 -> 2349 | The shared delete lifecycle owns Undo, failure feedback
and serialization with existing cache and merge writes.
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.

1 participant