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

Remove tools-local folder from repo root #36519

Closed
ViktorHofer opened this issue May 15, 2020 · 10 comments
Closed

Remove tools-local folder from repo root #36519

ViktorHofer opened this issue May 15, 2020 · 10 comments

Comments

@ViktorHofer
Copy link
Member

ViktorHofer commented May 15, 2020

As I was just working in tools-local on the tasks composition I was wondering if the "tools-local" folder needs to live under the repo root. I propose to move its contents into the "src" folder:

src
- libraries
- installer
- coreclr
- mono
- tasks (local msbuild tasks)
- tools (global and repo dotnet tools)
- scripts (we should move src/libraries/FindResourceDuplicates.ps1 and src/libraries/GenerateLibrariesSln.ps1 there as well)

cc @safern @danmosemsft

@Dotnet-GitSync-Bot Dotnet-GitSync-Bot added area-Infrastructure-libraries untriaged New issue has not been triaged by the area owner labels May 15, 2020
@ghost
Copy link

ghost commented May 15, 2020

Tagging subscribers to this area: @safern, @ViktorHofer
Notify danmosemsft if you want to be subscribed.

@ViktorHofer ViktorHofer changed the title Remove tools-local from repo root Remove tools-local folder from repo root May 15, 2020
@ViktorHofer ViktorHofer removed area-Infrastructure-libraries untriaged New issue has not been triaged by the area owner labels May 15, 2020
@ghost
Copy link

ghost commented May 15, 2020

Tagging subscribers to this area: @ViktorHofer
Notify danmosemsft if you want to be subscribed.

@jkotas
Copy link
Member

jkotas commented May 15, 2020

  • tools (global and repo dotnet tools)

Are these tools just for the internal repo consumption (e.g. they will never ship or publish an artifact to nuget feed)?

If it is just for tools consumed internally by the repo, I like "-local" in the current directory name. It makes it clear that it is not for any kind of tools.

If it is for any kind of tools, what is going to be the rule for when the tool should live here vs. somewhere else?

scripts

We have majority of the scripts under eng, and one-off scripts live next to their use today.

What is going to be the rule for when the script should live here vs. somewhere else? What is the list of scripts that would move here?

@ViktorHofer
Copy link
Member Author

Are these tools just for the internal repo consumption (e.g. they will never ship or publish an artifact to nuget feed)?

Yes those tools should never ship and are intended to be used in the repository. We currently have one single tool which applies to that which is the Debian Packaging Tool. I agree that "tools-local" then probably makes more sense.

What is going to be the rule for when the script should live here vs. somewhere else? What is the list of scripts that would move here?

Primarily the scripts that currently already live under tools-local: https://github.com/dotnet/runtime/tree/master/tools-local/scripts. Maybe also https://github.com/dotnet/runtime/blob/master/src/libraries/FindResourceDuplicates.ps1, https://github.com/dotnet/runtime/blob/master/src/libraries/GenerateLibrariesSln.ps1 if they are useful outside of libraries.

Another suggestion would be to just move the "tools-local" folder as-is into the src folder.

@jkotas
Copy link
Member

jkotas commented May 15, 2020

Debian Packaging Tool

This looks like one-off tool for the installer. Should it better live somewhere under src/installer?

We have number of other similar one-off tools. For example, https://github.com/dotnet/runtime/tree/master/src/coreclr/src/tools/Common/JitInterface/ThunkGenerator is a tool to generate jit/ee interface definitions.

Primarily the scripts that currently already live under tools-local

Why not move the script that currently live under tools-local to be under eng where majority of the scripts live? I do not see a clear difference between the nature of the scripts under tools-local vs eng.

@ViktorHofer
Copy link
Member Author

This looks like one-off tool for the installer. Should it better live somewhere under src/installer?

I opened #36537 to discuss the future of that tool and where it should live.

Why not move the script that currently live under tools-local to be under eng where majority of the scripts live? I do not see a clear difference between the nature of the scripts under tools-local vs eng.

Would work for me as well if those are scripts which aren't supposed to be invoked directly by us devs.

@jkotas
Copy link
Member

jkotas commented May 15, 2020

I have looked at the scripts under https://github.com/dotnet/runtime/tree/master/tools-local/scripts and all of them look dead / no longer used. Maybe we should just delete it and see whether we will miss any of them.

That just leaves the tasks. We have been aggressively moving all tasks to arcade, even if they are not really useful outside dotnet/runtime. Would it make sense to make the installer task to arcade as well?

@ViktorHofer
Copy link
Member Author

I have looked at the scripts under https://github.com/dotnet/runtime/tree/master/tools-local/scripts and all of them look dead / no longer used. Maybe we should just delete it and see whether we will miss any of them.

Thanks for doing that in 56ee1b0#diff-0b05377ea358dd4929229ced386ea133.

That just leaves the tasks. We have been aggressively moving all tasks to arcade, even if they are not really useful outside dotnet/runtime. Would it make sense to make the installer task to arcade as well?

Some of these tasks are very specific to our repository, I don't think it makes sense to port them to Arcade. We already moved most non repo specific ones over.

@akoeplinger
Copy link
Member

This was done.

@github-actions github-actions bot locked and limited conversation to collaborators Dec 30, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
Archived in project
Development

No branches or pull requests

5 participants
@akoeplinger @jkotas @ViktorHofer @Dotnet-GitSync-Bot and others