You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 18, 2024. It is now read-only.
When using sfp apextests:trigger to run tests in a namespaced org, the test retry logic fails due to apex class full names being provided by upstream @salesforce/apex-node library (forcedotcom/salesforcedx-apex#296)
Waiting for an upstream fix in 4.x is problematic, so opening issue to track work with a fix within dx@scale rather than waiting for upstream fix.
To Reproduce
Steps to reproduce the behavior:
Create a scratch org with a namespace
Create unit tests that will hit a timeout or lock exception (I'm replicating reliably on our ISV product, but could also replicate with contention on org custom settings I suspect)
Run unit tests
apextests:trigger will run async then report failures and queue failed classes for a retry
class names are invalid (NS.NS__Foo instead of NS.Foo)
Expected behavior
A clear and concise description of what you expected to happen.
Should be able to retry test failures in namespaced test classes
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
From discussion with Azlam, preference is to fix now rather than waiting for 4.x upstream change due to complications introduced by Salesforce in the 4.x packages
The text was updated successfully, but these errors were encountered:
* fix(namespace): fix namespaces on reported class names
Related to: #1362
* fix(apex-test): retry on Internal SF Error
* fix(apex-test): update decision record
* fix(namespace): fix namespaces on reported class names
Related to: #1362
* fix(apex-test): retry on Internal SF Error
* fix(apex-test): update decision record
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Describe the bug
When using sfp apextests:trigger to run tests in a namespaced org, the test retry logic fails due to apex class full names being provided by upstream @salesforce/apex-node library (forcedotcom/salesforcedx-apex#296)
Waiting for an upstream fix in 4.x is problematic, so opening issue to track work with a fix within dx@scale rather than waiting for upstream fix.
To Reproduce
Steps to reproduce the behavior:
NS.NS__Foo
instead ofNS.Foo
)Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
namespace__classname
. They should benamespace.classname
forcedotcom/salesforcedx-apex#296 and Fixing Namespace for Async Tests forcedotcom/salesforcedx-apex#297The text was updated successfully, but these errors were encountered: