question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Flaky Project Model Server Test

See original GitHub issue

Steps to reproduce

http://dotnet-ci.cloudapp.net/job/dotnet_cli/job/rel_1.0.0/job/debug_debian8.2_x64_prtest/664/consoleFull

Expected behavior

Test passes or fails reliably

Actual behavior

Test occasionally fails with A unexpected exception occurred:

/mnt/resource/j/workspace/dotnet_cli/rel_1.0.0/debug_debian8.2_x64_prtest/test/dotnet-projectmodel-server.Tests/bin/Debug/netcoreapp1.0/RecoverFromGlobalError/EmptyConsoleApp/project.json(12,1): Error: Microsoft.DotNet.ProjectModel.FileFormatException: Additional text encountered after finished reading JSON content: }. Path '', line 12, position 1. ---> Newtonsoft.Json.JsonReaderException: Additional text encountered after finished reading JSON content: }. Path '', line 12, position 1.
   at Newtonsoft.Json.JsonTextReader.ReadInternal()
   at Newtonsoft.Json.JsonTextReader.Read()
   at Microsoft.DotNet.ProjectModel.ProjectReader.ReadProject(Stream stream, String projectName, String projectPath, ProjectReaderSettings settings)
   at Microsoft.DotNet.ProjectModel.ProjectReader.TryGetProject(String path, Project& project, ProjectReaderSettings settings)
   --- End of inner exception stack trace ---
   at Microsoft.DotNet.ProjectModel.ProjectReader.TryGetProject(String path, Project& project, ProjectReaderSettings settings)
   at Microsoft.DotNet.ProjectModel.Workspace.AddProjectEntry(String projectDirectory, FileModelEntry`1 currentEntry)
   at Microsoft.DotNet.ProjectModel.Workspace.<GetProjectCore>b__11_0(String key)
   at System.Collections.Concurrent.ConcurrentDictionary`2.AddOrUpdate(TKey key, Func`2 addValueFactory, Func`3 updateValueFactory)
   at Microsoft.DotNet.ProjectModel.Workspace.GetProjectCore(String projectDirectory)
   at Microsoft.DotNet.ProjectModel.Workspace.AddProjectContextEntry(String projectDirectory, ProjectContextCollection currentEntry)
   at Microsoft.DotNet.ProjectModel.Workspace.<GetProjectContextCollection>b__8_0(String key)
   at System.Collections.Concurrent.ConcurrentDictionary`2.AddOrUpdate(TKey key, Func`2 addValueFactory, Func`3 updateValueFactory)
   at Microsoft.DotNet.ProjectModel.Workspace.GetProjectContextCollection(String projectPath)
   at Microsoft.DotNet.ProjectModel.Server.ProjectSnapshot.Create(String projectDirectory, String configuration, DesignTimeWorkspace workspaceContext, IReadOnlyList`1 projectSearchPaths)
   at Microsoft.DotNet.ProjectModel.Server.ProjectManager.UpdateProject()
   at Microsoft.DotNet.ProjectModel.Server.ProjectManager.DoProcessLoop()
   at Microsoft.DotNet.ProjectModel.Server.ProjectManager.ProcessLoop()

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
TheRealPiotrPcommented, May 26, 2016

Fixed by dotnet/cli#3142

0reactions
troydaicommented, May 11, 2016

How can I tell if project model server tests are run in parallel?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Flaky tests | GitLab
Flaky tests. What's a flaky test? It's a test that sometimes fails, but if you retry it enough times, it passes, eventually.
Read more >
What are Flaky Tests? | TeamCity CI/CD Guide
Flaky tests are tests that return new results, despite there being no changes to code. Find out why flaky tests matter and how...
Read more >
How to Fix Flaky Tests - Semaphore CI
A test that intermittently fails for no apparent reason — or works in your local machine and fails with continuous integration — is...
Read more >
A machine learning solution for detecting and mitigating ...
As you can see, finding flaky tests in a huge repository with more than 100 projects is not an easy task. And the...
Read more >
How to reduce flaky test failures
Flaky tests, also known as flappers, fail to produce accurate and consistent results. These tests may be unreliable because of newly-written ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found