chore(toolbox-core): Use Toolbox server dev build for integration tests #298
+13
−4
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR updates the integration tests to use a dev build of the toolbox server from the
main
branch.Currently, integration tests are conducted against a released version of the toolbox server. This poses a challenge when SDK and server features, such as optional parameters, are developed and released concurrently. In such scenarios, integration tests for the SDK will fail as the corresponding server-side support is absent in the released version.
To address this, this change modifies the server download for integration tests to pull from the GCS bucket for toolbox dev builds, specifically from the
main
branch. This ensures that the SDK is tested against the latest server version, which should ideally be stable and backward-compatible.Flexibility in Versioning
For situations where new SDK features do not have a dependency on server-side changes, the
TOOLBOX_VERSION
and the newly introducedTOOLBOX_BUCKET
env vars in theintegration.cloudbuild.yaml
config can be adjusted. This allows for switching back to a specific released version of the toolbox server for integration testing if needed.Note
This PR removes the automatic
v
prefix from the version when constructing the blob download URL. Consequently, if you need to test against a released version (e.g.,0.8.0
), theTOOLBOX_VERSION
must be set tov0.8.0
. This change accommodates version values that do not have a v prefix, such asmain
.Note
The integration tests would currently fail due to a known issue with the optional parameters implementation with the server dev build [#771]