If I attempt an api:environments:code-switch task and set the branch to a tag name without the tags/ prefix the resulting notification completes successfully and the Acquia Cloud UI claims the environment is using the tag but it has not actually been switched.
To Reproduce
Steps to reproduce the behavior:
Push a new tag (e.g. 2023-06-28.1639) to an Acquia remote.
Execute the api:environments:code-switch task: acli api:environments:code-switch myapp.dev 2023-06-28.1639.
Observe notification ID and confirm notification completes (via API and Acquia Cloud UI).
Confirm that application code has not actually been switched (in my case this was based on config changes associated with the tag but maybe there is a more direct way to confirm this?).
Expected behavior
The code for the target environment is switched to the provided tag OR the notification fails with some useful indication about why.
And here is what the Acquia Cloud UI showed after this series of commands:
Additional context
Acquia CLI version: 2.12.3
Running the same command with the tags/ prefix (acli api:environments:code-switch "$ACQUIA_SITE_GROUP".prod tags/"$RELEASE_TAG") works as expected -- the notification succeeded, the Acquia Cloud UI indicated the tag is switched, and the code was in fact switched to the tag.
Describe the bug
If I attempt an
api:environments:code-switch
task and set thebranch
to a tag name without thetags/
prefix the resulting notification completes successfully and the Acquia Cloud UI claims the environment is using the tag but it has not actually been switched.To Reproduce
Steps to reproduce the behavior:
2023-06-28.1639
) to an Acquia remote.api:environments:code-switch
task:acli api:environments:code-switch myapp.dev 2023-06-28.1639
.Expected behavior
The code for the target environment is switched to the provided tag OR the notification fails with some useful indication about why.
Screenshots
Here is an example of the issue with a real tag:
And here is what the Acquia Cloud UI showed after this series of commands:
Additional context
Acquia CLI version: 2.12.3
Running the same command with the
tags/
prefix (acli api:environments:code-switch "$ACQUIA_SITE_GROUP".prod tags/"$RELEASE_TAG"
) works as expected -- the notification succeeded, the Acquia Cloud UI indicated the tag is switched, and the code was in fact switched to the tag.