From c647c06bdf18b78f5d2a4a1d2d0d33b2e8a36b0f Mon Sep 17 00:00:00 2001 From: Dylan Tinianov Date: Mon, 27 Oct 2025 15:15:57 -0400 Subject: [PATCH] deterministic marhsal --- pkg/workflows/dontime/plugin.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/workflows/dontime/plugin.go b/pkg/workflows/dontime/plugin.go index 598f7c21cd..ece80d7ddd 100644 --- a/pkg/workflows/dontime/plugin.go +++ b/pkg/workflows/dontime/plugin.go @@ -108,7 +108,7 @@ func (p *Plugin) Observation(_ context.Context, outctx ocr3types.OutcomeContext, Requests: requests, } - return proto.Marshal(observation) + return proto.MarshalOptions{Deterministic: true}.Marshal(observation) } func (p *Plugin) ValidateObservation(_ context.Context, oc ocr3types.OutcomeContext, _ types.Query, ao types.AttributedObservation) error { @@ -192,7 +192,7 @@ func (p *Plugin) Outcome(_ context.Context, outctx ocr3types.OutcomeContext, _ t } } - return proto.Marshal(outcome) + return proto.MarshalOptions{Deterministic: true}.Marshal(outcome) } func (p *Plugin) Reports(_ context.Context, _ uint64, outcome ocr3types.Outcome) ([]ocr3types.ReportPlus[[]byte], error) {