devops-center-feedback icon indicating copy to clipboard operation
devops-center-feedback copied to clipboard

Allow Async test execution

Open SporcleHans opened this issue 3 years ago • 5 comments

My org has a lot of tests. Usually it takes 3 and a half hours or longer for all tests in my org to run. When attempting to promote a work item bundle eventually it will say that the promotion has failed due to connection timeout ( MetadataTransferError: Metadata API request failed: The client has timed out. ), even though the tests for the deployment are still running in production. If the tests pass in production, the work item bundle is deployed into production, but DevOps Center still believes the work item bundle failed the promotion.

To Reproduce Steps to reproduce the behavior:

  1. Have an org with a lot of tests that take an extended time to run them all
  2. Attempt to promote a work item or work bundle with all tests run

Expected behavior DevOps Center should not time out with tests run.

SporcleHans avatar Aug 19 '22 16:08 SporcleHans

If it's possible to know if this may be fixed in a later version that would be helpful. It would be helpful in deciding whether to use devops center as our main deployment strategy, or if we need to hold off for now.

SporcleHans avatar Sep 12 '22 21:09 SporcleHans

Hi @SporcleHans, My apologies for the late response and thank you for opening this issue. DevOps Center has a 2 hour timeout for a deployment. I will open a new user story for our team to address this in a future release. As a workaround (if it's acceptable) might be to consider running a subset of tests.

GilsonCanario avatar Sep 13 '22 20:09 GilsonCanario

This issue has been linked to a new work item: W-11751285

git2gus[bot] avatar Sep 13 '22 20:09 git2gus[bot]

Hi @SporcleHans, My apologies for the late response and thank you for opening this issue. DevOps Center has a 2 hour timeout for a deployment. I will open a new user story for our team to address this in a future release. As a workaround (if it's acceptable) might be to consider running a subset of tests.

Thanks I appreciate it. I've been using that workaround so far, but it is helpful to run all tests when making edits to things like triggers.

SporcleHans avatar Sep 14 '22 21:09 SporcleHans

Hi team, we are still facing this issue in our org, and it failed to merge the branch even if deployment is successful. We also have same issue test class run for 3 and more hours, can you please let me know when will it get fixed?

The deployment of the work items into the next stage failed. MetadataTransferError: Metadata API request failed: The client has timed out.

NiteshJain-Moodys avatar Oct 31 '23 11:10 NiteshJain-Moodys