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.

Bad namespaced class names from apex-node break test retry logic #1362

Closed

Description

@JonnyPower

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:

  1. Create a scratch org with a namespace
  2. 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)
  3. Run unit tests
  4. apextests:trigger will run async then report failures and queue failed classes for a retry
  5. class names are invalid (NS.NS__Foo instead of NS.Foo)

Expected behavior
A clear and concise description of what you expected to happen.

  1. Should be able to retry test failures in namespaced test classes

Screenshots
If applicable, add screenshots to help explain your problem.

image

Additional context
Add any other context about the problem here.

Activity

  1. added
    analysis
    on Jul 19, 2023
  2. JonnyPower commented on Jul 19, 2023

    @JonnyPower
    ContributorAuthor

    @azlam-abdulsalam can you assign to me? created this for branch issue reference

  3. added
    bug
    and removed
    analysis
    on Jul 19, 2023
  4. azlam-abdulsalam commented on Jul 19, 2023

    @azlam-abdulsalam
    Contributor

    Thanks for the detailed bug report @JonnyPower

  5. added this to the July 23 milestone on Jul 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions