Monorepo for Tangled tangled.org

nix,spindle: switch to tap from jetstream #982

open opened by boltless.me targeting master from sl/spindle-rewrite

spindle-tap will collect/stream record events from:

  • users dynamically added by spindle (spindle members | collaborators of repos using spindle)
  • any users with sh.tangled.repo.pull collection

It might be bit inefficient considering it will also stream repo creation events from PR authors due to second rule, but at least we now have backfill logic and Sync 1.1 based syncing.

This inefficiency can be fixed later by modifying upstream tap cli or embedding tap into spindle.

+--------- all tangled users --------+
|                                    |
| +-- users known to spindle-tap --+ |
| |  (PR author / manually added)  | |
| |                                | |
| | +----------------------------+ | |
| | |   users known to spindle   | | |
| | |  (members / collaborators) | | |
| | +----------------------------+ | |
| +--------------------------------+ |
+------------------------------------+

Close: https://tangled.org/tangled.org/core/issues/341

Signed-off-by: Seongmin Lee git@boltless.me

Labels

None yet.

assignee

None yet.

Participants 1
AT URI
at://did:plc:xasnlahkri4ewmbuzly2rlc5/sh.tangled.repo.pull/3mckguakeya22
+1 -1
Interdiff #0 #1
nix/modules/spindle.nix

This file has not been changed.

nix/vm.nix

This file has not been changed.

spindle/config/config.go

This file has not been changed.

spindle/db/db.go

This file has not been changed.

spindle/db/known_dids.go

This file has not been changed.

spindle/db/repos.go

This file has not been changed.

spindle/ingester.go

This file has not been changed.

spindle/server.go

This file has not been changed.

+1 -1
spindle/tap.go
··· 84 84 return fmt.Errorf("adding member to rbac: %w", err) 85 85 } 86 86 if err := s.tap.AddRepos(ctx, []syntax.DID{syntax.DID(record.Subject)}); err != nil { 87 - return fmt.Errorf("adding did to tap", err) 87 + return fmt.Errorf("adding did to tap: %w", err) 88 88 } 89 89 90 90 l.Info("added member", "member", record.Subject)

History

4 rounds 0 comments
sign up or login to add to the discussion
1 commit
expand
nix,spindle: switch to tap from jetstream
2/3 timeout, 1/3 success
expand
no conflicts, ready to merge
expand 0 comments
1 commit
expand
nix,spindle: switch to tap from jetstream
1/3 failed, 2/3 success
expand
expand 0 comments
1 commit
expand
nix,spindle: switch to tap from jetstream
1/3 failed, 2/3 success
expand
expand 0 comments
1 commit
expand
nix,spindle: switch to tap from jetstream
1/3 failed, 2/3 success
expand
expand 0 comments