Skip to content

auto assign runtime for project if its the first one - #1238

Merged
raphael-goetz merged 1 commit into
mainfrom
#1111-auto-assign-runtime
Aug 21, 2026
Merged

auto assign runtime for project if its the first one#1238
raphael-goetz merged 1 commit into
mainfrom
#1111-auto-assign-runtime

Conversation

@raphael-goetz

Copy link
Copy Markdown
Member

Resolves: #1111

@raphael-goetz raphael-goetz self-assigned this Aug 21, 2026
@raphael-goetz

Copy link
Copy Markdown
Member Author

This will finally skip the step where well always need to assign a runtime first to start :D

@github-actions

Copy link
Copy Markdown

GitLab Pipeline Action

General information

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

Status: Passed
Duration: 5 minutes

Job summaries

rspec: [cloud]

Coverage report available at https://code0-tech.gitlab.io/-/development/sagittarius/-/jobs/16034010073/artifacts/tmp/coverage/index.html
Test summary available at https://gitlab.com/code0-tech/development/sagittarius/-/pipelines/2779906307/test_report
Finished in 36.7 seconds (files took 11.51 seconds to load)
1757 examples, 0 failures
Line Coverage: 93.61% (6543 / 6990)
[TEST PROF INFO] Time spent in factories: 00:19.150 (43.81% of total time)

rspec: [ee]

Coverage report available at https://code0-tech.gitlab.io/-/development/sagittarius/-/jobs/16034010072/artifacts/tmp/coverage/index.html
Test summary available at https://gitlab.com/code0-tech/development/sagittarius/-/pipelines/2779906307/test_report
Finished in 40.64 seconds (files took 12.72 seconds to load)
1721 examples, 0 failures
Line Coverage: 93.79% (6390 / 6813)
[TEST PROF INFO] Time spent in factories: 00:21.795 (45.45% of total time)

rspec: [ce]

Coverage report available at https://code0-tech.gitlab.io/-/development/sagittarius/-/jobs/16034010071/artifacts/tmp/coverage/index.html
Test summary available at https://gitlab.com/code0-tech/development/sagittarius/-/pipelines/2779906307/test_report
Finished in 41.27 seconds (files took 12.97 seconds to load)
1670 examples, 0 failures
Line Coverage: 93.43% (6214 / 6651)
[TEST PROF INFO] Time spent in factories: 00:21.817 (44.29% of total time)

docs:preview

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

rubocop

1001 files inspected, no offenses detected

@raphael-goetz
raphael-goetz disabled auto-merge August 21, 2026 15:59
@raphael-goetz
raphael-goetz merged commit ba194b3 into main Aug 21, 2026
1 check passed
target: namespace || AuditEvent::GLOBAL_TARGET
)

assign_as_primary_if_only_runtime(runtime)

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.

This fix went completely in the wrong direction. This would need to happen on project creation, not on runtime creation.

If configured in the reticulum env, an initial runtime will be created automatically. That runtime should be assigned automatically when a project gets created.

Basically, when creating a project the runtime should be automatically assigned in the following cases:

  • Only one global runtime exists
  • There is only one runtime for the namespace and no global runtime

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.

Auto assign runtime if only one is present

2 participants