Skip to content

Unpackaged Metadata not included in Package Creation #3989

@yippie

Description

@yippie

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

  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: 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions