Skip to content

feat(server): promote results over the API - #157

Open
PiquelChips wants to merge 1 commit into
feat/ci-resume-landingsfrom
feat/ci-promote-api
Open

PiquelChips wants to merge 1 commit into
feat/ci-resume-landingsfrom
feat/ci-promote-api

Conversation

@PiquelChips

Copy link
Copy Markdown
Member

Promotion only ran in a working copy (origin promote) and in the landing queue. A CI worker talking to a server needs it too: a check whose result a promotion covers needn't run again.

POST /promote promotes results to a record the caller sees, from the records they see on the same target with the same input digest, as statements the server issues, and returns them. A promotion claims nothing new, so any signed-in caller may ask for one, and it never copies a result, or its payload, the caller can't read.

It also retries the landings waiting for evidence about the record whenever the record has a statement, even if nothing new was promoted: a result put by a call a crash cut short may be what they wait for. origin promote goes through the same call.

Note

Written by Claude Opus 5.5 in Claude Code (via T3 Code)

@coderabbitai

coderabbitai Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 34 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 6cdce36c-2c10-41de-ad85-83b58447b3d2
Commits

Reviewing files that changed from the base of the PR and between dfa0c9b and e40365a.

Files selected for processing: 8

  • apps/origin-src/src/http.rs
  • apps/origin-src/src/permissions.rs
  • apps/origin-src/src/service.rs
  • apps/origin-src/src/workspace/annotate.rs
  • apps/origin-src/tests/http.rs
  • crates/origin-client/src/lib.rs
  • crates/origin-shared/src/api.rs
  • docs/openapi.json
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@PiquelChips
PiquelChips added this pull request to stack #165 November 22, 2026 14:59
@PiquelChips
PiquelChips force-pushed the feat/ci-promote-api branch 3 times, most recently from bcff35c to ef62fee Compare November 22, 2026 18:54
Promotion ran only in a working copy, with `origin promote`, and the
landing queue. A CI worker talking to a server needs it too: a check
whose result a promotion covers needn't run again.

`POST /promote` promotes results to a record the caller sees, from the
records they see on the same target with the same input digest, as
statements the server issues, and returns them. A promotion claims
nothing new, so any signed-in caller may ask for one. It retries the
landings waiting for evidence about the record if it has any statement,
even when nothing new was promoted: a result put by a call a crash cut
short may be what they wait for. `origin promote` goes through the same
call.
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