-
Notifications
You must be signed in to change notification settings - Fork 0
fix: consolidate reliability and safety fixes #199
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
flemzord
wants to merge
23
commits into
main
Choose a base branch
from
feat/consolidate-reliability-fixes
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
6515346
chore(deps): upgrade go-libs to v5
flemzord e531173
fix(triggers): repair broken name filter in ListTriggers
flemzord 258ceba
fix(triggers): restrict link() to an allow-listed host (SSRF/token leak)
flemzord 5a3828a
fix(workflow): target the -main run in Wait and AbortRun, fix error h…
flemzord 5703bf5
fix(triggers): make event processing idempotent under redelivery and …
flemzord 56ca433
fix(triggers): surface listener panics as errors instead of dropping …
flemzord eaa5779
fix(wait_event): drain signals with a blocking Receive loop
flemzord 8beb773
fix(workflow): run termination bookkeeping on a cancellation-safe con…
flemzord 9360f09
fix(workflow): stop using soft-deleted workflows
flemzord 87a3e99
fix(workflow): return errors instead of panicking in history readers
flemzord 6762188
fix(api): map backend errors to 400/404 instead of 500
flemzord ddf480a
fix(worker): honour temporal-max-parallel-activities flag
flemzord 89cde18
fix(client): remove stray duplicate generation so the SDK module comp…
flemzord 28c44e6
fix(api): bound v1 list endpoints with a page size
flemzord 6807b99
fix(storage): index triggers_occurrences(trigger_id, date)
flemzord cd45ca6
fix: resolve consolidated reliability blockers
flemzord 44c5fcd
test: compare retries with persisted timestamps
flemzord 5af27ee
fix(api): expose v1 pagination metadata
flemzord a8e1175
fix: address automated review findings
flemzord 9091214
chore: merge main into consolidated reliability fixes
flemzord 49f2916
fix(worker): reject activity concurrency overflow
flemzord ff2e4aa
fix(api): enforce pagination bounds from cursors
flemzord b4a5da6
fix(wait-event): handle workflow cancellation
flemzord File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| package cmd | ||
|
|
||
| import ( | ||
| "net/http" | ||
| "testing" | ||
|
|
||
| "github.com/formancehq/go-libs/v5/pkg/fx/authnfx" | ||
| "github.com/stretchr/testify/require" | ||
| "go.uber.org/fx" | ||
| ) | ||
|
|
||
| func TestCommonOptionsBuildsWithJWTAndStackHTTPClients(t *testing.T) { | ||
| cmd := newServeCommand() | ||
| app := fx.New( | ||
| fx.NopLogger, | ||
| authnfx.JWTModuleFromFlags(cmd), | ||
| stackHTTPClientModule(cmd), | ||
| fx.Invoke(fx.Annotate( | ||
| func(stackClient *http.Client) { | ||
| require.NotNil(t, stackClient) | ||
| }, | ||
| fx.ParamTags(`name:"stack"`), | ||
| )), | ||
| ) | ||
| require.NoError(t, app.Err()) | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| package cmd | ||
|
|
||
| import ( | ||
| "testing" | ||
|
|
||
| "github.com/formancehq/go-libs/v5/pkg/workflow/temporal" | ||
| "github.com/stretchr/testify/require" | ||
| ) | ||
|
|
||
| func TestWorkerOptionsValidatesMaxParallelActivities(t *testing.T) { | ||
| for _, testCase := range []struct { | ||
| name string | ||
| value string | ||
| wantErr bool | ||
| }{ | ||
| {name: "positive integer", value: "10"}, | ||
| {name: "zero", value: "0", wantErr: true}, | ||
| {name: "negative", value: "-1", wantErr: true}, | ||
| {name: "fractional", value: "0.5", wantErr: true}, | ||
| {name: "int overflow", value: "9223372036854775808", wantErr: true}, | ||
| } { | ||
| t.Run(testCase.name, func(t *testing.T) { | ||
| cmd := newWorkerCommand() | ||
| require.NoError(t, cmd.Flags().Set(temporal.TemporalMaxParallelActivitiesFlag, testCase.value)) | ||
| _, err := workerOptions(cmd) | ||
| if testCase.wantErr { | ||
| require.Error(t, err) | ||
| return | ||
| } | ||
| require.NoError(t, err) | ||
| }) | ||
| } | ||
| } |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.