Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
2af4913
Initial PoC
DylanTinianov Mar 19, 2026
f112c7c
Add tests
DylanTinianov Mar 23, 2026
041d89a
Update tests
DylanTinianov Mar 23, 2026
16f423f
Test
DylanTinianov Mar 25, 2026
4f3f018
Latest changes
DylanTinianov Mar 25, 2026
ebf4909
Update tests
DylanTinianov Mar 31, 2026
ed59e2e
Improve tests
DylanTinianov Apr 2, 2026
0207168
Update durable_emitter_load_test.go
DylanTinianov Apr 2, 2026
0df8c7c
Add dashboards and increase load testing
DylanTinianov Apr 2, 2026
954356b
Update common and fix dashboards
DylanTinianov Apr 10, 2026
85ef092
Update test params
DylanTinianov Apr 10, 2026
6effa8b
Update durable_emitter_load_test.go
DylanTinianov Apr 13, 2026
07eefb0
Update
DylanTinianov Apr 13, 2026
c27eca3
update
DylanTinianov Apr 13, 2026
3aa7dcc
Adjust params
DylanTinianov Apr 20, 2026
f41bc44
Clean up tests
DylanTinianov Apr 30, 2026
bb8f572
clean up
DylanTinianov Apr 30, 2026
6359d1f
Merge branch 'develop' of github.com:smartcontractkit/chainlink into …
DylanTinianov Apr 30, 2026
3620aa0
Bump common
DylanTinianov Apr 30, 2026
411ad41
Simplify migration
DylanTinianov Apr 30, 2026
5447e4e
Clean tests
DylanTinianov Apr 30, 2026
3ceb369
Update loop_registry_test.go
DylanTinianov Apr 30, 2026
a968992
Merge branch 'develop' of github.com:smartcontractkit/chainlink into …
DylanTinianov May 11, 2026
348f524
Bump common
DylanTinianov May 11, 2026
a800b88
Lint
DylanTinianov May 11, 2026
bfba525
Fix
DylanTinianov May 11, 2026
a8dd248
Merge branch 'develop' of github.com:smartcontractkit/chainlink into …
DylanTinianov May 11, 2026
4fa6ad9
bump common
DylanTinianov May 11, 2026
a9fce2a
Disable by default until release
DylanTinianov May 11, 2026
42e3593
Update durable_emitter_load_test.go
DylanTinianov May 11, 2026
6a411f6
Fix config + docs tests
DylanTinianov May 11, 2026
bf285cd
Update models.go
DylanTinianov May 11, 2026
f9e9137
Update chip-ingress.toml
DylanTinianov May 11, 2026
3041973
Fix test
DylanTinianov May 11, 2026
09e04ce
Enable in tests
DylanTinianov May 11, 2026
bc75c6d
Merge branch 'develop' of github.com:smartcontractkit/chainlink into …
DylanTinianov May 11, 2026
c334463
bump common
DylanTinianov May 11, 2026
31b22ad
Update v2_durable_emitter_test.go
DylanTinianov May 11, 2026
05910fe
Merge branch 'develop' of github.com:smartcontractkit/chainlink into …
DylanTinianov May 12, 2026
8063bc7
Bump common
DylanTinianov May 12, 2026
6a34f78
Disable test
DylanTinianov May 12, 2026
497d7ec
Merge branch 'develop' of github.com:smartcontractkit/chainlink into …
DylanTinianov May 12, 2026
0fa3842
Bump common + chipingress
DylanTinianov May 12, 2026
bac3e27
Remove local load tests
DylanTinianov May 12, 2026
8ac91f0
tidy
DylanTinianov May 12, 2026
61410b4
Return err
DylanTinianov May 13, 2026
43b97fa
Merge branch 'develop' of github.com:smartcontractkit/chainlink into …
DylanTinianov May 19, 2026
1803b9d
tidy generate
DylanTinianov May 19, 2026
de8ee8d
Update application.go
DylanTinianov May 19, 2026
41fc9a3
Fix cfg
DylanTinianov May 19, 2026
bdb3136
Update v2_durable_emitter_test.go
DylanTinianov May 19, 2026
7e5949f
tidy
DylanTinianov May 19, 2026
82c73cb
generate
DylanTinianov May 19, 2026
b97941d
Build query with templates
DylanTinianov May 19, 2026
abafd3a
LOOP Support
DylanTinianov May 19, 2026
3c51bb3
Bump common
DylanTinianov May 19, 2026
1cf870a
Update store
DylanTinianov May 20, 2026
01e695c
Rename store
DylanTinianov May 20, 2026
8a3433a
Bump common
DylanTinianov May 20, 2026
1f09804
Merge branch 'develop' of github.com:smartcontractkit/chainlink into …
DylanTinianov May 20, 2026
c121824
Bump common
DylanTinianov May 20, 2026
44e5d1c
Update durable_event_store_orm_test.go
DylanTinianov May 20, 2026
9fb9fd0
Pass logger
DylanTinianov May 20, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions core/cmd/shell.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ func initGlobals(cfgProm config.Prometheus, cfgTracing config.Tracing, cfgTeleme
ChipIngressEmitterEnabled: cfgTelemetry.ChipIngressEndpoint() != "",
ChipIngressEmitterGRPCEndpoint: cfgTelemetry.ChipIngressEndpoint(),
ChipIngressInsecureConnection: cfgTelemetry.ChipIngressInsecureConnection(),
ChipIngressLogger: lggr,
LogStreamingEnabled: cfgTelemetry.LogStreamingEnabled(),
LogLevel: cfgTelemetry.LogLevel(),
LogBatchProcessor: cfgTelemetry.LogBatchProcessor(),
Expand Down
4 changes: 2 additions & 2 deletions core/scripts/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ require (
github.com/smartcontractkit/chain-selectors v1.0.100
github.com/smartcontractkit/chainlink-automation v0.8.1
github.com/smartcontractkit/chainlink-ccip/chains/evm v0.0.0-20260506144252-c100eabfda74
github.com/smartcontractkit/chainlink-common v0.11.2-0.20260518100439-9564f35fd264
github.com/smartcontractkit/chainlink-common v0.11.2-0.20260520174852-16779f420738
github.com/smartcontractkit/chainlink-common/keystore v1.1.0
github.com/smartcontractkit/chainlink-data-streams v0.1.14
github.com/smartcontractkit/chainlink-deployments-framework v0.105.0
Expand Down Expand Up @@ -480,7 +480,7 @@ require (
github.com/smartcontractkit/chainlink-ccip/chains/solana v0.0.0-20260506144252-c100eabfda74 // indirect
github.com/smartcontractkit/chainlink-ccip/chains/solana/gobindings v0.0.0-20260511195239-0f6e1b177fc7 // indirect
github.com/smartcontractkit/chainlink-ccv v0.0.2-0.20260428133800-3b1484e8b1fd // indirect
github.com/smartcontractkit/chainlink-common/pkg/chipingress v0.0.11-0.20260511200925-b94130438417 // indirect
github.com/smartcontractkit/chainlink-common/pkg/chipingress v0.0.11-0.20260518142424-bacfb6ba4146 // indirect
github.com/smartcontractkit/chainlink-evm/contracts/cre/gobindings v0.0.0-20260403151002-2c91155b5501 // indirect
github.com/smartcontractkit/chainlink-feeds v0.1.2-0.20250227211209-7cd000095135 // indirect
github.com/smartcontractkit/chainlink-framework/capabilities v0.0.0-20260423135514-5b1a7565a99c // indirect
Expand Down
8 changes: 4 additions & 4 deletions core/scripts/go.sum

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

31 changes: 15 additions & 16 deletions core/services/beholder/durable_event_store_orm_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

beholdersvc "github.com/smartcontractkit/chainlink/v2/core/services/beholder"
"github.com/smartcontractkit/chainlink-common/pkg/beholder/beholderstore"

"github.com/smartcontractkit/chainlink/v2/core/internal/testutils"
"github.com/smartcontractkit/chainlink/v2/core/internal/testutils/pgtest"
)

Expand All @@ -24,11 +23,11 @@ func truncateChipDurableEvents(t *testing.T, db *sqlx.DB) {
require.NoError(t, err)
}

func TestPgDurableEventStore_InsertDeleteRoundTrip(t *testing.T) {
func TestPGDurableEventStore_InsertDeleteRoundTrip(t *testing.T) {
db := pgtest.NewSqlxDB(t)
truncateChipDurableEvents(t, db)
ctx := t.Context()
store := beholdersvc.NewPgDurableEventStore(db)
store := beholderstore.New(db)

id, err := store.Insert(ctx, []byte("test-payload"))
require.NoError(t, err)
Expand All @@ -47,11 +46,11 @@ func TestPgDurableEventStore_InsertDeleteRoundTrip(t *testing.T) {
assert.Empty(t, events)
}

func TestPgDurableEventStore_ListPending_RespectsCreatedBefore(t *testing.T) {
func TestPGDurableEventStore_ListPending_RespectsCreatedBefore(t *testing.T) {
db := pgtest.NewSqlxDB(t)
truncateChipDurableEvents(t, db)
ctx := t.Context()
store := beholdersvc.NewPgDurableEventStore(db)
store := beholderstore.New(db)

_, err := store.Insert(ctx, []byte("event-1"))
require.NoError(t, err)
Expand All @@ -67,11 +66,11 @@ func TestPgDurableEventStore_ListPending_RespectsCreatedBefore(t *testing.T) {
assert.Len(t, events, 1)
}

func TestPgDurableEventStore_ListPending_RespectsLimit(t *testing.T) {
func TestPGDurableEventStore_ListPending_RespectsLimit(t *testing.T) {
db := pgtest.NewSqlxDB(t)
truncateChipDurableEvents(t, db)
ctx := t.Context()
store := beholdersvc.NewPgDurableEventStore(db)
store := beholderstore.New(db)

for i := 0; i < 20; i++ {
_, err := store.Insert(ctx, []byte(fmt.Sprintf("event-%d", i)))
Expand All @@ -83,11 +82,11 @@ func TestPgDurableEventStore_ListPending_RespectsLimit(t *testing.T) {
assert.Len(t, events, 5)
}

func TestPgDurableEventStore_DeleteExpired(t *testing.T) {
func TestPGDurableEventStore_DeleteExpired(t *testing.T) {
db := pgtest.NewSqlxDB(t)
truncateChipDurableEvents(t, db)
ctx := t.Context()
store := beholdersvc.NewPgDurableEventStore(db)
store := beholderstore.New(db)

_, err := store.Insert(ctx, []byte("will-expire"))
require.NoError(t, err)
Expand All @@ -103,11 +102,11 @@ func TestPgDurableEventStore_DeleteExpired(t *testing.T) {
assert.Equal(t, int64(1), deleted)
}

func TestPgDurableEventStore_ObserveDurableQueue(t *testing.T) {
func TestPGDurableEventStore_ObserveDurableQueue(t *testing.T) {
db := pgtest.NewSqlxDB(t)
truncateChipDurableEvents(t, db)
ctx := testutils.Context(t)
store := beholdersvc.NewPgDurableEventStore(db)
ctx := t.Context()
store := beholderstore.New(db)

st, err := store.ObserveDurableQueue(ctx, time.Hour, time.Minute)
require.NoError(t, err)
Expand All @@ -122,11 +121,11 @@ func TestPgDurableEventStore_ObserveDurableQueue(t *testing.T) {
assert.Positive(t, st.OldestPendingAge)
}

func TestPgDurableEventStore_MarkDeliveredAndPurgeDelivered(t *testing.T) {
func TestPGDurableEventStore_MarkDeliveredAndPurgeDelivered(t *testing.T) {
db := pgtest.NewSqlxDB(t)
truncateChipDurableEvents(t, db)
ctx := testutils.Context(t)
store := beholdersvc.NewPgDurableEventStore(db)
ctx := t.Context()
store := beholderstore.New(db)

id, err := store.Insert(ctx, []byte("payload"))
require.NoError(t, err)
Expand Down
7 changes: 6 additions & 1 deletion core/services/chainlink/application.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import (
"go.uber.org/zap/zapcore"

"github.com/smartcontractkit/chainlink-common/pkg/beholder"
"github.com/smartcontractkit/chainlink-common/pkg/beholder/beholderstore"
"github.com/smartcontractkit/chainlink-common/pkg/chipingress"
"github.com/smartcontractkit/chainlink-common/pkg/loop"
nodeauthjwt "github.com/smartcontractkit/chainlink-common/pkg/nodeauth/jwt"
Expand Down Expand Up @@ -379,9 +380,13 @@ func NewApplication(ctx context.Context, opts ApplicationOpts) (Application, err

// Wire DurableEmitter for persistent chip ingress delivery when enabled.
if cfg.Telemetry().DurableEmitterEnabled() && cfg.Telemetry().ChipIngressEndpoint() != "" {
if err = setupDurableEmitter(ctx, opts.DS, globalLogger, cfg.Telemetry()); err != nil {
beholderClient := beholder.GetClient()
if err = beholderClient.SetupDurableEmitter(beholderstore.New(opts.DS), true); err != nil {
return nil, fmt.Errorf("failed to set up chip durable emitter: %w", err)
}
if err = beholderClient.StartDurableEmitter(ctx); err != nil {
return nil, fmt.Errorf("failed to start chip durable emitter: %w", err)
}
}

creServices, err := cre.NewServices(
Expand Down
4 changes: 2 additions & 2 deletions deployment/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ require (
github.com/smartcontractkit/chainlink-ccip/chains/solana v0.0.0-20260415165642-49f23e4d76cc
github.com/smartcontractkit/chainlink-ccip/chains/solana/gobindings v0.0.0-20260511195239-0f6e1b177fc7
github.com/smartcontractkit/chainlink-ccip/deployment v0.0.0-20260504204047-af9826978b72
github.com/smartcontractkit/chainlink-common v0.11.2-0.20260518100439-9564f35fd264
github.com/smartcontractkit/chainlink-common v0.11.2-0.20260520174852-16779f420738
github.com/smartcontractkit/chainlink-common/keystore v1.1.0
github.com/smartcontractkit/chainlink-deployments-framework v0.105.0
github.com/smartcontractkit/chainlink-evm v0.3.4-0.20260519153648-e22912dab374
Expand Down Expand Up @@ -417,7 +417,7 @@ require (
github.com/smartcontractkit/chainlink-automation v0.8.1 // indirect
github.com/smartcontractkit/chainlink-ccip/ccv/chains/evm v0.0.0-20260408145530-22e2d05695cd // indirect
github.com/smartcontractkit/chainlink-ccv v0.0.2-0.20260428133800-3b1484e8b1fd // indirect
github.com/smartcontractkit/chainlink-common/pkg/chipingress v0.0.10 // indirect
github.com/smartcontractkit/chainlink-common/pkg/chipingress v0.0.11-0.20260518142424-bacfb6ba4146 // indirect
github.com/smartcontractkit/chainlink-data-streams v0.1.14 // indirect
github.com/smartcontractkit/chainlink-feeds v0.1.2-0.20250227211209-7cd000095135 // indirect
github.com/smartcontractkit/chainlink-framework/capabilities v0.0.0-20260423135514-5b1a7565a99c // indirect
Expand Down
8 changes: 4 additions & 4 deletions deployment/go.sum

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,9 @@ require (
github.com/smartcontractkit/chainlink-ccip/chains/solana v0.0.0-20260415165642-49f23e4d76cc
github.com/smartcontractkit/chainlink-ccip/chains/solana/gobindings v0.0.0-20260415165642-49f23e4d76cc
github.com/smartcontractkit/chainlink-ccv v0.0.2-0.20260428133800-3b1484e8b1fd
github.com/smartcontractkit/chainlink-common v0.11.2-0.20260518100439-9564f35fd264
github.com/smartcontractkit/chainlink-common v0.11.2-0.20260520174852-16779f420738
github.com/smartcontractkit/chainlink-common/keystore v1.1.0
github.com/smartcontractkit/chainlink-common/pkg/chipingress v0.0.10
github.com/smartcontractkit/chainlink-common/pkg/chipingress v0.0.11-0.20260518142424-bacfb6ba4146
github.com/smartcontractkit/chainlink-data-streams v0.1.14
github.com/smartcontractkit/chainlink-evm v0.3.4-0.20260519153648-e22912dab374
github.com/smartcontractkit/chainlink-evm/contracts/cre/gobindings v0.0.0-20260403151002-2c91155b5501
Expand Down
8 changes: 4 additions & 4 deletions go.sum

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions integration-tests/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ require (
github.com/smartcontractkit/chainlink-ccip/chains/evm v0.0.0-20260506144252-c100eabfda74
github.com/smartcontractkit/chainlink-ccip/chains/solana v0.0.0-20260506144252-c100eabfda74
github.com/smartcontractkit/chainlink-ccip/chains/solana/gobindings v0.0.0-20260511195239-0f6e1b177fc7
github.com/smartcontractkit/chainlink-common v0.11.2-0.20260518100439-9564f35fd264
github.com/smartcontractkit/chainlink-common v0.11.2-0.20260520174852-16779f420738
github.com/smartcontractkit/chainlink-common/keystore v1.1.0
github.com/smartcontractkit/chainlink-deployments-framework v0.105.0
github.com/smartcontractkit/chainlink-evm v0.3.4-0.20260519153648-e22912dab374
Expand Down Expand Up @@ -394,7 +394,7 @@ require (
github.com/smartcontractkit/chainlink-ccip/ccv/chains/evm v0.0.0-20260408145530-22e2d05695cd // indirect
github.com/smartcontractkit/chainlink-ccip/deployment v0.0.0-20260504204047-af9826978b72 // indirect
github.com/smartcontractkit/chainlink-ccv v0.0.2-0.20260428133800-3b1484e8b1fd // indirect
github.com/smartcontractkit/chainlink-common/pkg/chipingress v0.0.10 // indirect
github.com/smartcontractkit/chainlink-common/pkg/chipingress v0.0.11-0.20260518142424-bacfb6ba4146 // indirect
github.com/smartcontractkit/chainlink-data-streams v0.1.14 // indirect
github.com/smartcontractkit/chainlink-evm/contracts/cre/gobindings v0.0.0-20260403151002-2c91155b5501 // indirect
github.com/smartcontractkit/chainlink-feeds v0.1.2-0.20250227211209-7cd000095135 // indirect
Expand Down
8 changes: 4 additions & 4 deletions integration-tests/go.sum

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading