Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flaky Test Explorer test in CI #1260

Open
award999 opened this issue Dec 11, 2024 · 2 comments
Open

Flaky Test Explorer test in CI #1260

award999 opened this issue Dec 11, 2024 · 2 comments
Assignees
Labels
testing infrastructure Issues related to CI jobs or extension test cases

Comments

@award999
Copy link
Contributor

Seen this fail in CI and locally

  1 failing
  1) Test Explorer Suite
       Standard
         Run Tests (Parallel)
           XCTests (Run Tests (Parallel))
             Runs failing test:

      AssertionError [ERR_ASSERTION]: Expected values to be loosely deep-equal:

{
  errored: [],
  failed: [
    {
      issues: [
        'Failed'
      ],
      test: 'PackageTests.FailingXCTestSuite/testFailing'
    },
    {
      issues: [],
      test: 'PackageTests.FailingXCTestSuite'
    }
  ],
  passed: [],
  skipped: [],
  unknown: 0
}

should loosely deep-equal

{
  errored: [],
  failed: [
    {
      issues: [
        'failed - oh no'
      ],
      test: 'PackageTests.FailingXCTestSuite/testFailing'
    },
    {
      issues: [],
      test: 'PackageTests.FailingXCTestSuite'
    }
  ],
  passed: [],
  skipped: [],
  unknown: 0
}
      + expected - actual

         "errored": []
         "failed": [
           {
             "issues": [
      -        "Failed"
      +        "failed - oh no"
             ]
             "test": "PackageTests.FailingXCTestSuite/testFailing"
           }
           {
      
      at assertTestResults (test/integration-tests/testexplorer/utilities.ts:137:12)
      at Context.<anonymous> (test/integration-tests/testexplorer/TestExplorerIntegration.test.ts:702:42)

1 test failed.
@plemarquand
Copy link
Contributor

@award999 can you reproduce this consistently locally? I've never been able to, but I have seen it in CI. If you can, what toolchain are you using?

@award999
Copy link
Contributor Author

Definitely not consistent :/

@award999 award999 moved this from Unscreened to Todo in Swift Extension for Visual Studio Code Dec 11, 2024
@award999 award999 moved this from Todo to In Progress in Swift Extension for Visual Studio Code Dec 20, 2024
award999 added a commit to award999/vscode-swift that referenced this issue Dec 20, 2024
* Seeing if this resolves timing issues

Issue: swiftlang#1260
award999 added a commit to award999/vscode-swift that referenced this issue Dec 20, 2024
* Seeing if this resolves timing issues

Issue: swiftlang#1260
award999 added a commit to award999/vscode-swift that referenced this issue Dec 20, 2024
* Seeing if this resolves timing issues

Issue: swiftlang#1260
award999 added a commit that referenced this issue Dec 20, 2024
* Seeing if this resolves timing issues

Issue: #1260
@award999 award999 assigned award999 and unassigned plemarquand Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
testing infrastructure Issues related to CI jobs or extension test cases
Projects
Development

No branches or pull requests

2 participants