chore(legacy): subtree merge legacy-cli 5.x updates#19
Open
pjcdawkins wants to merge 2 commits intomainfrom
Open
chore(legacy): subtree merge legacy-cli 5.x updates#19pjcdawkins wants to merge 2 commits intomainfrom
pjcdawkins wants to merge 2 commits intomainfrom
Conversation
Merge 31 commits from platformsh/legacy-cli 5.x (adb14ee..08be158). Notable upstream changes: - Autoscaling settings: expanded get/set commands - Variable app-scope: new --app-scope option for var:create/update - CurlCli: stdout buffering for 401 retry - Environment push: additional options - Db dump: new options - Various config and metadata updates Conflicts resolved: - legacy/src/Service/CurlCli.php: took upstream changes, fixed stdout double-write bug in retry block - legacy/go-tests/: removed (moved to integration-tests/ in this repo) Additional changes in this repo: - Port variable app-scope tests to integration-tests/ with setupVariableTest helper and two new test functions - Add ApplicationScope field to mockapi Variable struct - Remove legacy Makefile go-tests targets (now in integration-tests/) - Fix data race in api_curl_test with tokenState struct - Suppress phpstan false positive in CurlCli.php Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
444c3f3 to
247c263
Compare
There was a problem hiding this comment.
Pull request overview
This PR merges 31 commits from the platformsh/legacy-cli 5.x branch and ports upstream variable app-scope tests to integration-tests/. It includes bug fixes for CurlCli stdout handling during 401 retries and data race issues in api_curl_test, plus additions to the mockapi Variable struct.
Changes:
- Added
ApplicationScopefield to mockapi Variable struct and ported upstream app-scope tests - Fixed CurlCli stdout double-write bug in 401 retry path and data race in api_curl_test
- Updated legacy-cli configuration files to reflect Upsun branding and removed legacy test file
Reviewed changes
Copilot reviewed 22 out of 24 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| pkg/mockapi/model.go | Added ApplicationScope field to Variable struct |
| legacy/tests/Local/LocalProjectTest.php | Removed legacy project test file |
| legacy/src/Service/VariableCommandUtil.php | Added application_scope field with validation for variable commands |
| legacy/src/Service/Relationships.php | Added isOracleDB method for database type checking |
| legacy/src/Service/CurlCli.php | Fixed stdout buffering to prevent double-write during 401 retries |
| legacy/src/Service/ActivityMonitor.php | Fixed result name reference to use RESULT_NAMES constant |
| legacy/src/Service/ActivityLoader.php | Added environment.alert activity type |
| legacy/src/Command/Organization/OrganizationCreateCommand.php | Added avoidQuestion flag to organization type field |
| legacy/src/Command/Organization/Billing/OrganizationProfileCommand.php | Removed security_contact from writable properties |
| legacy/src/Command/Metrics/MetricsCommandBase.php | Added blank line formatting |
| legacy/src/Command/Environment/EnvironmentPushCommand.php | Added deploy-strategy option with validation |
| legacy/src/Command/Db/DbDumpCommand.php | Added --no-tablespaces flag for non-Oracle MySQL databases |
| legacy/src/Command/Autoscaling/AutoscalingSettingsSetCommand.php | Extended autoscaling support to services with capability checks |
| legacy/src/Command/Autoscaling/AutoscalingSettingsGetCommand.php | Added filtering for autoscaling settings display |
| legacy/src/Command/Activity/ActivityListCommand.php | Added example for including activity type in output |
| legacy/config.yaml | Updated branding from Platform.sh to Upsun with new URLs |
| legacy/config-defaults.yaml | Updated logo to SVG format and added rolling deployment error message |
| legacy/README.md | Updated references from Platform.sh to Upsun |
| legacy/Makefile | Removed Go test targets |
| legacy/CONTRIBUTING.md | Updated repository references and formatting |
| integration-tests/variable_write_test.go | Added comprehensive tests for variable app-scope functionality |
| integration-tests/api_curl_test.go | Fixed data race with tokenState struct and mutex protection |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
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.
Summary
tokenStatestructApplicationScopefield to mockapiVariablestructTest plan
make lint— 0 issuesmake -C legacy lint— PHP CS Fixer and PHPStan cleanmake test— all tests pass with-race🤖 Generated with Claude Code