builderhooks: add dsynth tracker hooks#1538
Open
tuxillo wants to merge 4 commits into
Open
Conversation
Add dsynth hook scripts that translate run start/end and per-port state changes into `dportsv3 tracker` API calls for the current build profile. The hooks persist one active tracker run id per dsynth profile, enqueue ports before marking them building, record final port outcomes, and fail soft with hook-local logging so tracker outages do not interrupt package builds. Include a shared helper, a config template, support for both `hook_pkg_start` and `hook_pkg_started`, and installation notes for copying the hook set into `/etc/dsynth`. Co-authored-by: OpenAI <noreply@openai.com>
Stop dsynth tracker hooks from reusing stale run ids when a new start-build request fails, and disable tracking for that dsynth run instead of continuing to enqueue and record into the previous build. Also switch the tracker server from one shared SQLite connection to fresh per-request connections so concurrent enqueue and status updates do not corrupt transaction state under hook traffic. Add a regression test covering the request connection lifecycle. Co-authored-by: OpenAI <noreply@openai.com>
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.
Add dsynth hook scripts that translate run start/end and per-port
state changes into
dportsv3 trackerAPI calls for the currentbuild profile.
The hooks persist one active tracker run id per dsynth profile,
enqueue ports before marking them building, record final port
outcomes, and fail soft with hook-local logging so tracker outages
do not interrupt package builds.
Include a shared helper, a config template, support for both
hook_pkg_startandhook_pkg_started, and installation notes forcopying the hook set into
/etc/dsynth.Co-authored-by: OpenAI noreply@openai.com