CumulusCI
CumulusCI copied to clipboard
Unmanaged Metadata not deploying during 2GP Package Create
Describe the bug
There are metadata present in my unpackaged/post/setup directory that Apex tests in my package depend on. When running the create_package_version task as part of the release_2gp_beta flow, it appears that the metadata in unpackaged/post/setup are not present because these Apex tests fail.
I do have the unmanaged metadata setup in the sfdx-project.json as both a separate packageDirectory entry, and in the primary package directory entry under unmanagedMetadata.
I hadn't seen this behavior previously just using the sfdx commands, so I'm wondering if or how cci supports making unmanaged metadata accessible for Apex test executions during package version creation, as described by the SFDX Developer Guide here.
Reproduction steps
- Create a project with Apex unit tests
- Add metadata that is referenced by the Apex tests to
unpackaged/post/setup, e.g. a permission set - Run the
create_package_versiontask
Your CumulusCI and Python versions
CumulusCI version: 3.74.0 Python version: 3.10.10
Operating System
macOS Ventura 13.1
Windows environment
No response
CumulusCI installation method
pipx
Error Gist
No response
Additional information
No response
We need to add this support. Tracking as W-12705705.
Are you deploying a managed or unlocked 2GP ?
This is for unlocked 2gp
@davidmreed Is there any progress on this? It is blocking our adoption of cumulusCI