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

Improve directory attribute refactor - Break up PR #18161 - Part 1 #18195

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

KevinRansom
Copy link
Member

This breaks up the directory attribute refactor, which is enormous.

This inital PR contains the test framework code changes.
And 1 quite large folder of test cases that use baselines a fair amount.

/cc @T-Gro

@KevinRansom KevinRansom requested a review from a team as a code owner January 3, 2025 00:02
Copy link
Contributor

github-actions bot commented Jan 3, 2025

✅ No release notes required

@KevinRansom KevinRansom force-pushed the ImproveDirectoryAttribute.Refactor branch from e0b845d to e2b0db7 Compare January 3, 2025 00:06
try
Directory.Delete(initialProject.ProjectDir, true)
with _ -> ()
() //try Directory.Delete(initialProject.ProjectDir, true) with _ -> ()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are we not deleting?
Do we need a methodcall which is a conditional no-op?

@@ -19,7 +19,7 @@ let tempDirectoryOfThisTestRun =

let cleanUpTemporaryDirectoryOfThisTestRun () =
if tempDirectoryOfThisTestRun.IsValueCreated then
try tempDirectoryOfThisTestRun.Value.Delete(true) with _ -> ()
() //try tempDirectoryOfThisTestRun.Value.Delete(true) with _ -> ()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the same here

@@ -244,7 +244,7 @@ An error occurred getting netcoreapp references: %A{e}
raise (Exception (message, e))
finally
if cleanUp then
try Directory.Delete(projectDirectory, recursive=true) with | _ -> ()
() //try Directory.Delete(projectDirectory, recursive=true) with | _ -> ()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the same here

Copy link
Member

@T-Gro T-Gro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please post an assurance that the number of tests executed is the same or higher?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: New
Development

Successfully merging this pull request may close these issues.

2 participants