Skip to content

Handle some flaky ProjectAnalysisTests cases#18200

Merged
T-Gro merged 3 commits into
dotnet:mainfrom
majocha:Fix-flaky-test
Jan 6, 2025
Merged

Handle some flaky ProjectAnalysisTests cases#18200
T-Gro merged 3 commits into
dotnet:mainfrom
majocha:Fix-flaky-test

Conversation

@majocha

@majocha majocha commented Jan 3, 2025

Copy link
Copy Markdown
Contributor

Description

Test cases utilizing Project25 do not like to run concurrently with each other. Probably because of the XmlProvider here:

module internal Project25 =
let fileName1 = Path.ChangeExtension(getTemporaryFileName (), ".fs")
let base2 = getTemporaryFileName ()
let dllName = Path.ChangeExtension(base2, ".dll")
let projFileName = Path.ChangeExtension(base2, ".fsproj")
let fileSource1 = """
module TypeProviderTests
open FSharp.Data
type Project = XmlProvider<"<root><value>1</value><value>3</value></root>">

I verified locally by running some iterations that marking the affected test cases with RunTestCasesInSequence resolves the problem.

@majocha majocha requested a review from a team as a code owner January 3, 2025 13:40
@github-actions

github-actions Bot commented Jan 3, 2025

Copy link
Copy Markdown
Contributor

✅ No release notes required

@majocha majocha closed this Jan 3, 2025
@majocha majocha reopened this Jan 3, 2025
@T-Gro T-Gro enabled auto-merge (squash) January 6, 2025 10:30
@psfinaki

psfinaki commented Jan 6, 2025

Copy link
Copy Markdown
Contributor

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 2 pipeline(s).

@psfinaki

psfinaki commented Jan 6, 2025

Copy link
Copy Markdown
Contributor

This PR is particularly unlucky...

@majocha

majocha commented Jan 6, 2025

Copy link
Copy Markdown
Contributor Author

Ah, this particular failure is unrelated but a genuine bug. I'll sort it out.

@T-Gro T-Gro merged commit ded0349 into dotnet:main Jan 6, 2025
@psfinaki

psfinaki commented Jan 7, 2025

Copy link
Copy Markdown
Contributor

Thanks @majocha for your continuous interest 😎

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants