You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 38539b8
Browse filesBrowse the repository at this point in the historyBrowse files
Comparator runtime: a caller's signal stops a check or comparison (#104)
* Comparator runtime: a caller's signal stops a check or comparison
RulesRuntime.check and compare take {signal}: aborting it terminates the
Worker (or kills the native runner) and rejects with cancelled, and an
aborted signal never starts one. loadArtifact passes ArtifactRules.signal
to the runtime. A caller with one budget across several calls, such as a
hosted artifact verifier, can now stop work at its deadline instead of
letting each call run to its own.
Code review, finding 8 (public part).
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
* Comparator runtime: document RulesRuntime
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
* Comparator runtime: a signal ends only its own caller's wait or check
An aborted call is rejected before it loads the interpreter or looks in
the check cache; waiting for the shared interpreter is abortable for each
caller without cancelling the load; a check still running is shared only
by callers without a signal, while one with a signal runs its own and
shares the result once it succeeds, so cancelling one caller never fails
another.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
---------
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
0 commit comments