Merged
Conversation
…d pull request triggers
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 pull request introduces cloud execution support, staged load profiles, and several configuration enhancements to the VoltTest PHP SDK. The main changes include adding a
CloudClientfor interacting with the VoltTest Cloud API, support for staged load profiles via a newStageclass, and new configuration options such as HTTP timeout. Several exception classes were added to improve error handling, and the CI workflow was updated to include release branches.Cloud execution support:
CloudClientclass to handle API interactions with VoltTest Cloud, including methods for creating tests, starting runs, checking run status, and stopping runs. It features robust error handling for authentication, plan limits, and network issues. (src/CloudClient.php)cloud()method in theVoltTestclass to enable cloud execution mode and accept an API key, along withsetCloudTimeout()to configure the timeout for cloud runs. (src/VoltTest.php)Staged load profiles:
Stageclass to represent individual load stages, including validation for duration and target values. (src/Stage.php)ConfigurationandVoltTestclasses to support staged load profiles, including methods to add stages (stage()), and logic to prevent mixing stages with constant load settings. (src/Configuration.php,src/VoltTest.php) [1] [2]Configuration enhancements:
setHttpTimeout()in bothConfigurationandVoltTestclasses. (src/Configuration.php,src/VoltTest.php) [1] [2]toArray()method inConfigurationto output the correct structure depending on whether stages or constant load is used, and to include the HTTP timeout if set. (src/Configuration.php)Error handling improvements:
CloudException,AuthenticationException,CloudConnectionException,PlanLimitException,CloudTimeoutException, andRunFailedException. (src/Exceptions/CloudException.php,src/Exceptions/AuthenticationException.php,src/Exceptions/CloudConnectionException.php,src/Exceptions/PlanLimitException.php,src/Exceptions/CloudTimeoutException.php,src/Exceptions/RunFailedException.php) [1] [2] [3] [4] [5] [6]CI/CD workflow updates:
ci.yml) to trigger on pushes and pull requests torelease/*branches in addition tomainanddevelop. (.github/workflows/ci.yml)