SFDO-Tooling / CumulusCI

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

2GP flows fail in the local environment to test: `ci_feature_2gp` or `qa_org_2gp` with error: Could not find package version id #3542

Open v15h9 opened 1 year ago

v15h9 commented 1 year ago

Describe the bug

During our CI/CD process for the Test package creation process, we write the package version id in the description of the status associated with the github.sha. And thus the testing flows are then able to get this package id for installation from the github.sha.

However, when I run the same testing flow for my QA in the local environment, the code uses the commit id to find the status vs the sha and thus is not able to find the package id for testing

Reproduction steps

  1. Create a Private Repo with the cumulus setup using cumulus-actions
  2. Create a PR such that Feature 2GP workflow in Github or any CI/CD is kicked off (https://github.com/cumulus-actions/standard-workflows/blob/main/.github/workflows/feature-2gp.yml)
  3. After the run is complete, checkout the PR in your local
  4. Run ci_feature_2gp or qa_org_2gp

Your CumulusCI and Python versions

CumulusCI : 3.73.0

Operating System

Mac OS

Windows environment

No response

CumulusCI installation method

pipx

Error Gist

https://gist.github.com/v15h9/f1ff75dcac5bb595fadcc1e52a708601

Additional information

No response

davidmreed commented 1 year ago

@v15h9 When you say you After the run is complete, checkout the PR in your local, can you share the actual Git commands you use to do this? CumulusCI is somewhat sensitive to the exact local checkout environment, and I suspect that's the issue here.