Skip to content

Support configurable database node counts#170

Draft
tkilias wants to merge 3 commits into
pr2/parallel-slow-testsfrom
pr3/support-num-nodes
Draft

Support configurable database node counts#170
tkilias wants to merge 3 commits into
pr2/parallel-slow-testsfrom
pr3/support-num-nodes

Conversation

@tkilias

@tkilias tkilias commented Jun 27, 2026

Copy link
Copy Markdown
Collaborator

What changed

This PR adds configurable database node counts on top of PR 2.

It includes:

  • num_nodes support in the handwritten database creation helpers
  • unit coverage for num_nodes forwarding
  • the integration-test split that isolates the node-count scenario into test_database_num_nodes.py
  • the matching changelog entry

Why it changed

The feature needed to stay separate from the lifecycle fixes and the later refactor so reviewers can evaluate the behavior change and its test coverage in isolation.

Impact

Callers using the handwritten access helpers can now request explicit database node counts, and the node-count integration scenario is separated from the general lifecycle coverage.

Validation

  • poetry run pytest -q test/unit/test_api_access.py
  • poetry run nox -s format:check
  • poetry run nox -s lint:typing

Integration tests requiring SaaS credentials were not run locally in this publish step.

@tkilias tkilias force-pushed the pr2/parallel-slow-tests branch from 43a8c18 to 3ac383f Compare June 27, 2026 15:20
@tkilias tkilias force-pushed the pr3/support-num-nodes branch from 7482e92 to 95fafc4 Compare June 27, 2026 15:20
@sonarqubecloud

Copy link
Copy Markdown

@tkilias tkilias changed the title [codex] Support configurable database node counts Support configurable database node counts Jun 29, 2026
),
)
LOG.info("Creating database %s", name)
database_spec = openapi.models.CreateDatabase(

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.

Why not pass num_nodes in the constructor here?

def get_database_settings(
self,
database_id: str,
) -> openapi.models.DatabaseSettings | None:

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.

Wrong type hint. The function either returns DatabaseSettings or raises an error, never returns None.

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