Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
coolbulevar opened this issue Jun 3, 2024 · 0 comments
Labels

Comments

@coolbulevar
Copy link

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

@coolbulevar coolbulevar added the bug label Jun 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant