Flaky Project Model Server Test
See original GitHub issueSteps to reproduce
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:
- Created 7 years ago
- Comments:6 (6 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Fixed by dotnet/cli#3142
How can I tell if project model server tests are run in parallel?