Skip to content

Use push job#244

Merged
moshe-kabala merged 7 commits into
masterfrom
use_push_job
Jun 3, 2026
Merged

Use push job#244
moshe-kabala merged 7 commits into
masterfrom
use_push_job

Conversation

@moshe-kabala
Copy link
Copy Markdown
Contributor

No description provided.

Copy link
Copy Markdown
Contributor

@asafyehezkel asafyehezkel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@moshe-kabala moshe-kabala force-pushed the use_push_job branch 2 times, most recently from f41837c to b262ad1 Compare June 3, 2026 12:50
moshe-kabala and others added 6 commits June 3, 2026 18:40
leap push for a new model now triggers the single push job (POST /versions/push)
that runs code parse and model import back to back, instead of calling
pushCodeSnapshot then importModel as two separate jobs/round-trips.

- code.PushCodeAndModel uploads the code bundle and calls the new Push API.
- model.WaitForPushJob waits on the single job and reports import/validation
  errors on failure.
- runPushFlow routes a new model through the combined push; overwriting a
  version that already has a model keeps the code-parse + re-validate flow,
  since the push job always imports a model.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
A failed push reused the import-model error report ("Import Model Error
Report"), which is confusing for a push. Add ToPushReportPages (same content,
push-titled) and use it in WaitForPushJob; the import/override flows keep the
import-model report.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Overwriting a version that already has a model now goes through the new
override-push API (POST /versions/pushOverride) instead of the old
pushCodeSnapshot + OverrideModel jobs: code.PushOverride uploads the code and
calls pushOverride (no model upload, no name — both come from the overwritten
version), then WaitForPushJob waits on the single job.

New-model / new-version pushes still go through runCombinedPush. Removes the
now-dead pushCodeAndWaitForParsing / overrideExistingModel / tagCodeResp.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
WaitForPushJob reused waitForImportModelJob, which printed "Waiting for import
model result..." during a push/override-push. Parameterize the label: the push
path prints "push", the standalone import/override paths keep "import model".

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
The node-server dropped the standalone importModel/overwriteModel/
pushCodeSnapshot endpoints (folded into the combined push job), so the
regenerated tensorleapapi SDK no longer exposes them. Remove the now-dead
wrappers that called them — model.ImportModel, model.OverrideModel,
code.PushCodeSnapshot and code.PushCode — none of which are reached by the
push flow (PushCodeAndModel / PushOverride). Builds clean against the new SDK.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
The regenerated tensorleapapi SDK renamed DatasetTestResultPayload ->
CodeTestResultPayload (engine dataset->code rename). Update the one remaining
app-code reference in the push error report. Builds clean.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@moshe-kabala moshe-kabala merged commit ce318f6 into master Jun 3, 2026
2 checks passed
@moshe-kabala moshe-kabala deleted the use_push_job branch June 3, 2026 15:56
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.

2 participants