Monorepo for Tangled tangled.org
752
fork

Configure Feed

Select the types of activity you want to include in your feed.

proposal: trigger pipeline from spindle (not from knot) #101

open opened by boltless.me

currently, sh.tangled.pipeline event is emitted from tangled when git ref update triggered the pipeline.

Conceptually this is unnecessary logic for knot. We can make spindle to do this instead.

  1. spindle listen for sh.tangled.git.refUpdate from knot event stream
  2. when ref update happens, fetch repo from knot, parse .tangled/workflows/*.yml and trigger the pipeline.

Benefits:#

  • knot doesn't need to know anything about pipeline business. so when we update the spec, only spindle needs an upgrade
  • one less event type
  • pipeline trigger is more flexible than ever. Imagine custom spindle implementation that runs for .github/workflow or .gitlab-ci.yml

Spindle is already ingesting from both atproto jetstream and knot event stream, and fetching the repo won't be huge performance issue as spindle can just sync the local git repo on refUpdate events.

Prerequirements:#

  • internal git server module to sync from knots. (spindle only needs to sync hot repos, appview should sync all known repos)

Edit: rephrase title

I changed my opinion. Let's leave the pipeline record, but it will be managed from the spindle.

sign up or login to add to the discussion
Labels

None yet.

assignee

None yet.

Participants 1
AT URI
at://did:plc:xasnlahkri4ewmbuzly2rlc5/sh.tangled.repo.issue/3m76435hnuu22