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

Merge main to features/MoveStaticMembers #55324

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
219 commits
Select commit Hold shift + click to select a range
e4c90bb
Add accessibility modifier on file creation
Youssef1313 Mar 17, 2021
a358ab7
Update AbstractAddAccessibilityModifiersCodeFixProvider.cs
Youssef1313 Mar 17, 2021
8217586
WIP
alrz May 18, 2021
44dd02f
Use verifier
alrz May 21, 2021
702bdc3
Move
alrz May 21, 2021
daa4748
Cleanup
alrz May 21, 2021
e86d7c5
Formatting
alrz May 21, 2021
bc81a50
Support partial replacement
alrz May 21, 2021
ffdc34b
Simplify
alrz May 21, 2021
defb970
Rename
alrz May 21, 2021
f5e7555
Extract method
alrz May 21, 2021
bcf083e
Cleanup
alrz May 22, 2021
056ed12
Typo
alrz May 22, 2021
d39fcdd
Typo
alrz May 22, 2021
ec4c4f1
Tweaks
alrz May 23, 2021
e0ece99
Support conditional access
alrz May 25, 2021
b9509d2
Fixup
alrz May 25, 2021
1cf9ca6
Typo
alrz May 25, 2021
cb05b1e
Cleanup
alrz May 26, 2021
2d49d40
Cleanup
alrz May 27, 2021
651350b
Update resources
alrz May 27, 2021
6e317a9
Fixup
alrz May 27, 2021
09f9638
Add tests
alrz May 27, 2021
0b9848d
Tweaks
alrz May 28, 2021
1fc8c65
Cleanup
Youssef1313 Jun 18, 2021
2bfa623
Fix make static to not drop trivia
Youssef1313 Jun 18, 2021
d099482
Fix
Youssef1313 Jun 18, 2021
6258179
Address feedback
Youssef1313 Jun 22, 2021
b207c25
Update dependencies from https://github.com/dotnet/arcade build 20210…
dotnet-maestro[bot] Jun 23, 2021
ef69de8
Update dependencies from https://github.com/dotnet/arcade build 20210…
dotnet-maestro[bot] Jun 24, 2021
15f1b85
Update dependencies from https://github.com/dotnet/arcade build 20210…
dotnet-maestro[bot] Jun 25, 2021
fa18140
Update dependencies from https://github.com/dotnet/arcade build 20210…
dotnet-maestro[bot] Jun 29, 2021
3383966
Update dependencies from https://github.com/dotnet/arcade build 20210…
dotnet-maestro[bot] Jun 30, 2021
46208a9
WIP: Add initial support for completion after static in local functio…
MaStr11 Jun 30, 2021
785d873
Update dependencies from https://github.com/dotnet/arcade build 20210…
dotnet-maestro[bot] Jul 1, 2021
0786139
Update dependencies from https://github.com/dotnet/arcade build 20210…
dotnet-maestro[bot] Jul 2, 2021
6602a33
Update dependencies from https://github.com/dotnet/arcade build 20210…
dotnet-maestro[bot] Jul 6, 2021
875981b
Update dependencies from https://github.com/dotnet/arcade build 20210…
dotnet-maestro[bot] Jul 14, 2021
3c94d64
Update dependencies from https://github.com/dotnet/arcade build 20210…
dotnet-maestro[bot] Jul 15, 2021
511d04a
Update dependencies from https://github.com/dotnet/arcade build 20210…
dotnet-maestro[bot] Jul 16, 2021
65faabb
Add binary is-expression and constant is-pattern support in UseNotPat…
reacheight Jul 16, 2021
c30c9cc
Fix indentation
reacheight Jul 16, 2021
dbd3cba
Add potential exceptions when generating doc comment
Youssef1313 Jul 17, 2021
e491eb4
handle constructors
Youssef1313 Jul 17, 2021
2101fc7
More work
Youssef1313 Jul 17, 2021
3befdf0
Refactoring and review fixes
reacheight Jul 18, 2021
d8f3033
Remaining work
Youssef1313 Jul 18, 2021
d71ac40
Add default case for switch expression
reacheight Jul 18, 2021
0004b65
Throw in unreachable switch case
reacheight Jul 18, 2021
469fb79
Fix test
Youssef1313 Jul 18, 2021
a32705a
Initial work to have AwaitCompletionProvider in VB
Youssef1313 Jul 18, 2021
c19f975
Small fix
Youssef1313 Jul 18, 2021
85fd198
Implicitly skip compiler's nullable analysis when implicitly skipping…
mavasani Jul 19, 2021
fa8d961
Merge remote-tracking branch 'upstream/main' into TypeCompletionAfter…
MaStr11 Jul 19, 2021
842a1f6
Move "IsLocalFunctionDeclarationContext" to IsTypeContext
MaStr11 Jul 19, 2021
eb1b5be
Remove unused "IsLocalFunctionDeclarationContext" from CSharpSyntaxCo…
MaStr11 Jul 19, 2021
38f98df
Implement VB - TODO: tests
Youssef1313 Jul 19, 2021
4265c04
Add tests
Youssef1313 Jul 19, 2021
6e30d75
Few more fixes
Youssef1313 Jul 19, 2021
6d5dd88
Correct check for not-expression and better exception
reacheight Jul 19, 2021
854bc01
Remove unnecessary variable
reacheight Jul 19, 2021
5297328
Merge branch 'main' into extend-use-not-pattern
reacheight Jul 20, 2021
d29cdd5
Fix "delegate recommended after static" test
MaStr11 Jul 20, 2021
fa0655d
Add string keywordrecommender test (fails)
MaStr11 Jul 20, 2021
77a285c
Revert "Remove unused "IsLocalFunctionDeclarationContext" from CSharp…
MaStr11 Jul 20, 2021
8f18ffc
Fix StringKeywordRecommender
MaStr11 Jul 20, 2021
47d2b23
Unify duplicate modifier set for IsLocalFunctionDeclarationContext
MaStr11 Jul 20, 2021
7c3f349
Add tests for all SpecialTypeRecommenders
MaStr11 Jul 20, 2021
cd1c4ad
Fix SpecialTypeRecommender
MaStr11 Jul 20, 2021
f03ba1c
Fix misplaced test
MaStr11 Jul 20, 2021
801f3b8
Add test for local function modifier combinations
MaStr11 Jul 20, 2021
2ceba93
Add NotAfterAsyncLocalFunctionWithTwoAsyncs symbol test
MaStr11 Jul 20, 2021
95b99a4
Add test in NativeIntegerKeywordRecommenderTests
MaStr11 Jul 20, 2021
4bcac1a
Add test for TypeImporterCompletionProvider
MaStr11 Jul 20, 2021
ae59210
Add test for generate type
MaStr11 Jul 20, 2021
1ede65d
Merge branch 'main' into extend-use-not-pattern
reacheight Jul 20, 2021
17c137f
Update src/Workspaces/SharedUtilitiesAndExtensions/Workspace/CSharp/E…
MaStr11 Jul 21, 2021
a246e03
Add test "Not after return type"
MaStr11 Jul 21, 2021
b46098a
Add TheoryDataKeywordsIndicatingLocalFunction
MaStr11 Jul 21, 2021
b581ce2
Add TestAfterKeywordIndicatingLocalFunction in DelegateKeywordRecomme…
MaStr11 Jul 21, 2021
f686b67
Use Theory for SpecialTypesKeywordsRecommenders Tests
MaStr11 Jul 21, 2021
8439d03
Fix copy/paste error in TestAfterKeywordIndicatingLocalFunction in de…
MaStr11 Jul 21, 2021
8525242
Address part of feedback
Youssef1313 Jul 21, 2021
2dd919e
Update src/Workspaces/SharedUtilitiesAndExtensions/Workspace/CSharp/E…
CyrusNajmabadi Jul 21, 2021
28a18b4
Merge branch 'main' into extend-use-not-pattern
reacheight Jul 21, 2021
1cffe08
Update dependencies from https://github.com/dotnet/arcade build 20210…
dotnet-maestro[bot] Jul 22, 2021
fff91e2
Keep track of trigger location for individual CompletionItem
genlu Jul 22, 2021
8f85797
Add template for insertion creation and use for pr val
dibarbet Jul 23, 2021
0230a70
change to autocomplete param
dibarbet Jul 23, 2021
112f8b8
pass secret as parameter
dibarbet Jul 24, 2021
c48e684
Update dependencies from https://github.com/dotnet/arcade build 20210…
dotnet-maestro[bot] Jul 24, 2021
2db7fd2
Merge remote-tracking branch 'upstream/main' into dev/dibarbet/insert…
dibarbet Jul 26, 2021
3f4ec99
Only set azdo URI when running outside of devdiv
dibarbet Jul 26, 2021
9162f37
Update minimum VS to 16.10; Update contributing doc
JoeRobich Jul 26, 2021
c08a0d4
Merge branch 'release/dev16.11' into darc-release/dev16.11-867d60db-5…
JoeRobich Jul 26, 2021
ea39faf
Change conditional check for template parameters
dibarbet Jul 26, 2021
6cfcfb5
Downgrade DotNetBuildTasksFeed version
JoeRobich Jul 26, 2021
96351e2
Extract local function
genlu Jul 26, 2021
59ce49a
properly define variables in case they were not set
dibarbet Jul 26, 2021
463f11a
update comment
dibarbet Jul 26, 2021
bf8188a
move branch data calculation into template
dibarbet Jul 27, 2021
04fe1e7
remove unused parameter
dibarbet Jul 27, 2021
ab2ccab
more yaml fixes
dibarbet Jul 27, 2021
56475bf
fix extra quote
dibarbet Jul 27, 2021
aae7ff8
Update dependencies from https://github.com/dotnet/arcade build 20210…
dotnet-maestro[bot] Jul 27, 2021
9497ae3
Use env variables instead of parameters directly
dibarbet Jul 27, 2021
5ecf7ed
Restore NuGetRepack.Tasks so they are available during sourcebuild
JoeRobich Jul 27, 2021
978f5b0
Fix missing -
dibarbet Jul 27, 2021
a387670
User proper powershell syntax for accessing env variables
dibarbet Jul 27, 2021
787e577
adding location column
jmarolf Jul 27, 2021
5b71571
Fix component variables
dibarbet Jul 27, 2021
b8d27f2
Fix quotes for pipeline variables
dibarbet Jul 27, 2021
f0e33a7
Merge pull request #54323 from dotnet/darc-release/dev16.11-867d60db-…
Jul 28, 2021
850223c
change variables into parameters, add comments
dibarbet Jul 28, 2021
5c494d8
Add actual default value because otherwise the parameter is marked as…
dibarbet Jul 28, 2021
4c1b540
Update template to ignore default value
dibarbet Jul 28, 2021
5e3726a
Remove experimentation for imports on paste
ryzngard Jul 27, 2021
05700dc
Update test name
ryzngard Jul 27, 2021
4bd3b06
Merge pull request #55176 from ryzngard/cherry-pick/55148
ryzngard Jul 28, 2021
02ed185
Merge remote-tracking branch 'upstream/main' into cleanup-file-creation
CyrusNajmabadi Jul 28, 2021
00c265c
Merge branch 'release/dev17.0' into merges/release/dev16.11-to-releas…
JoeRobich Jul 28, 2021
1f97af2
Move code.
CyrusNajmabadi Jul 28, 2021
7ffb918
Merge pull request #55188 from dotnet/merges/release/dev17.0-to-main
dotnet-bot Jul 28, 2021
6a80471
fix
CyrusNajmabadi Jul 28, 2021
69e89da
Merge remote-tracking branch 'upstream/main' into exceptions-doc-comm…
CyrusNajmabadi Jul 28, 2021
39b07a3
Merge pull request #55169 from dotnet/merges/release/dev16.11-to-rele…
dotnet-bot Jul 28, 2021
1d3348c
Merge remote-tracking branch 'upstream/main' into dev/dibarbet/insert…
dibarbet Jul 28, 2021
76957ee
fix comment
dibarbet Jul 28, 2021
f24f8a9
Work
CyrusNajmabadi Jul 28, 2021
a395d1d
Only use syntax
CyrusNajmabadi Jul 28, 2021
c24f3c4
restore
CyrusNajmabadi Jul 28, 2021
9af41e4
Fix
CyrusNajmabadi Jul 28, 2021
706d0b5
Add more logging to figure out why vsbranchname is empty
dibarbet Jul 28, 2021
d77b389
fix authorization and publishdata retrieval
dibarbet Jul 28, 2021
09abb4f
Merge branch 'main' into merges/release/dev17.0-to-main
JoeRobich Jul 28, 2021
3c4d9cc
Update src/EditorFeatures/Core/Implementation/IntelliSense/AsyncCompl…
genlu Jul 28, 2021
f9330f2
Update src/EditorFeatures/Core/Implementation/IntelliSense/AsyncCompl…
genlu Jul 28, 2021
3776dae
Remove diagnostic logs
dibarbet Jul 28, 2021
ee63d89
Merge pull request #55192 from dotnet/merges/release/dev17.0-to-main
dotnet-bot Jul 28, 2021
9f796a6
introduce service
CyrusNajmabadi Jul 28, 2021
0c51dc0
Update eng/pipelines/insert.yml
dibarbet Jul 28, 2021
5bec032
Update eng/pipelines/insert.yml
dibarbet Jul 28, 2021
ac28a69
Merge pull request #54894 from Youssef1313/exceptions-doc-comments
CyrusNajmabadi Jul 28, 2021
e5eb961
Improve test (#55200)
tmat Jul 28, 2021
e36e194
Merge pull request #54493 from MaStr11/TypeCompletionAfterLocalFuncti…
CyrusNajmabadi Jul 28, 2021
8c086b3
Fix file scoped namespace rude edits (#55178)
davidwengier Jul 28, 2021
b708867
Add a global using test (#55180)
davidwengier Jul 28, 2021
cca0611
Support EditorBrowsable in Fully-Qualify
CyrusNajmabadi Jul 1, 2021
fd67237
Merge pull request #55094 from dotnet/dev/dibarbet/insertion_template
dibarbet Jul 29, 2021
475f186
Add failing test
CyrusNajmabadi Jul 29, 2021
136f9f3
Do not search unnecessary documents for symbols
CyrusNajmabadi Jul 29, 2021
5949499
Merge pull request #55209 from CyrusNajmabadi/portAbiFiltering
CyrusNajmabadi Jul 29, 2021
1c0dc1c
Merge pull request #55213 from dotnet/merges/release/dev16.11-to-rele…
dotnet-bot Jul 29, 2021
2e738e7
Merge branch 'main' into extend-use-not-pattern
reacheight Jul 29, 2021
3f53f5c
Merge pull request #55218 from dotnet/merges/release/dev17.0-to-main
dotnet-bot Jul 29, 2021
8f8f95e
Merge pull request #54870 from reacheight/extend-use-not-pattern
CyrusNajmabadi Jul 29, 2021
13243ff
Address feedback
Youssef1313 Jul 29, 2021
58ffdbf
Update dependencies from https://github.com/dotnet/arcade build 20210…
dotnet-maestro[bot] Jul 29, 2021
019e742
Update dependencies from https://github.com/dotnet/source-build build…
dotnet-maestro[bot] Jul 29, 2021
be50485
Merge pull request #55210 from CyrusNajmabadi/farFailure
CyrusNajmabadi Jul 29, 2021
e72f3c9
Merge pull request #55035 from genlu/fixRazorCompletion
genlu Jul 29, 2021
c0a18e2
Merge remote-tracking branch 'upstream/main' into cleanup-file-creation
CyrusNajmabadi Jul 29, 2021
103c519
Fixes and more tests
Youssef1313 Jul 29, 2021
43725b0
React to changes in .net6p7 to how source generated file paths are cr…
dibarbet Jul 29, 2021
5692979
Merge pull request #55235 from dotnet/merges/release/dev17.0-to-main
dotnet-bot Jul 29, 2021
5177a82
Fix regression in recursive patterns (#55208)
jcouv Jul 29, 2021
991c1fb
Merge pull request #55234 from dotnet/merges/release/dev16.11-to-rele…
dotnet-bot Jul 29, 2021
bf79730
Merge branch 'main' into cleanup-file-creation
CyrusNajmabadi Jul 29, 2021
435d7d6
Make sure buffers are returned to the pool (#55212)
tmat Jul 29, 2021
3d36343
Avoid synchronous load of SVsManagedFontAndColorInformation
sharwell Jul 29, 2021
71c7efd
Turn off LSP TextEdit completion by default
allisonchou Jul 29, 2021
fda6aea
move down
CyrusNajmabadi Jul 29, 2021
98ea5d0
Merge pull request #54908 from Youssef1313/await-completion-vb
CyrusNajmabadi Jul 29, 2021
a429a88
Infer delegate types with -langversion:10 (and above) only (#55232)
cston Jul 29, 2021
84bbd7c
Fix nav-to out of date message.
CyrusNajmabadi Jul 29, 2021
e1612f5
Merge pull request #55151 from jmarolf/feature/editor-config-location…
jmarolf Jul 29, 2021
d8a8ed0
Merge pull request #55246 from dotnet/merges/release/dev17.0-to-main
dotnet-bot Jul 29, 2021
eaea702
Merge pull request #55245 from dibarbet/fix_enc_net6p7
dibarbet Jul 30, 2021
f8f5ab4
Use COnfigureAwait(true)
CyrusNajmabadi Jul 30, 2021
8e3a661
update UI text
jmarolf Jul 30, 2021
0e80af8
rename folder
jmarolf Jul 29, 2021
3234cb7
rename files
jmarolf Jul 29, 2021
c3a8ddc
rename types
jmarolf Jul 29, 2021
60efbfe
rename folder
jmarolf Jul 29, 2021
1aa962e
rename files
jmarolf Jul 29, 2021
de29b7e
rename types
jmarolf Jul 30, 2021
f880d62
rename directory
jmarolf Jul 30, 2021
b6d5c6d
rename files
jmarolf Jul 30, 2021
39fc4ec
rename types
jmarolf Jul 30, 2021
bee1c1a
update identifiers
jmarolf Jul 30, 2021
a1bbf73
update namespaces
jmarolf Jul 30, 2021
80211cd
fixup rebase
jmarolf Jul 30, 2021
a7a3315
Merge pull request #55252 from dotnet/dev/allichou/TurnOffTextEditLSP…
allisonchou Jul 30, 2021
5e4c37a
Support binary interpolation addition (#55059)
333fred Jul 30, 2021
86ff365
Merge pull request #54913 from mavasani/ImplicitlySkipNullable
mavasani Jul 30, 2021
e323c74
Fix LSP completions when all items have default commit characters
dibarbet Jul 30, 2021
1ed47b0
Merge pull request #55253 from CyrusNajmabadi/navToMessage
CyrusNajmabadi Jul 30, 2021
bbf1e87
Synthesize delegate types for lambda expressions and method groups (#…
cston Jul 30, 2021
011b722
Merge pull request #51935 from Youssef1313/cleanup-file-creation
CyrusNajmabadi Jul 30, 2021
6ce9c00
Merge pull request #55251 from sharwell/avoid-sync-load
sharwell Jul 30, 2021
88b5977
Merge pull request #55256 from dotnet/merges/release/dev17.0-to-main
dotnet-bot Jul 30, 2021
43a039b
Merge pull request #55270 from dotnet/merges/release/dev17.0-to-main
dotnet-bot Jul 30, 2021
3360a72
Update dependencies from https://github.com/dotnet/source-build build…
dotnet-maestro[bot] Jul 30, 2021
5bce330
Merge pull request #55260 from jmarolf/bugfix/change-formatting-to-wh…
jmarolf Jul 30, 2021
e0473dc
fix cherry-pick to use correct types
dibarbet Jul 30, 2021
e8a63b1
updating features resources with strings that are common between c# a…
akhera99 Jul 30, 2021
3260be3
Update tests
dibarbet Jul 30, 2021
86c25cd
Skip BuildWithCommandLine test (#55243)
allisonchou Jul 30, 2021
b818d6a
Merge pull request #54216 from Youssef1313/make-static-trivia
ryzngard Jul 30, 2021
b46c7a7
EnC: Avoid expensive data flow analysis in absence of lambdas (#55255)
tmat Jul 30, 2021
2f7dffa
Merge pull request #55291 from akhera99/update_features_resources_ext…
akhera99 Jul 30, 2021
f90046b
Merge branch 'main' into use-recursive-pattern-refactoring
CyrusNajmabadi Jul 30, 2021
65ee073
Merge pull request #55262 from dibarbet/lsp_completion_null_ref
dibarbet Jul 30, 2021
054f0c0
Log the client name we were looking for when we can't find a document…
davidwengier Jul 30, 2021
2d6cf01
Small bits of cleanup
CyrusNajmabadi Jul 30, 2021
af2fa54
Disable add usings on paste by default
ryzngard Jul 30, 2021
53db3fc
Merge pull request #55298 from ryzngard/features/disable_usings_on_paste
ryzngard Jul 31, 2021
32003cd
Merge pull request #53553 from alrz/use-recursive-pattern-refactoring
CyrusNajmabadi Jul 31, 2021
159cb67
Merge pull request #55303 from dotnet/merges/release/dev17.0-to-main
dotnet-bot Jul 31, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
74 changes: 9 additions & 65 deletions azure-pipelines-official.yml
Original file line number Diff line number Diff line change
Expand Up @@ -309,75 +309,19 @@ stages:
pool:
vmImage: windows-2019
steps:
- checkout: none

- task: NuGetCommand@2
displayName: 'Install RIT from Azure Artifacts'
inputs:
command: custom
arguments: 'install RoslynTools.VisualStudioInsertionTool -PreRelease -Source https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-eng/nuget/v3/index.json'

- powershell: |
$response = Invoke-RestMethod -Headers @{Authorization = "Bearer $(System.AccessToken)"} "https://dev.azure.com/dnceng/internal/_apis/git/repositories/dotnet-roslyn/items?path=eng/config/PublishData.json&api-version=6.0"
$branchName = "$(Build.SourceBranch)".Substring("refs/heads/".Length)
$branchData = $response.branches.$branchName
if (!$branchData)
{
Write-Host "No PublishData found for branch '$branchName'. Using PublishData for branch 'main'."
$branchData = $response.branches.main
}
if ($null -ne $branchData.insertionCreateDraftPR)
{
Write-Host "##vso[task.setvariable variable=Insertion.CreateDraftPR]$($branchData.insertionCreateDraftPR)"
}
if ($null -ne $branchData.insertionTitlePrefix)
{
Write-Host "##vso[task.setvariable variable=Insertion.TitlePrefix]$($branchData.insertionTitlePrefix)"
}
if ($null -ne $branchData.insertToolset)
{
Write-Host "##vso[task.setvariable variable=Insertion.InsertToolset]$($branchData.insertToolset)"
}

Write-Host "##vso[task.setvariable variable=Insertion.AutoComplete]$(-not $branchData.insertionCreateDraftPR)"
Write-Host "##vso[task.setvariable variable=ComponentBranchName]$branchName"
Write-Host "##vso[task.setvariable variable=VSBranchName]$($branchData.vsBranch)"
displayName: Set Insertion Variables
displayName: Get Branch Name

- powershell: |
mv RoslynTools.VisualStudioInsertionTool.* RIT
.\RIT\tools\OneOffInsertion.ps1 `
-autoComplete "$(Insertion.AutoComplete)" `
-buildQueueName "$(Build.DefinitionName)" `
-cherryPick "(default)" `
-clientId "$(ClientId)" `
-clientSecret "$(ClientSecret)" `
-componentAzdoUri "$(System.CollectionUri)" `
-componentBranchName "$(ComponentBranchName)" `
-componentGitHubRepoName "dotnet/roslyn" `
-componentName "Roslyn" `
-componentProjectName "internal" `
-createDraftPR "$(Insertion.CreateDraftPR)" `
-defaultValueSentinel "(default)" `
-dropPath "(default)" `
-insertCore "(default)" `
-insertDevDiv "(default)" `
-insertionCount "1" `
-insertToolset "$(Insertion.InsertToolset)" `
-titlePrefix "$(Insertion.TitlePrefix)" `
-titleSuffix "$(Insertion.TitleSuffix)" `
-queueValidation "true" `
-requiredValueSentinel "REQUIRED" `
-reviewerGUID "6c25b447-1d90-4840-8fde-d8b22cb8733e" `
-specificBuild "$(Build.BuildNumber)" `
-updateAssemblyVersions "(default)" `
-updateCoreXTLibraries "(default)" `
-visualStudioBranchName "$(VSBranchName)" `
-writePullRequest "prid.txt" `
displayName: 'Run OneOffInsertion.ps1'

- script: 'echo. && echo. && type "prid.txt" && echo. && echo.'
displayName: 'Report PR URL'
- template: eng/pipelines/insert.yml
parameters:
clientId: $(ClientId)
clientSecret: $(ClientSecret)
componentBuildProjectName: internal
sourceBranch: "$(ComponentBranchName)"
publishDataURI: "https://dev.azure.com/dnceng/internal/_apis/git/repositories/dotnet-roslyn/items?path=eng/config/PublishData.json&api-version=6.0"
publishDataAccessToken: "$(System.AccessToken)"

- ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
- template: eng\common\templates\post-build\post-build.yml
Expand Down
38 changes: 38 additions & 0 deletions azure-pipelines-pr-validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,15 @@ parameters:
type: number
- name: CommitSHA
type: string
- name: VisualStudioBranchName
type: string
default: default
- name: OptionalTitlePrefix
type: string
default: '[PR Validation]'
- name: InsertToolset
type: boolean
default: true

# The variables `_DotNetArtifactsCategory` and `_DotNetValidationArtifactsCategory` are required for proper publishing of build artifacts. See https://github.com/dotnet/roslyn/pull/38259
variables:
Expand Down Expand Up @@ -125,6 +134,7 @@ stages:
/p:DotnetPublishUsingPipelines=false
/p:IgnoreIbcMergeErrors=true
/p:PreReleaseVersionLabel=pr-validation
/p:IgnoreIbcMergeErrors=true
condition: succeeded()

# Publish OptProf generated JSON files as a build artifact. This allows for easy inspection from
Expand Down Expand Up @@ -195,3 +205,31 @@ stages:
- task: ms-vseng.MicroBuildTasks.521a94ea-9e68-468a-8167-6dcf361ea776.MicroBuildCleanup@1
displayName: Perform Cleanup Tasks
condition: succeededOrFailed()

- stage: insert
displayName: Create Insertion
dependsOn:
- build

jobs:
- job: insert
displayName: Insert to VS
pool:
vmImage: windows-2019
steps:
- powershell: Write-Host "##vso[task.setvariable variable=SourceBranchName]$('$(Build.SourceBranch)'.Substring('refs/heads/'.Length))"
displayName: Setting SourceBranchName variable
condition: succeeded()

- template: eng/pipelines/insert.yml
parameters:
createDraftPR: true
autoComplete: false
insertToolset: ${{ parameters.InsertToolset }}
clientId: $(ClientId)
clientSecret: $(ClientSecret)
vsBranchName: ${{ parameters.VisualStudioBranchName }}
titlePrefix: ${{ parameters.OptionalTitlePrefix }}
sourceBranch: $(SourceBranchName)
publishDataURI: "https://raw.githubusercontent.com/dotnet/roslyn/main/eng/config/PublishData.json"

1 change: 1 addition & 0 deletions eng/Tools.props
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
See https://github.com/dotnet/arcade/issues/7205
-->
<PackageReference Include="Microsoft.DotNet.Build.Tasks.Feed" Version="$(MicrosoftDotNetBuildTasksFeedVersion)" />
<PackageReference Include="Microsoft.DotNet.NuGetRepack.Tasks" Version="$(MicrosoftDotNetBuildTasksFeedVersion)" />
</ItemGroup>

</Project>
12 changes: 6 additions & 6 deletions eng/Version.Details.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,25 @@
<Sha>7e80445ee82adbf9a8e6ae601ac5e239d982afaa</Sha>
<SourceBuild RepoName="xliff-tasks" ManagedOnly="true" />
</Dependency>
<Dependency Name="Microsoft.SourceBuild.Intermediate.source-build" Version="0.1.0-alpha.1.21377.1">
<Dependency Name="Microsoft.SourceBuild.Intermediate.source-build" Version="0.1.0-alpha.1.21379.1">
<Uri>https://github.com/dotnet/source-build</Uri>
<Sha>3855598428e676010315576808fcca0a29363cfc</Sha>
<Sha>088128e88da570109769253bac46f044dcb43370</Sha>
<SourceBuild RepoName="source-build" ManagedOnly="true" />
</Dependency>
</ProductDependencies>
<ToolsetDependencies>
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="6.0.0-beta.21377.2">
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="6.0.0-beta.21378.2">
<Uri>https://github.com/dotnet/arcade</Uri>
<Sha>cab4a3c50fd042677ea17cfc5171b4ce8b29930f</Sha>
<Sha>dd3652e2ae5ea89703a2286295de9efe908974f1</Sha>
<SourceBuild RepoName="arcade" ManagedOnly="true" />
</Dependency>
<Dependency Name="Microsoft.Net.Compilers.Toolset" Version="4.0.0-3.21373.8">
<Uri>https://github.com/dotnet/roslyn</Uri>
<Sha>5f124755232afa7b9903d6bdfcaeb47f39c8838e</Sha>
</Dependency>
<Dependency Name="Microsoft.DotNet.Helix.Sdk" Version="6.0.0-beta.21377.2">
<Dependency Name="Microsoft.DotNet.Helix.Sdk" Version="6.0.0-beta.21378.2">
<Uri>https://github.com/dotnet/arcade</Uri>
<Sha>cab4a3c50fd042677ea17cfc5171b4ce8b29930f</Sha>
<Sha>dd3652e2ae5ea89703a2286295de9efe908974f1</Sha>
</Dependency>
</ToolsetDependencies>
</Dependencies>
1 change: 0 additions & 1 deletion eng/Versions.props
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@
<MicrosoftDiaSymReaderConverterXmlVersion>1.1.0-beta2-20115-01</MicrosoftDiaSymReaderConverterXmlVersion>
<MicrosoftDiaSymReaderNativeVersion>16.9.0-beta1.21055.5</MicrosoftDiaSymReaderNativeVersion>
<MicrosoftDiaSymReaderPortablePdbVersion>1.5.0</MicrosoftDiaSymReaderPortablePdbVersion>
<MicrosoftDotNetBuildTasksFeedVersion>6.0.0-beta.21319.2</MicrosoftDotNetBuildTasksFeedVersion>
<MicrosoftExtensionsLoggingVersion>5.0.0</MicrosoftExtensionsLoggingVersion>
<MicrosoftExtensionsLoggingConsoleVersion>5.0.0</MicrosoftExtensionsLoggingConsoleVersion>
<MicrosoftIdentityModelClientsActiveDirectoryVersion>3.13.8</MicrosoftIdentityModelClientsActiveDirectoryVersion>
Expand Down
2 changes: 1 addition & 1 deletion eng/common/internal/Tools.csproj
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!-- Licensed to the .NET Foundation under one or more agreements. The .NET Foundation licenses this file to you under the MIT license. -->
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -->
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net472</TargetFramework>
Expand Down
178 changes: 178 additions & 0 deletions eng/pipelines/insert.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,178 @@
parameters:
# These are actually booleans but must be defined as string.
# Parameters are evaluated at compile time, but all variables are strings at compile time.
# So in order to pass a parameter that comes from a variable these must be typed as string.
- name: createDraftPR
type: string
default: ''
- name: autoComplete
type: string
default: ''
- name: insertToolset
type: string
default: ''

- name: clientId
type: string
- name: clientSecret
type: string
- name: publishDataURI
type: string
- name: publishDataAccessToken
type: string
default: ''

- name: vsBranchName
type: string
default: ''
- name: componentBuildProjectName
type: string
default: ''
- name: titlePrefix
type: string
default: ''

- name: sourceBranch
type: string

steps:
- checkout: none

- task: NuGetCommand@2
displayName: 'Install RIT from Azure Artifacts'
inputs:
command: custom
arguments: 'install RoslynTools.VisualStudioInsertionTool -PreRelease -Source https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-eng/nuget/v3/index.json'

- powershell: |
$authorization = if ("" -ne $Env:PublishDataAccessToken) { "Bearer $Env:PublishDataAccessToken" } else { "" }
$response = Invoke-RestMethod -Headers @{Authorization = $authorization} "${{ parameters.publishDataURI }}"
$branchName = "${{ parameters.sourceBranch }}"
$branchData = $response.branches.$branchName
if (!$branchData)
{
Write-Host "No PublishData found for branch '$branchName'. Using PublishData for branch 'main'."
$branchData = $response.branches.main
}

# Set our template variables to reasonable defaults
Write-Host "##vso[task.setvariable variable=Template.CreateDraftPR]$($true)"
Write-Host "##vso[task.setvariable variable=Template.AutoComplete]$($false)"
Write-Host "##vso[task.setvariable variable=Template.TitlePrefix]$('')"
Write-Host "##vso[task.setvariable variable=Template.TitleSuffix]$('[Skip-SymbolCheck]')"
Write-Host "##vso[task.setvariable variable=Template.InsertToolset]$($true)"
Write-Host "##vso[task.setvariable variable=Template.ComponentAzdoUri]$('')"
Write-Host "##vso[task.setvariable variable=Template.ComponentProjectName]$('')"

Write-Host "##vso[task.setvariable variable=Template.ComponentBranchName]$branchName"
Write-Host "##vso[task.setvariable variable=Template.VSBranchName]$($branchData.vsBranch)"

# Overwrite the default template variables with the values from PublishData for this sourceBranch
if ($null -ne $branchData.insertionCreateDraftPR)
{
Write-Host "##vso[task.setvariable variable=Template.CreateDraftPR]$($branchData.insertionCreateDraftPR)"
}

if ($null -ne $branchData.insertionCreateDraftPR)
{
Write-Host "##vso[task.setvariable variable=Template.AutoComplete]$(-not $branchData.insertionCreateDraftPR)"
}

if ($null -ne $branchData.insertionTitlePrefix)
{
Write-Host "##vso[task.setvariable variable=Template.TitlePrefix]$($branchData.insertionTitlePrefix)"
}

if ($null -ne $branchData.insertToolset)
{
Write-Host "##vso[task.setvariable variable=Template.InsertToolset]$($branchData.insertToolset)"
}

displayName: Set Variables from PublishData
env:
PublishDataAccessToken: ${{ parameters.publishDataAccessToken }}

- powershell: |
# Overwrite template variables with values passed into this template as parameters
if ("" -ne $Env:CreateDraftPR)
{
Write-Host "Setting CreateDraftPR to $Env:CreateDraftPR"
Write-Host "##vso[task.setvariable variable=Template.CreateDraftPR]$Env:CreateDraftPR"
}

if ("" -ne $Env:AutoComplete)
{
Write-Host "Setting AutoComplete to $Env:AutoComplete"
Write-Host "##vso[task.setvariable variable=Template.AutoComplete]$Env:AutoComplete"
}

if ("" -ne $Env:TitlePrefix)
{
Write-Host "Setting TitlePrefix to $Env:TitlePrefix"
Write-Host "##vso[task.setvariable variable=Template.TitlePrefix]$Env:TitlePrefix"
}

if ("" -ne $Env:InsertToolset)
{
Write-Host "Setting InsertToolset to $Env:InsertToolset"
Write-Host "##vso[task.setvariable variable=Template.InsertToolset]$Env:InsertToolset"
}

# Workaround for pipeline parameters not supporting optional empty parameters.
if ("" -ne $Env:VSBranchName -and "default" -ne $Env:VSBranchName)
{
Write-Host "Setting VSBranchName to $Env:VSBranchName"
Write-Host "##vso[task.setvariable variable=Template.VSBranchName]$Env:VSBranchName"
}

if ("" -ne $Env:ComponentBuildProjectName)
{
Write-Host "Setting component Azdo parameters $('$(System.CollectionUri)') and $Env:ComponentBuildProjectName"
Write-Host "##vso[task.setvariable variable=Template.ComponentAzdoUri]$('$(System.CollectionUri)')"
Write-Host "##vso[task.setvariable variable=Template.ComponentProjectName]$Env:ComponentBuildProjectName"
}

displayName: Set Variables from Input Parameters
env:
CreateDraftPR: ${{ parameters.createDraftPR }}
AutoComplete: ${{ parameters.autoComplete }}
TitlePrefix: ${{ parameters.titlePrefix }}
InsertToolset: ${{ parameters.insertToolset }}
VSBranchName: ${{ parameters.vsBranchName }}
ComponentBuildProjectName: ${{ parameters.componentBuildProjectName }}

# Now that everything is set, actually perform the insertion.
- powershell: |
mv RoslynTools.VisualStudioInsertionTool.* RIT
.\RIT\tools\OneOffInsertion.ps1 `
-autoComplete "$(Template.AutoComplete)" `
-buildQueueName "$(Build.DefinitionName)" `
-cherryPick "(default)" `
-clientId "${{ parameters.clientId }}" `
-clientSecret "${{ parameters.clientSecret }}" `
-componentAzdoUri "$(Template.ComponentAzdoUri)" `
-componentProjectName "$(Template.ComponentProjectName)" `
-componentName "Roslyn" `
-componentGitHubRepoName "dotnet/roslyn" `
-componentBranchName "$(Template.ComponentBranchName)" `
-createDraftPR "$(Template.CreateDraftPR)" `
-defaultValueSentinel "(default)" `
-dropPath "(default)" `
-insertCore "(default)" `
-insertDevDiv "(default)" `
-insertionCount "1" `
-insertToolset "$(Template.InsertToolset)" `
-titlePrefix "$(Template.TitlePrefix)" `
-titleSuffix "$(Template.TitleSuffix)" `
-queueValidation "true" `
-requiredValueSentinel "REQUIRED" `
-reviewerGUID "6c25b447-1d90-4840-8fde-d8b22cb8733e" `
-specificBuild "$(Build.BuildNumber)" `
-updateAssemblyVersions "(default)" `
-updateCoreXTLibraries "(default)" `
-visualStudioBranchName "$(Template.VSBranchName)" `
-writePullRequest "prid.txt" `
displayName: 'Run OneOffInsertion.ps1'

- script: 'echo. && echo. && type "prid.txt" && echo. && echo.'
displayName: 'Report PR URL'
4 changes: 2 additions & 2 deletions global.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"xcopy-msbuild": "16.10.0-preview2"
},
"msbuild-sdks": {
"Microsoft.DotNet.Arcade.Sdk": "6.0.0-beta.21377.2",
"Microsoft.DotNet.Helix.Sdk": "6.0.0-beta.21377.2"
"Microsoft.DotNet.Arcade.Sdk": "6.0.0-beta.21378.2",
"Microsoft.DotNet.Helix.Sdk": "6.0.0-beta.21378.2"
}
}
Loading