Skip to content

Move to shine-oss Azure DevOps project #9929

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 13 commits into from
Aug 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
908 changes: 495 additions & 413 deletions MUXControls.sln

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions build/AzurePipelinesTemplates/MUX-BuildProject-Steps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ steps:
inputs:
filename: 'set'

- powershell: |
Get-Volume
displayName: 'Display disk space'
continueOnError: true

- task: 333b11bd-d341-40d9-afcf-b32d5ce6f23b@2
displayName: 'NuGet restore ${{ parameters.solutionPath }}'
inputs:
Expand Down
14 changes: 2 additions & 12 deletions build/AzurePipelinesTemplates/MUX-CreateNugetPackage-Job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ parameters:
jobs:
- job: ${{ parameters.jobName }}
pool:
${{ if eq(variables['System.CollectionUri'], 'https://dev.azure.com/ms/') }}:
${{ if eq(variables['System.CollectionUri'], 'https://dev.azure.com/shine-oss/') }}:
name: WinDevPoolOSS-S
${{ if ne(variables['System.CollectionUri'], 'https://dev.azure.com/ms/') }}:
${{ if ne(variables['System.CollectionUri'], 'https://dev.azure.com/shine-oss/') }}:
name: WinDevPool-S

steps:
Expand Down Expand Up @@ -88,13 +88,3 @@ jobs:
inputs:
PathtoPublish: '${{ parameters.nupkgdir }}'
artifactName: 'drop'

# To publish the package to vsts feed, set queue time variable NuGetFeed = d62f8eac-f05c-4c25-bccb-21f98b95c95f
# This is the magic GUID from the pipeline visual designer for this feed: https://dev.azure.com/ms/microsoft-ui-xaml/_packaging?_a=feed&feed=MUX-CI
- task: 333b11bd-d341-40d9-afcf-b32d5ce6f23b@2
condition: and(ne(variables['NuGetFeed'], ''), ne(variables['Build.Reason'], 'Manual'))
displayName: 'NuGet push to $(NuGetFeed)'
inputs:
command: push
publishVstsFeed: $(NuGetFeed)
packagesToPush: $(Build.ArtifactStagingDirectory)/*.nupkg
4 changes: 2 additions & 2 deletions build/AzurePipelinesTemplates/MUX-NugetReleaseTest-Job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ jobs:
- ${{ parameters.dependsOn }}

pool:
${{ if eq(variables['System.CollectionUri'], 'https://dev.azure.com/ms/') }}:
${{ if eq(variables['System.CollectionUri'], 'https://dev.azure.com/shine-oss/') }}:
name: WinDevPoolOSS-S
${{ if ne(variables['System.CollectionUri'], 'https://dev.azure.com/ms/') }}:
${{ if ne(variables['System.CollectionUri'], 'https://dev.azure.com/shine-oss/') }}:
name: WinDevPool-S
demands: ImageOverride -equals WinDevVS16-9
strategy:
Expand Down
4 changes: 2 additions & 2 deletions build/AzurePipelinesTemplates/MUX-RunHelixTests-Job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ jobs:
dependsOn: ${{ parameters.dependsOn }}
condition: ${{ parameters.condition }}
pool:
${{ if eq(variables['System.CollectionUri'], 'https://dev.azure.com/ms/') }}:
${{ if eq(variables['System.CollectionUri'], 'https://dev.azure.com/shine-oss/') }}:
name: WinDevPoolOSS-S
${{ if ne(variables['System.CollectionUri'], 'https://dev.azure.com/ms/') }}:
${{ if ne(variables['System.CollectionUri'], 'https://dev.azure.com/shine-oss/') }}:
name: WinDevPool-S
timeoutInMinutes: 120
strategy:
Expand Down
4 changes: 2 additions & 2 deletions build/AzurePipelinesTemplates/MUX-RunTestsOnPipeline-Job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ jobs:
dependsOn: ${{ parameters.dependsOn }}
condition: not(failed())
pool:
${{ if eq(variables['System.CollectionUri'], 'https://dev.azure.com/ms/') }}:
${{ if eq(variables['System.CollectionUri'], 'https://dev.azure.com/shine-oss/') }}:
name: WinDevPoolOSS-Test
${{ if ne(variables['System.CollectionUri'], 'https://dev.azure.com/ms/') }}:
${{ if ne(variables['System.CollectionUri'], 'https://dev.azure.com/shine-oss/') }}:
name: WinDevPool-Test
demands: ImageOverride -equals ${{ parameters.testOS }}

Expand Down
4 changes: 2 additions & 2 deletions build/AzurePipelinesTemplates/MUX-WACKTests-Job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ jobs:
- job: ${{ parameters.name }}
dependsOn: ${{ parameters.dependsOn }}
pool:
${{ if eq(variables['System.CollectionUri'], 'https://dev.azure.com/ms/') }}:
${{ if eq(variables['System.CollectionUri'], 'https://dev.azure.com/shine-oss/') }}:
name: WinDevPoolOSS-S
${{ if ne(variables['System.CollectionUri'], 'https://dev.azure.com/ms/') }}:
${{ if ne(variables['System.CollectionUri'], 'https://dev.azure.com/shine-oss/') }}:
name: WinDevPool-S
strategy:
maxParallel: 10
Expand Down
4 changes: 2 additions & 2 deletions build/MUX-CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ stages:
jobs:
- job: Build
pool:
${{ if eq(variables['System.CollectionUri'], 'https://dev.azure.com/ms/') }}:
${{ if eq(variables['System.CollectionUri'], 'https://dev.azure.com/shine-oss/') }}:
name: WinDevPoolOSS-L
${{ if ne(variables['System.CollectionUri'], 'https://dev.azure.com/ms/') }}:
${{ if ne(variables['System.CollectionUri'], 'https://dev.azure.com/shine-oss/') }}:
name: WinDevPool-L
demands: ImageOverride -equals WinDevVS17-latest
timeoutInMinutes: 120
Expand Down
7 changes: 4 additions & 3 deletions build/MUX-PR.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,12 @@ stages:
- job: Build
condition: eq(variables['useBuildOutputFromBuildId'],'')
pool:
${{ if eq(variables['System.CollectionUri'], 'https://dev.azure.com/ms/') }}:
${{ if eq(variables['System.CollectionUri'], 'https://dev.azure.com/shine-oss/') }}:
name: WinDevPoolOSS-L
${{ if ne(variables['System.CollectionUri'], 'https://dev.azure.com/ms/') }}:
${{ if ne(variables['System.CollectionUri'], 'https://dev.azure.com/shine-oss/') }}:
name: WinDevPool-L
demands: ImageOverride -equals WinDevVS17-latest
demands:
- ImageOverride -equals WinDevVS17-latest
timeoutInMinutes: 120
strategy:
maxParallel: 10
Expand Down
4 changes: 2 additions & 2 deletions build/MUX-SimpleBuildAndTest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ jobs:
condition:
eq(variables['useBuildOutputFromBuildId'],'')
pool:
${{ if eq(variables['System.CollectionUri'], 'https://dev.azure.com/ms/') }}:
${{ if eq(variables['System.CollectionUri'], 'https://dev.azure.com/shine-oss/') }}:
name: WinDevPoolOSS-L
${{ if ne(variables['System.CollectionUri'], 'https://dev.azure.com/ms/') }}:
${{ if ne(variables['System.CollectionUri'], 'https://dev.azure.com/shine-oss/') }}:
name: WinDevPool-L
demands: ImageOverride -equals WinDevVS17-latest
timeoutInMinutes: 120
Expand Down
2 changes: 2 additions & 0 deletions dev/AnimatedVisualPlayer/AnimatedVisualPlayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
#include <winerror.h>
#include <math.h>

#pragma warning( disable : 26495)

AnimatedVisualPlayer::AnimationPlay::AnimationPlay(
AnimatedVisualPlayer& owner,
float fromProgress,
Expand Down
2 changes: 1 addition & 1 deletion dev/Collections/HashMap.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ template <typename K, typename V>
class HashMap :
public ReferenceTracker<
HashMap<K, V>,
reference_tracker_implements_t<winrt::IMap<K, V>>::type,
typename reference_tracker_implements_t<winrt::IMap<K, V>>::type,
winrt::IMapView<K, V>,
winrt::IIterable<winrt::IKeyValuePair<K, V>>>
{
Expand Down
2 changes: 1 addition & 1 deletion dev/Collections/Vector.h
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,7 @@ template <typename T, bool isObservable, bool isBindable, bool isDependencyObjec
class VectorBase :
public ReferenceTracker<
VectorBase<T, isObservable, isBindable, isDependencyObjectBase, isNoTrackerRef, Options>,
reference_tracker_implements_t<typename Options::VectorType>::type,
typename reference_tracker_implements_t<typename Options::VectorType>::type,
typename Options::IterableType,
std::conditional_t<isObservable, typename Options::ObservableVectorType, void>>,
public Options::IVectorOwner
Expand Down
2 changes: 1 addition & 1 deletion dev/Collections/VectorIterator.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ template <typename T, bool isBindable = false, bool isDependencyObjectBase = tru
class VectorIterator :
public ReferenceTracker<
VectorIterator<T, isBindable, isDependencyObjectBase, Traits>,
reference_tracker_implements_t<typename Traits::IteratorType>::type>
typename reference_tracker_implements_t<typename Traits::IteratorType>::type>
{
public:
VectorIterator(typename Traits::VectorType const& vector)
Expand Down
2 changes: 2 additions & 0 deletions dev/CommandBarFlyout/CommandBarFlyout.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@

#include "CommandBarFlyout.properties.cpp"

#pragma warning( disable : 26495)

// Change to 'true' to turn on debugging outputs in Output window
bool CommandBarFlyoutTrace::s_IsDebugOutputEnabled{ false };
bool CommandBarFlyoutTrace::s_IsVerboseDebugOutputEnabled{ false };
Expand Down
2 changes: 1 addition & 1 deletion nuget.config
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<clear />

<!-- do not add new sources to this file. If new packages are required, push them to this feed. -->
<add key="MUX-Dependencies" value="https://pkgs.dev.azure.com/ms/microsoft-ui-xaml/_packaging/MUX-Dependencies/nuget/v3/index.json" />
<add key="MUX-Dependencies" value="https://pkgs.dev.azure.com/shine-oss/microsoft-ui-xaml/_packaging/MUX-Dependencies/nuget/v3/index.json" />

<add key="localpackages" value="localpackages" />
</packageSources>
Expand Down
6 changes: 5 additions & 1 deletion tools/MUXPGODatabase/config.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,8 @@ $packageId = "MUXPGODatabase"
$releaseVersionMajor = ( [int64]::Parse( $customProps.GetElementsByTagName("MUXVersionMajor").'#text' ) )
$releaseVersionMinor = ( [int64]::Parse( $customProps.GetElementsByTagName("MUXVersionMinor").'#text' ) )
$releaseVersionPatch = [int64] 0
$releaseVersionPrerelease = $null
$releaseVersionPrerelease = $null

# We are no longer running the PGO pipeline. WinUI2 development has switched from 'main' branch to 'winui2/main'.
# To keep things working without having to re-enable the PGO pipeline we hard-code the last version of MUXPGODatabase here.
$forkPointDateString = "2310202140"
7 changes: 5 additions & 2 deletions tools/MUXPGODatabase/restore-pgodb.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,12 @@ function Install-Package ( $package, $version )
}
}

$forkPoint = ( GetForkPoint $pgoBranch )
# We are no longer running the PGO pipeline. WinUI2 development has switched from 'main' branch to 'winui2/main'.
# To keep things working without having to re-enable the PGO pipeline we hard-code the last version of MUXPGODatabase and skip generating it from git history.
# $forkPoint = ( GetForkPoint $pgoBranch )
# $requestedVersion = MakeVersion $releaseVersionMajor $releaseVersionMinor $rel4873563b7953e2431caed4efcdc3b8261d1405cdaseVersionPatch $releaseVersionPrerelease $forkPoint.DateString $forkPoint.BranchString

$requestedVersion = MakeVersion $releaseVersionMajor $releaseVersionMinor $releaseVersionPatch $releaseVersionPrerelease $forkPoint.DateString $forkPoint.BranchString
$requestedVersion = MakeVersion $releaseVersionMajor $releaseVersionMinor $releaseVersionPatch $releaseVersionPrerelease $forkPointDateString $pgoBranch

Write-Host ( "PGO OPTIMIZE: requesting {0} version {1} ({2})" -f $packageId, ( FormatVersion $requestedVersion ), $forkPoint.SHA )

Expand Down