-
Notifications
You must be signed in to change notification settings - Fork 391
Utility: preview flow setup script #6996
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
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,95 @@ | ||
| param | ||
| ( | ||
| [Parameter(Mandatory=$true)][string]$RuntimeChannel, | ||
| [Parameter(Mandatory=$true)][string]$SdkChannel, | ||
| [Parameter(Mandatory=$true)][string]$RuntimeBranch, | ||
| [Parameter(Mandatory=$true)][string]$SdkBranch, | ||
| [Parameter(Mandatory=$true)][string]$VSChannel | ||
| ) | ||
|
|
||
| function MakeDefaultChannel($repo, $branch, $channel) | ||
| { | ||
| Write-Host "Making default channel - $repo @ $branch -> $channel" | ||
| & darc add-default-channel --repo "$repo" --branch "$branch" --channel "$channel" --quiet | ||
| } | ||
|
|
||
| function AddFlow($sourceRepo, $sourceChannel, $targetRepo, $targetBranch, $frequency) | ||
| { | ||
| Write-Host "Adding flow - $sourceRepo @ $sourceChannel -> $targetRepo @ $targetBranch ($frequency)" | ||
| & darc add-subscription --source-repo "$sourceRepo" --channel "$sourceChannel" --target-repo "$targetRepo" --target-branch "$targetBranch" --update-frequency "$frequency" --quiet --no-trigger --standard-automerge | ||
| } | ||
|
|
||
| function AddArcadeFlow($targetRepo, $targetBranch) | ||
| { | ||
| AddFlow https://github.com/dotnet/arcade ".NET Eng - Latest" $targetRepo $targetBranch None | ||
| } | ||
|
|
||
| # Make default channels | ||
|
|
||
| Write-Host "Making default channels for runtime repos" | ||
| MakeDefaultChannel https://dev.azure.com/dnceng/internal/_git/dotnet-wpf-int $RuntimeBranch $RuntimeChannel | ||
| MakeDefaultChannel https://github.com/dotnet/aspnetcore $RuntimeBranch $RuntimeChannel | ||
| MakeDefaultChannel https://github.com/dotnet/efcore $RuntimeBranch $RuntimeChannel | ||
| MakeDefaultChannel https://github.com/dotnet/extensions $RuntimeBranch $RuntimeChannel | ||
| MakeDefaultChannel https://github.com/dotnet/icu $RuntimeBranch $RuntimeChannel | ||
| MakeDefaultChannel https://github.com/dotnet/runtime $RuntimeBranch $RuntimeChannel | ||
| MakeDefaultChannel https://github.com/dotnet/windowsdesktop $RuntimeBranch $RuntimeChannel | ||
| MakeDefaultChannel https://github.com/dotnet/wpf $RuntimeBranch $RuntimeChannel | ||
| MakeDefaultChannel https://github.com/dotnet/winforms $RuntimeBranch $RuntimeChannel | ||
| MakeDefaultChannel https://github.com/mono/linker $RuntimeBranch $RuntimeChannel | ||
|
|
||
| Write-Host "Making default channels for SDK repos" | ||
| MakeDefaultChannel https://github.com/dotnet/installer $SdkBranch $SdkChannel | ||
| MakeDefaultChannel https://github.com/dotnet/sdk $SdkBranch $SdkChannel | ||
| MakeDefaultChannel https://github.com/dotnet/roslyn-analyzers $SdkBranch $SdkChannel | ||
| MakeDefaultChannel https://github.com/dotnet/templating $SdkBranch $SdkChannel | ||
|
|
||
| # Make dependency flow | ||
|
|
||
| Write-Host "Add arcade flow" | ||
| AddArcadeFlow https://dev.azure.com/dnceng/internal/_git/dotnet-wpf-int $RuntimeBranch | ||
| AddArcadeFlow https://github.com/dotnet/aspnetcore $RuntimeBranch | ||
| AddArcadeFlow https://github.com/dotnet/efcore $RuntimeBranch | ||
| AddArcadeFlow https://github.com/dotnet/extensions $RuntimeBranch | ||
| AddArcadeFlow https://github.com/dotnet/icu $RuntimeBranch | ||
| AddArcadeFlow https://github.com/dotnet/runtime $RuntimeBranch | ||
| AddArcadeFlow https://github.com/dotnet/windowsdesktop $RuntimeBranch | ||
| AddArcadeFlow https://github.com/dotnet/wpf $RuntimeBranch | ||
| AddArcadeFlow https://github.com/dotnet/winforms $RuntimeBranch | ||
| AddArcadeFlow https://github.com/mono/linker $RuntimeBranch | ||
| AddArcadeFlow https://github.com/dotnet/installer $SdkBranch | ||
| AddArcadeFlow https://github.com/dotnet/sdk $SdkBranch | ||
| AddArcadeFlow https://github.com/dotnet/roslyn-analyzers $SdkBranch | ||
| AddArcadeFlow https://github.com/dotnet/templating $SdkBranch | ||
|
|
||
| Write-Host "Add runtime -> runtime flow" | ||
| AddFlow https://dev.azure.com/dnceng/internal/_git/dotnet-wpf-int $RuntimeChannel https://github.com/dotnet/wpf $RuntimeBranch EveryBuild | ||
| AddFlow https://github.com/dotnet/efcore $RuntimeChannel https://github.com/dotnet/aspnetcore $RuntimeBranch EveryBuild | ||
| AddFlow https://github.com/dotnet/icu $RuntimeChannel https://github.com/dotnet/runtime $RuntimeBranch EveryBuild | ||
| AddFlow https://github.com/dotnet/runtime $RuntimeChannel https://github.com/dotnet/aspnetcore $RuntimeBranch EveryBuild | ||
| AddFlow https://github.com/dotnet/runtime $RuntimeChannel https://github.com/dotnet/efcore $RuntimeBranch EveryBuild | ||
| AddFlow https://github.com/dotnet/runtime $RuntimeChannel https://github.com/dotnet/extensions $RuntimeBranch EveryBuild | ||
| AddFlow https://github.com/dotnet/runtime $RuntimeChannel https://github.com/dotnet/winforms $RuntimeBranch EveryBuild | ||
| AddFlow https://github.com/dotnet/winforms $RuntimeChannel https://github.com/dotnet/wpf $RuntimeBranch EveryBuild | ||
| AddFlow https://github.com/dotnet/wpf $RuntimeChannel https://github.com/dotnet/windowsdesktop $RuntimeBranch EveryBuild | ||
| AddFlow https://github.com/mono/linker $RuntimeChannel https://github.com/dotnet/runtime $RuntimeBranch EveryBuild | ||
|
|
||
| Write-Host "Add runtime->sdk flow" | ||
| AddFlow https://github.com/dotnet/aspnetcore $RuntimeChannel https://github.com/dotnet/sdk $SdkBranch EveryBuild | ||
| AddFlow https://github.com/dotnet/windowsdesktop $RuntimeChannel https://github.com/dotnet/sdk $SdkBranch EveryBuild | ||
| AddFlow https://github.com/dotnet/runtime $RuntimeChannel https://github.com/dotnet/sdk $SdkBranch EveryBuild | ||
| AddFlow https://github.com/mono/linker $RuntimeChannel https://github.com/dotnet/sdk $SdkBranch EveryBuild | ||
|
|
||
| Write-Host "Add sdk->sdk flow" | ||
| AddFlow https://github.com/dotnet/sdk $SdkChannel https://github.com/dotnet/installer $SdkBranch EveryBuild | ||
| AddFlow https://github.com/dotnet/roslyn-analyzers $SdkChannel https://github.com/dotnet/sdk $SdkBranch EveryBuild | ||
| AddFlow https://github.com/dotnet/templating $RuntimeChannel https://github.com/dotnet/sdk $SdkBranch EveryBuild | ||
|
|
||
| Write-Host "Add tooling->sdk flow" | ||
| AddFlow https://github.com/nuget/nuget.client $VSChannel https://github.com/dotnet/sdk $SdkBranch EveryBuild | ||
| AddFlow https://github.com/dotnet/roslyn "VS Master" https://github.com/dotnet/sdk $SdkBranch EveryBuild | ||
| AddFlow https://github.com/dotnet/fsharp $VSChannel https://github.com/dotnet/sdk $SdkBranch EveryBuild | ||
| AddFlow https://github.com/dotnet/msbuild $VSChannel https://github.com/dotnet/sdk $SdkBranch EveryBuild | ||
|
|
||
|
|
||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe make
EveryBuildthe default value for$frequencyhere to get rid off some repetition later?