chore: regenerate stale generated artifacts from the memories baseline toggle#10482
chore: regenerate stale generated artifacts from the memories baseline toggle#10482aryanorastar wants to merge 1 commit into
Conversation
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
The OpenAPI Contract workflow (the one this PR exists to satisfy) passes — every check in it regenerates from the same generators used here ( The two red checks are not from this diff:
Stacked on #10481 (exempts |
Git-on-my-level
left a comment
There was a problem hiding this comment.
Thanks for chasing the generated-artifact drift here. The OpenAPI/client regeneration itself looks directionally right from the diff: the is_baseline field and PATCH /v3/memories/{memory_id}/baseline route are being threaded through the app-client docs and generated Dart/Swift/TS clients consistently.
I’m going to request changes for the current head because there are still merge-blocking contract failures:
Generated Filesis still red. The CI diff showsapp/lib/l10n/app_localizations_*.dartare stale for the baseline-memory strings (pinAsBaseline,unpinAsBaseline,baselineMemory,alwaysInContext). Since this PR is specifically regenerating stale artifacts from the baseline toggle, those generated l10n files should either be included here or the PR should wait on a separate main-fix PR and then rebase onto it.PR Metadata Preflightis red from the stacked #10481 commit: thefix(ci): ...commit is missing the requiredFailure-Class:declaration, and the failure-class registry edit is rejected as an instance-fix mutation. This probably goes away after #10481 lands and this branch rebases to only the OpenAPI/client regeneration; otherwise the stacked commit needs to satisfy that protocol.- This is stacked on a workflow-sensitive PR and checks are not green, so it needs maintainer review after the stack/check status is cleaned up. I did not see evidence of a supply-chain/security attempt in the diff.
Once the generated-file failure and stacked preflight issue are resolved, this looks like a useful cleanup to re-review.
by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with need human response.
kodjima33
left a comment
There was a problem hiding this comment.
chore regenerate generated artifacts — approve only (workflow-review, CHANGES_REQUESTED)
|
On the What I found (precise, so whoever has CI's Flutter can finish it in one command):
So the clean fix is one command in CI's toolchain: Happy to have a maintainer push that onto this branch, or split l10n to its own PR and rebase this onto it. The OpenAPI specs + Dart/Swift/TS client regen in this PR are verified and unaffected; the |
37675af to
a60c55a
Compare
|
Re-review evidence for
Two desktop checks remain externally blocked:
There are no unresolved inline review threads. The original generated-file and stacked-preflight blockers are cleared; this PR should be re-reviewed after #10481 lands and the desktop workflow is rerun. |
…e toggle The memories baseline toggle (BasedHardware#8728) merged without regenerating the artifacts derived from the app-client OpenAPI contract, so several committed files drifted from source: - backend specs: app-client (+PATCH /v3/memories/{memory_id}/baseline), integration-public (+is_baseline field) - app-client client types: Dart memories_wire, Swift OmiApi.generated, TS omiApi.generated (web app / admin / personas, windows renderer) All add the same is_baseline field / baseline route; method counts and every other model are unchanged. The openapi-contract and generated-type contract checks have been red on main and on every PR based off it, and prod-eligibility inherits the failure. Regenerated with the repo's own generators (no hand edits): export_openapi.py --surface {app-client,integration-public} --write ... generate_dart_models.py --all generate_swift_openapi_types.py generate_ts_openapi_types.py Verified all three OpenAPI surfaces report "up to date" and re-running every generator reproduces the committed bytes, via the .openapi-venv (Python 3.11.15). Stacked on BasedHardware#10481, which exempts Sources/Generated/ from the desktop changelog gate so the regenerated Swift needs no changelog fragment. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
a60c55a to
f3e66d8
Compare
Git-on-my-level
left a comment
There was a problem hiding this comment.
Maintainer re-review of exact head f3e66d8: the prior generated-file and stacked-preflight requests are addressed. The branch is one generated-artifact commit directly on b7e1f0d; the diff remains exactly eight reproducible artifacts. Generated Files, OpenAPI, repo, app, web, Windows, and Desktop Swift Static Contracts are green. The Desktop Swift suite built successfully but twice hit the same four 120s shared SwiftPM .build-lock waits, with no assertion failure; the one authorized same-SHA rerun was exhausted. Approving the code/diff while that infrastructure-only required check remains blocking.
|
Hey @aryanorastar 👋 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! |
What
The memories baseline toggle added
is_baselineandPATCH /v3/memories/{memory_id}/baseline, but the committed artifacts derivedfrom those contracts were stale.
This PR now contains only reproducible generated output:
app-client-openapi.jsonintegration-public-openapi.jsonis_baselinefieldmemories_wire.g.dartisBaselineOmiApi.generated.swiftisBaselineand the baseline routeis_baselineand the baseline routeThe former stacked #10481 CI/failure-class changes are no longer part of this
branch; this PR is independently based on current
main.Verification
PATH=/opt/homebrew/share/flutter/bin:$PATH dart run build_runner build --delete-conflicting-outputs— wrote 0 outputs on the committed treeflutter gen-l10nfollowed bygit diff --exit-code -- lib/l10n— cleanscripts/openapi_runner.sh scripts/export_openapi.py --check ../docs/api-reference/openapi.json— up to datescripts/openapi_runner.sh scripts/export_openapi.py --surface app-client --check ../docs/api-reference/app-client-openapi.json— up to datescripts/openapi_runner.sh scripts/export_openapi.py --surface integration-public --check ../docs/api-reference/integration-public-openapi.json— up to date.openapi-venv/bin/python scripts/generate_dart_models.py --all --check— all outputs up to date.openapi-venv/bin/python scripts/generate_swift_openapi_types.py --check— clean.openapi-venv/bin/python scripts/generate_ts_openapi_types.py --check— cleanbackend/.venv/bin/python -m pytest backend/tests/unit/test_app_client_*_generator.py backend/tests/unit/test_integration_public_contract.py— 54 passedbash app/test.sh— 944 passedbash scripts/analyze_ratchet.sh— passed (11unnecessary_importfindings versus baseline 12)PRE_PUSH_SKIP_DESKTOP_CHANGELOG=1 make preflight— all 17 selected checks passed; the skip corresponds to theno-changelog-neededlabel for generated SwiftNo product behavior or hand-written source changes.