Repository navigation
Let installations admit server builds and limit their container time - #459
Merged
Merged
Conversation
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
widefleet-docs | e95f437 | Nov 28 2026, 01:26 PM |
tnkuehne
force-pushed
the
server-builds-limits
branch
3 times, most recently
from
November 28, 2026 12:53
d643d50 to
c48cf07
Compare
tnkuehne
force-pushed
the
server-builds-limits
branch
2 times, most recently
from
November 28, 2026 12:57
d643d50 to
4a8bf8c
Compare
A build policy admits each build in the transaction that records it and grants it container time. The build stops when that time after its admission is over, however often it runs. The CI counts the time of all of a build's runs, a lost run at most until the deadline, and the policy settles it as the build finishes. The CI's longest build time is exported for policies.
tnkuehne
force-pushed
the
server-builds-limits
branch
from
November 28, 2026 13:25
4a8bf8c to
e95f437
Compare
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.
What
Server builds (#455) cost container time. With this change an installation can decide who builds and for how long.
buildPolicy(runtime-extension.ts).admitruns in the transaction that records a build. It returns the seconds of container time the build may use, or why it cannot start, for example because the organization has no build time.settleruns in the transaction that finishes the build, with the container time the CI reported. It runs only then, so each build settles at most once.@platform/control-plane/buildsexportsciBuildTimeLimit, the most a policy can grant.seconds).Checks
pnpm lint, typecheck, formatpnpm exec vitest runin the control plane: all tests pass, including newbuilds.integration.test.tscases: