Skip to content

flow stream will provide module definitions for actions#1079

Merged
raphael-goetz merged 2 commits into
mainfrom
#1052-send-module-configurations
Jul 2, 2026
Merged

flow stream will provide module definitions for actions#1079
raphael-goetz merged 2 commits into
mainfrom
#1052-send-module-configurations

Conversation

@raphael-goetz

Copy link
Copy Markdown
Member

Resolves: #1052

@github-actions

github-actions Bot commented Jun 26, 2026

Copy link
Copy Markdown

GitLab Pipeline Action

General information

Link to pipeline: https://gitlab.com/code0-tech/development/sagittarius/-/pipelines/2647606436

Status: Passed
Duration: 5 minutes

Job summaries

rspec: [cloud]

Coverage report available at https://code0-tech.gitlab.io/-/development/sagittarius/-/jobs/15153249838/artifacts/tmp/coverage/index.html
Test summary available at https://gitlab.com/code0-tech/development/sagittarius/-/pipelines/2647606436/test_report
Finished in 26.8 seconds (files took 10.03 seconds to load)
1592 examples, 0 failures, 3 pending
Line Coverage: 93.26% (6002 / 6436)
[TEST PROF INFO] Time spent in factories: 00:16.847 (52.65% of total time)

rspec: [ee]

Coverage report available at https://code0-tech.gitlab.io/-/development/sagittarius/-/jobs/15153249837/artifacts/tmp/coverage/index.html
Test summary available at https://gitlab.com/code0-tech/development/sagittarius/-/pipelines/2647606436/test_report
Finished in 27.79 seconds (files took 11.11 seconds to load)
1556 examples, 0 failures, 3 pending
Line Coverage: 93.45% (5849 / 6259)
[TEST PROF INFO] Time spent in factories: 00:16.790 (49.31% of total time)

rspec: [ce]

Coverage report available at https://code0-tech.gitlab.io/-/development/sagittarius/-/jobs/15153249836/artifacts/tmp/coverage/index.html
Test summary available at https://gitlab.com/code0-tech/development/sagittarius/-/pipelines/2647606436/test_report
Finished in 27.8 seconds (files took 10.23 seconds to load)
1506 examples, 0 failures, 3 pending
Line Coverage: 93.05% (5673 / 6097)
[TEST PROF INFO] Time spent in factories: 00:16.633 (49.68% of total time)

docs:preview

Documentation preview available at https://code0-tech.gitlab.io/-/development/telescopium/-/jobs/15153330699/artifacts/out/index.html

rubocop

937 files inspected, no offenses detected

@raphael-goetz raphael-goetz self-assigned this Jun 26, 2026
)
end

def update_runtime_compatibility

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Why are you making this sync? Ideally this would stay async with the UpdateRuntimeCompatibilityJob. This will also take care of updating the flows of the runtime.

Copilot AI review requested due to automatic review settings July 2, 2026 15:19
@raphael-goetz raphael-goetz force-pushed the #1052-send-module-configurations branch from 9e091f9 to 47e13e9 Compare July 2, 2026 15:21

Copilot AI left a comment

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.

Pull request overview

This PR extends the Flow gRPC update stream so that when a runtime connects it receives module configuration entries for all module configuration definitions (falling back to definition defaults when a project has no saved value), addressing issue #1052 (“Send ModuleConfiguration on Action Connection”).

Changes:

  • Update FlowHandler.grouped_module_configurations to emit module configurations for every module configuration definition, using saved project values when present and defaults otherwise.
  • Add ModuleConfigurationDefinition#to_default_grpc to serialize default configuration values into the same gRPC shape as saved configurations.
  • Add specs covering the new default-serialization behavior and the updated grouping behavior.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
spec/services/runtimes/grpc/modules/update_service_spec.rb Adds coverage ensuring the modules update service schedules runtime compatibility updates.
spec/models/module_configuration_definition_spec.rb Adds a spec for serializing a definition’s default value to gRPC.
spec/grpc/flow_handler_spec.rb Adds coverage for mixing saved module configuration values with definition defaults in the Flow stream.
app/models/module_configuration_definition.rb Introduces to_default_grpc for default-value serialization.
app/grpc/flow_handler.rb Updates grouping/sending logic to include module configuration definitions (defaults) in addition to saved values.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread app/grpc/flow_handler.rb
@raphael-goetz raphael-goetz merged commit 02160bf into main Jul 2, 2026
1 check passed
@nicosammito nicosammito deleted the #1052-send-module-configurations branch July 2, 2026 16:09
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.

Send ModuleConfiguration on Action Connection

3 participants