Skip to content

[CRE] Sharding support in HTTP gateway handler - #23400

Draft
bolekk wants to merge 1 commit into
developfrom
http_shards
Draft

[CRE] Sharding support in HTTP gateway handler#23400
bolekk wants to merge 1 commit into
developfrom
http_shards

Conversation

@bolekk

@bolekk bolekk commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@github-actions

Copy link
Copy Markdown
Contributor

✅ No conflicts with other open PRs targeting develop

@github-actions

Copy link
Copy Markdown
Contributor

I see you updated files related to core. Please run make gocs in the root directory to add a changeset as well as in the text include at least one of the following tags:

  • #added For any new functionality added.
  • #breaking_change For any functionality that requires manual action for the node to boot.
  • #bugfix For bug fixes.
  • #changed For any change to the existing functionality.
  • #db_update For any feature that introduces updates to database schema.
  • #deprecation_notice For any upcoming deprecation functionality.
  • #internal For changesets that need to be excluded from the final changelog.
  • #nops For any feature that is NOP facing and needs to be in the official Release Notes for the release.
  • #removed For any functionality/config that is removed.
  • #updated For any functionality that is updated.
  • #wip For any change that is not ready yet and external communication about it should be held off till it is feature complete.

@trunk-io

trunk-io Bot commented Aug 13, 2026

Copy link
Copy Markdown

Static BadgeStatic BadgeStatic Badge

Failed Test Failure Summary Logs
TestHttpTriggerHandler_HandleUserTriggerRequest_JWTAuthorization/successful_JWT_authorization The test failed because a workflow was not assigned to any shard, causing an unexpected error. Logs ↗︎
TestHttpTriggerHandler_ReapExpiredCallbacks/keep_non-expired_callbacks The test failed because a workflow was not assigned to any shard, causing an unexpected error. Logs ↗︎
TestHttpTriggerHandler_HandleNodeTriggerResponse/successful_aggregation The test failed because the workflow was not assigned to any shard, causing an unexpected error during processing. Logs ↗︎
TestHttpTriggerHandler_HandleUserTriggerRequest_Validation The test failed due to multiple validation errors related to incorrect or missing workflow parameters. Logs ↗︎

... and 25 more

View Full Report ↗︎Docs

@cl-sonarqube-production

Copy link
Copy Markdown

Quality Gate failed Quality Gate failed

Failed conditions
15 New Major Issues (required ≤ 5)
C Reliability Rating on New Code (required ≥ A)

See analysis details on SonarQube

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE SonarQube for IDE


ctx := t.Context()
err := handler.agg.Start(ctx)
err := handler.aggs[handler.shards[0].donID].Start(ctx)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

assert for more then 1 shard could be useful in tests

t.Run("single DON single shard (backward compatible)", func(t *testing.T) {
don := handlermocks.NewDON(t)
shardedDONs := []config.ShardedDONConfig{
{DonName: "donA", F: 1, Shards: []config.Shard{{Nodes: []config.NodeConfig{node("n1"), node("n2")}}}},

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

more then >1 shard asserts can help make tests more comprehensive

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants