Skip to content

Update Cloud Platform API spec - #2051

Open
PrakharJainS3 wants to merge 1 commit into
acquia:mainfrom
PrakharJainS3:automated/update-cloud-api-spec
Open

PrakharJainS3 wants to merge 1 commit into
acquia:mainfrom
PrakharJainS3:automated/update-cloud-api-spec

Conversation

@PrakharJainS3

Copy link
Copy Markdown
Contributor

Motivation
Keep the local copy of the Cloud Platform API spec (assets/acquia-spec.json) in sync with upstream cx-api-spec, per CONTRIBUTING.md. The spec had not been refreshed since cx-api-spec commit 54fba484c9feb5d0ed8677801be31e14d2e3278b.

Proposed changes

  • Regenerated assets/acquia-spec.json and assets/acquia-spec.version via composer update-cloud-api-spec (cx-api-spec 54fba48 -> cc4a637).
  • Updated environments:trusted-proxies test to follow upstream's rename to environments:find-trusted-proxies and its new response shape (cidrs_ipv4 / cidrs_ipv6 / associated_cdns replacing is_enabled / addresses).
  • No manual end-user action required; api:environments:trusted-proxies is renamed to api:environments:find-trusted-proxies as a result of the upstream spec change.

Alternatives considered
N/A — this is a routine spec sync per the documented process.

Testing steps

  1. Follow the contribution guide to set up your development environment or download a pre-built acli.phar for this PR.
  2. If running from source, clear the kernel cache to pick up new and changed commands: ./bin/acli ckc
  3. Check for regressions: composer test (lint, phpcs, phpstan, full PHPUnit suite) passes locally.
  4. Check new functionality: ./bin/acli api:environments:find-trusted-proxies --help reflects the renamed command and updated response fields.

🤖 Generated with Claude Code

Regenerate assets/acquia-spec.json via `composer update-cloud-api-spec`
(cx-api-spec 54fba48 -> cc4a637). Update the trusted-proxies test to
match the renamed command (environments:trusted-proxies ->
environments:find-trusted-proxies) and the new response shape
(cidrs_ipv4/cidrs_ipv6/associated_cdns replacing is_enabled/addresses).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings October 8, 2026 10:13
@github-actions

github-actions Bot commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

Try the dev build for this PR: https://acquia-cli.s3.amazonaws.com/build/pr/2051/acli.phar

curl -OL https://acquia-cli.s3.amazonaws.com/build/pr/2051/acli.phar
chmod +x acli.phar

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🔵 Needs a closer look

The full specification diff was not supplied, so its generated-command changes still require verification.

0 open findings

What changed in this PR

Tracks the upstream Cloud Platform API spec refresh and aligns the generated-command regression test.

Changes:

  • Advances the recorded upstream revision to cc4a637.
  • Updates the trusted-proxies test for the renamed command and new response fields.
File Description
tests/​phpunit/​src/​Commands/​Api/​ApiCommandTest.php Updates the command name, mock response, and assertions.
assets/​acquia-spec.version Records the refreshed upstream revision.

🧠 Review effort: Balanced


Give feedback about Copilot approvals in this survey to enter a drawing for a $150 gift card.

@codecov

codecov Bot commented Oct 8, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.77%. Comparing base (fb20a25) to head (e44e660).

Additional details and impacted files
@@            Coverage Diff            @@
##               main    #2051   +/-   ##
=========================================
  Coverage     92.77%   92.77%           
  Complexity     2037     2037           
=========================================
  Files           126      126           
  Lines          7345     7345           
=========================================
  Hits           6814     6814           
  Misses          531      531           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants