CumulusCI icon indicating copy to clipboard operation
CumulusCI copied to clipboard

Unmanaged Metadata not deploying during 2GP Package Create

Open aesanch2 opened this issue 2 years ago • 6 comments

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

  1. Create a project with Apex unit tests
  2. Add metadata that is referenced by the Apex tests to unpackaged/post/setup, e.g. a permission set
  3. Run the create_package_version task

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

aesanch2 avatar Mar 16 '23 06:03 aesanch2

We need to add this support. Tracking as W-12705705.

davidmreed avatar Mar 16 '23 21:03 davidmreed

Are you deploying a managed or unlocked 2GP ?

RupertBarrow avatar Mar 18 '23 15:03 RupertBarrow

This is for unlocked 2gp

yippie avatar Apr 27 '23 15:04 yippie

@davidmreed Is there any progress on this? It is blocking our adoption of cumulusCI

yippie avatar May 01 '23 13:05 yippie