Skip to content

Add regression guard for GetServer call count in imageURL provisioning - #2165

Open
guettli wants to merge 1 commit into
mainfrom
test-getserver-call-count-imageurl
Open

Add regression guard for GetServer call count in imageURL provisioning#2165
guettli wants to merge 1 commit into
mainfrom
test-getserver-call-count-imageurl

Conversation

@guettli

@guettli guettli commented Jul 13, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Adds a call-count assertion to the existing imageURL full-provisioning test in pkg/services/hcloud/server/server_test.go, so GetServer calls don't silently grow beyond the current baseline of 7.
  • First step towards Hcloud provisioning process - reduce GetServer API calls #2163: a concrete, tracked number for GetServer call volume during provisioning, as a baseline for future work to reduce it.

Relates to #2163

TODO: no e2e test for image-url provisioning

Currently, the e2e tests do not use image-url via an image-url-command. This means the number generated by the e2e tests do not reflect that kind of provisioning.

Counts GetServer calls in the existing full imageURL provisioning test
and asserts it stays at or below the current baseline of 7, so future
changes don't silently increase API call volume.

Relates to #2163
# Committing as: thomas.guettler@syself.com
@github-actions github-actions Bot added size/XS Denotes a PR that changes 0-20 lines, ignoring generated files. area/code Changes made in the code directory labels Jul 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/code Changes made in the code directory size/XS Denotes a PR that changes 0-20 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant