SFDO-Tooling / CumulusCI

Python framework for building portable automation for Salesforce projects
http://cumulusci.readthedocs.io
BSD 3-Clause "New" or "Revised" License
359 stars 242 forks source link

cci task run get_installed_packages/uninstall_managed do not see 2GP beta #3796

Open coolbulevar opened 4 months ago

coolbulevar commented 4 months ago

Describe the bug

I have 2GP managed package. It is installed on qa org using cci flow run install_beta --org qa

After that I would like to get list of installed package but got empty response

$ cci task run get_installed_packages --org qa
[06/03/24 16:08:20] Getting org info from Salesforce CLI for test-bhmzrfuky0jm@example.com                                                                                       
[06/03/24 16:08:29] Beginning task: GetInstalledPackages                                                                                                                         
                    As user: test-bhmzrfuky0jm@example.com                                                                                                                       
                    In org: 00DF3000000HexX                                                                                                                                      

                    Pending                                                                                                                                                      
[06/03/24 16:08:31] [Done]                                                                                                                                                       
[06/03/24 16:08:34] GetInstalledPackages returned                                                                                                                                
                     {}    

Running uninstall_managed ends successfully, but package is not uninstalled

                    ------------------------------------------------------------                                                                                                 
                    Running task: uninstall_managed                                                                                                                              
                    ------------------------------------------------------------                                                                                                 

                    Options:                                                                                                                                                     
                      namespace: <obfuscated>                                                                                                                                          
                      purge_on_delete: True                                                                                                                                      
[06/03/24 16:10:09] Beginning task: UninstallPackage                                                                                                                             

                    Pending                                                                                                                                                      
[06/03/24 16:10:12] [Done]                                                                                                                                                       
[06/03/24 16:10:13] [Success]: Succeeded                                                                                                                                         
                    Completed flow 'uninstall_managed' on org qa successfully!                                                                                                   
Ran uninstall_managed in 20s

On the other hand, if I run sf command it shows proper information

$ sf package installed list -o qa --json
{
  "status": 0,
  "result": [
    {
      "Id": "0A3F3000000<>",
      "SubscriberPackageId": "033IU0000<>",
      "SubscriberPackageName": "<obfuscated>",
      "SubscriberPackageNamespace": "<obfuscated>",
      "SubscriberPackageVersionId": "04tIU000000<>",
      "SubscriberPackageVersionName": "Release",
      "SubscriberPackageVersionNumber": "0.1.0.69"
    }
  ],
  "warnings": []
}

Reproduction steps

  1. Upload beta version cci flow run release_2gp_beta --org dev
  2. Install beta on qa org cci flow run install_beta --org qa
  3. Try to install cci flow run uninstall_managed --org qa Expected Result: Beta package is not present on org Actual Result: Beta package is present on org

Your CumulusCI and Python versions

$ cci version
CumulusCI version: 3.88.0 (/home/pdesc/.local/bin/cci)
Python version: 3.8.10 (/home/pdesc/.local/pipx/venvs/cumulusci/bin/python)

You have the latest version of CumulusCI ⛅

See the latest CumulusCI Release Notes: https://github.com/SFDO-Tooling/CumulusCI/releases/tag/v3.88.0

Operating System

Ubuntu 20.04

Windows environment

No response

CumulusCI installation method

pipx

Error Gist

No response

Additional information

No response