Repository navigation
Polish batch: spend cap, starter form, compare, --follow, grouped outage alerts - #98
Merged
Merged
Conversation
…age alerts - Per-job spend cap (max_spend_cents; form "Stop once it has cost", API, CLI --max-spend): the scheduler fails the job (or stops a box) once its accrued spend reaches it. - Web "Try the starter job": puts examples/starter/train.py in the project's inputs and fills in the form. - krater submit --follow (logs, then outputs downloaded on success, wait's exit code) and krater compare <jobs> (outputs/metrics.json side by side). CLI 0.7.0. - krater logs says when the newest attempt has no output yet (logs API: latest_attempt); krater run explains plainly when it can't read secret names. - Job page: when a checkpoint last reached storage, and an overdue badge. - Old code/<hash>/ input folders no unfinished job uses are pruned after 7 days. - Ops alerts that all say this server's DNS/network is down are posted as one. - /healthz reports the deployed commit (KRATER_REVISION from CI); the Deploy workflow skips its deploy job instead of reporting success for a commit it didn't deploy. - Pause wording no longer assumes outbid outright. - CLI tests: a shared conftest keeps every test's sign-in out of the real config folder. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…PI test sees latest_attempt Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Builds the improvements list (2, 3, 5, 6, 8) and the earlier polish list.
Members
max_spend_centsin the API, and--max-spendin the CLI (job files:max-spend).examples/starter/train.pyin the project's inputs asstarter/, then fills in the form.krater submit --follow: prints the output until the job finishes. If it succeeded, it downloads the outputs here. The exit code is the same askrater wait's.krater compare <job>...: each job'soutputs/metrics.jsonside by side.krater logssays when the newest attempt has no output yet; the logs API now includeslatest_attempt.krater rungives one plain line when it can't read the project's secret names (signed out or offline).Ops
code/<hash>/input folders are deleted after 7 days once no unfinished job uses them (in the hourlycompute_storage_cleanup). A rerun of a pruned version is refused at submit, as for any missing input./healthzincludes"revision": the image'sKRATER_REVISIONbuild arg, set by CI.pickanddeploy, so a run for a commit that is no longer main's tip shows skipped instead of a green success that deployed nothing.conftest.pythat keeps sign-ins out of the real config folder.test_updates_cliand the new tests had been writing fake tokens to%APPDATA%\krater.Migration
e2b7c4d9a1f6adds the nullablecompute_jobs.max_spend_centsand nothing else.Tests: the server suite and the CLI suite (242) pass. The new tests cover the spend cap (scheduler, API, form), the starter, checkpoint freshness, code-folder pruning, the grouped outage alert,
--follow,compare, the logs note, andrunwhen signed out.🤖 Generated with Claude Code