Describe the bug
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 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.
I believe the task needs a new input parameter to include unpackaged metadata.
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_version task
Your CumulusCI and Python versions
CumulusCI version: 4.10.0
Python version: 3.12.9
Operating System
macOS Tahoe 26.5
Windows environment
No response
CumulusCI installation method
pipx
Error Gist
No response
Additional information
No response
Describe the bug
Describe the bug
There are metadata present in my
unpackaged/post/setupdirectory that Apex tests in my package depend on. When running thecreate_package_versiontask as part of therelease_2gp_betaflow, it appears that the metadata inunpackaged/post/setupare not present because these Apex tests fail.I do have the unmanaged metadata setup in the
sfdx-project.jsonin the primary package directory entry underunmanagedMetadata.I hadn't seen this behavior previously just using the
sfdxcommands, so I'm wondering if or howccisupports making unmanaged metadata accessible for Apex test executions during package version creation, as described by the SFDX Developer Guide here.I believe the task needs a new input parameter to include unpackaged metadata.
Reproduction steps
unpackaged/post/setup, e.g. a permission setcreate_package_versiontaskYour CumulusCI and Python versions
CumulusCI version: 4.10.0
Python version: 3.12.9
Operating System
macOS Tahoe 26.5
Windows environment
No response
CumulusCI installation method
pipx
Error Gist
No response
Additional information
No response