Skip to content

chore(legacy): subtree merge legacy-cli 5.x updates#19

Open
pjcdawkins wants to merge 2 commits intomainfrom
chore/legacy-subtree-update
Open

chore(legacy): subtree merge legacy-cli 5.x updates#19
pjcdawkins wants to merge 2 commits intomainfrom
chore/legacy-subtree-update

Conversation

@pjcdawkins
Copy link
Contributor

Summary

  • Merge 31 commits from platformsh/legacy-cli 5.x (adb14ee..08be158)
  • Port upstream variable app-scope tests to integration-tests/
  • Fix CurlCli stdout double-write bug in 401 retry path
  • Fix data race in api_curl_test with tokenState struct
  • Add ApplicationScope field to mockapi Variable struct

Test plan

  • make lint — 0 issues
  • make -C legacy lint — PHP CS Fixer and PHPStan clean
  • make test — all tests pass with -race

🤖 Generated with Claude Code

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>
@pjcdawkins pjcdawkins force-pushed the chore/legacy-subtree-update branch from 444c3f3 to 247c263 Compare February 5, 2026 22:46
@pjcdawkins pjcdawkins requested a review from Copilot February 5, 2026 22:47
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 ApplicationScope field 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants