Skip to content

builderhooks: add dsynth tracker hooks#1538

Open
tuxillo wants to merge 4 commits into
masterfrom
hooks-tracker
Open

builderhooks: add dsynth tracker hooks#1538
tuxillo wants to merge 4 commits into
masterfrom
hooks-tracker

Conversation

@tuxillo
Copy link
Copy Markdown
Member

@tuxillo tuxillo commented Mar 28, 2026

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

tuxillo and others added 4 commits March 28, 2026 02:03
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>
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