Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Mar 18, 2024. It is now read-only.
This repository was archived by the owner on Mar 18, 2024. It is now read-only.

orchestrator:prepare builds package versions that are not used in the process of scratch orgs creation #1222

Description

@michallachowski

Describe the bug
When pool of scratch orgs is created, and the pool config file contains "installAll": false, I expect only managed packages to be installed. It works fine, but at the beginning of prepare job all artifacts are downloaded from Artifact Store. If there's no script to fetch artifacts, then all of them are being built by quickbuild command. Both actions (download or quickbuild) are not needed in this scenario, as nothing happens with retrieved / created packages.

To Reproduce

  • Initial setup
    • customPackage (custom, unlocked package) depends on managed package, e.g. Salesforce CPQ
    • pool configuration uses "installAll": false parameter
  • Execute orchestrator:prepare command
  • Observe that new version of customPackage is created prior to scratch org creation
  • Observe that only Salesforce CPQ has been installed to the scratch org

Expected behavior
If there's no need to install unlocked packages, they should not be downloaded, nor created.

Platform Details

  • Version: 20.20.0
  • Salesforce CLI(sfdx cli) Version: sfdx-cli/7.186.2 linux-x64 node-v18.12.0

Metadata

Metadata

Labels

enhancementenhancement to existing feature

Type

No type

Fields

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