+
Skip to content

sfp prepare: Package install fails when deployment fails due to running sharing recalculation #184

@dschibster

Description

@dschibster

Describe the bug
When I deploy a large package containing data model with sharing model, when I deploy a package thereafter that also contains objects with sharing, the following error is thrown in the deployment:

The sharing calculation you requested can't be processed right now, because it interferes with another operation already in progress. Please try again later.

This however lets sfp recognize this as a deployment error and directly quits:

Error: Unable to deploy due to unsatisfactory code coverage and/or test failures

A retry of the installation that ran would very likely result in a success.

To Reproduce

This is of course kind of non-deterministic, because it's not completely transparent when sharing calculations are done and when they are not, however I was pretty successful in placing two packages one after the other containing data model and sharing adjustments. Both of the packages simply defined objects + their sharing model. No Sharing Rules included in the packages. Installing the second package then led to these errors.

Expected behavior

sfp should recognize this as a timing issue and retry the installation of the package.

Workaround

I'm trying to work around the issue by placing the object definitions changing the sharing model a little later in my package hierarchy. After the deployments of the other packages is done the recalc should be done running and the provisioning should succeed again.

Screenshots

Image Image
Deploying to test-mvrhza0fw8dz@example.com with id:0Af9K00000m3SNWSA2
Status: Pending Progress: 0/0
Status: Pending Progress: 0/0
Status: Pending Progress: 0/0
Status: InProgress Progress: 0/467
Status: InProgress Progress: 0/467
Status: InProgress Progress: 0/467
Status: InProgress Progress: 0/467
Status: InProgress Progress: 0/467
Status: InProgress Progress: 0/467
Status: InProgress Progress: 0/467
Status: InProgress Progress: 0/467
Status: InProgress Progress: 0/467
Status: InProgress Progress: 0/467
Status: InProgress Progress: 34/467
Status: InProgress Progress: 34/467
Status: InProgress Progress: 34/467
Status: InProgress Progress: 34/467
Status: InProgress Progress: 34/467
Status: InProgress Progress: 34/467
Status: InProgress Progress: 34/467
Status: InProgress Progress: 34/467
Status: InProgress Progress: 34/467
Status: InProgress Progress: 335/467
Status: InProgress Progress: 335/467
Status: InProgress Progress: 335/467
Status: InProgress Progress: 440/467
Status: InProgress Progress: 466/467
Status: InProgress Progress: 466/467
Status: InProgress Progress: 466/467
Status: InProgress Progress: 467/467
Failed to deploy after 00:00:33.518
Gathering Final Deployment Status
Error: Unable to deploy due to unsatisfactory code coverage and/or test failures

Platform Details (please complete the following information):
Latest release, Ubuntu VM

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载