Skip to content

Draft: Allow offline results from runnerCloudProvisioningOptions query

Pedro Pombeiro requested to merge pedropombeiro/438315/add-offline-results into master

What does this MR do and why?

This MR provides offline capabilities to the services that are responsible for retrieving regions/zones/machine types from Google in the runnerCloudProvisioningOptions query. The support is enabled when allow_offline: true is passed in the arguments, and the project integration is not available. This implementation has the following limitations compared to online calls:

  • No pagination support, all results are returned.
  • No filtering support for machine types, they will be returned for all zones. Adding support for this would result in a JSON file that is 1.8MB (unless we optimize the format, requiring more development effort).
  • No sorting support.

EE: true

Part of #438315 (closed), #448400

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

Edited by Pedro Pombeiro

Merge request reports