Use Arcade version suffixes for local (3.0.0-dev) and PR builds (3.0.0-ci) (#10279)
* Update versioning for local and PR builds to match Arcade versioning * Mark CanCancelIAsyncEnumerableClientToServerUpload as flaky - cref aspnet/AspNetCore-Internal#2465 * Disable rollforward in project template tests (3.0.0-dev is older than 3.0.0-preview*). This prevents tests from rolling forward onto technically older bits
This commit is contained in:
parent
fa73edb9bf
commit
117dd8cff4
|
|
@ -204,7 +204,7 @@ See ["Artifacts"](./Artifacts.md) for more explanation of the different folders
|
||||||
- Update the versions on `PackageReference` items in your .csproj project file to point to the version from your local build.
|
- Update the versions on `PackageReference` items in your .csproj project file to point to the version from your local build.
|
||||||
```xml
|
```xml
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="Microsoft.AspNetCore.SpaServices" Version="3.0.0-preview-0" />
|
<PackageReference Include="Microsoft.AspNetCore.SpaServices" Version="3.0.0-dev" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -48,7 +48,7 @@
|
||||||
is used by our build system.
|
is used by our build system.
|
||||||
-->
|
-->
|
||||||
<VsixVersionPrefix>16.0</VsixVersionPrefix>
|
<VsixVersionPrefix>16.0</VsixVersionPrefix>
|
||||||
<VsixVersionSuffix Condition="'$(BuildNumberSuffix)'=='t000'">424242.424242</VsixVersionSuffix>
|
<VsixVersionSuffix Condition="'$(OfficialBuild)'!='true'">424242.424242</VsixVersionSuffix>
|
||||||
<VsixVersionSuffix Condition="'$(VsixVersionSuffix)'==''">$(BuildNumberSuffix.Replace('-', '.'))</VsixVersionSuffix>
|
<VsixVersionSuffix Condition="'$(VsixVersionSuffix)'==''">$(BuildNumberSuffix.Replace('-', '.'))</VsixVersionSuffix>
|
||||||
<VsixVersion>$(VsixVersionPrefix).$(VsixVersionSuffix)</VsixVersion>
|
<VsixVersion>$(VsixVersionPrefix).$(VsixVersionSuffix)</VsixVersion>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
<!-- Used for generating stable upgrade codes for bundles -->
|
<!-- Used for generating stable upgrade codes for bundles -->
|
||||||
<Version>$(AspNetCoreMajorVersion).$(AspNetCoreMinorVersion).$(AspNetCorePatchVersion).0</Version>
|
<Version>$(AspNetCoreMajorVersion).$(AspNetCoreMinorVersion).$(AspNetCorePatchVersion).0</Version>
|
||||||
<!-- Actual upgrade code used in bundles to ensure upgrades withing a version band, e.g. 3.0.0.xxx -->
|
<!-- Actual upgrade code used in bundles to ensure upgrades withing a version band, e.g. 3.0.0.xxx -->
|
||||||
<BundleVersion>$(AspNetCoreMajorVersion).$(AspNetCoreMinorVersion).$(AspNetCorePatchVersion).$(_BuildNumberShortDate)</BundleVersion>
|
<BundleVersion>$(AspNetCoreMajorVersion).$(AspNetCoreMinorVersion).$(AspNetCorePatchVersion).$(FileRevisionVersion)</BundleVersion>
|
||||||
<Configuration Condition="'$(Configuration)' == ''">Release</Configuration>
|
<Configuration Condition="'$(Configuration)' == ''">Release</Configuration>
|
||||||
<Platform Condition="'$(Platform)' == ''">x64</Platform>
|
<Platform Condition="'$(Platform)' == ''">x64</Platform>
|
||||||
<Lang Condition="'$(Lang)' == ''">ENU</Lang>
|
<Lang Condition="'$(Lang)' == ''">ENU</Lang>
|
||||||
|
|
|
||||||
|
|
@ -9,4 +9,4 @@ $ErrorActionPreference = 'Stop'
|
||||||
|
|
||||||
. $PSScriptRoot\Test-Template.ps1
|
. $PSScriptRoot\Test-Template.ps1
|
||||||
|
|
||||||
Test-Template "angular" "angular" "Microsoft.DotNet.Web.Spa.ProjectTemplates.3.0.0-preview5-t000.nupkg" $true
|
Test-Template "angular" "angular" "Microsoft.DotNet.Web.Spa.ProjectTemplates.3.0.0-dev.nupkg" $true
|
||||||
|
|
|
||||||
|
|
@ -9,4 +9,4 @@ $ErrorActionPreference = 'Stop'
|
||||||
|
|
||||||
. $PSScriptRoot\Test-Template.ps1
|
. $PSScriptRoot\Test-Template.ps1
|
||||||
|
|
||||||
Test-Template "web" "web" "Microsoft.DotNet.Web.ProjectTemplates.3.0.3.0.0-preview4-t000.nupkg" $false
|
Test-Template "web" "web" "Microsoft.DotNet.Web.ProjectTemplates.3.0.3.0.0-dev.nupkg" $false
|
||||||
|
|
|
||||||
|
|
@ -6,4 +6,4 @@ param()
|
||||||
|
|
||||||
. $PSScriptRoot\Test-Template.ps1
|
. $PSScriptRoot\Test-Template.ps1
|
||||||
|
|
||||||
Test-Template "webapp" "webapp -au Individual" "Microsoft.DotNet.Web.ProjectTemplates.3.0.3.0.0-preview4-t000.nupkg" $false
|
Test-Template "webapp" "webapp -au Individual" "Microsoft.DotNet.Web.ProjectTemplates.3.0.3.0.0-dev.nupkg" $false
|
||||||
|
|
|
||||||
|
|
@ -9,4 +9,4 @@ $ErrorActionPreference = 'Stop'
|
||||||
|
|
||||||
. $PSScriptRoot\Test-Template.ps1
|
. $PSScriptRoot\Test-Template.ps1
|
||||||
|
|
||||||
Test-Template "react" "react" "Microsoft.DotNet.Web.Spa.ProjectTemplates.3.0.0-preview4-t000.nupkg" $true
|
Test-Template "react" "react" "Microsoft.DotNet.Web.Spa.ProjectTemplates.3.0.0-dev.nupkg" $true
|
||||||
|
|
|
||||||
|
|
@ -9,4 +9,4 @@ $ErrorActionPreference = 'Stop'
|
||||||
|
|
||||||
. $PSScriptRoot\Test-Template.ps1
|
. $PSScriptRoot\Test-Template.ps1
|
||||||
|
|
||||||
Test-Template "reactredux" "reactredux" "Microsoft.DotNet.Web.Spa.ProjectTemplates.3.0.0-preview4-t000.nupkg" $true
|
Test-Template "reactredux" "reactredux" "Microsoft.DotNet.Web.Spa.ProjectTemplates.3.0.0-dev.nupkg" $true
|
||||||
|
|
|
||||||
|
|
@ -9,4 +9,4 @@ $ErrorActionPreference = 'Stop'
|
||||||
|
|
||||||
. $PSScriptRoot\Test-Template.ps1
|
. $PSScriptRoot\Test-Template.ps1
|
||||||
|
|
||||||
Test-Template "mvc" "mvc -au Individual" "Microsoft.DotNet.Web.ProjectTemplates.3.0.3.0.0-preview4-t000.nupkg" $false
|
Test-Template "mvc" "mvc -au Individual" "Microsoft.DotNet.Web.ProjectTemplates.3.0.3.0.0-dev.nupkg" $false
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,8 @@
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
|
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
|
||||||
<RestoreSources>${RestoreSources}</RestoreSources>
|
<RestoreSources>${RestoreSources}</RestoreSources>
|
||||||
|
<!-- This sets an option which prevents the tests from rolling forward into a newer shared framework. -->
|
||||||
|
<UserRuntimeConfig>$(MSBuildThisFileDirectory)runtimeconfig.norollforward.json</UserRuntimeConfig>
|
||||||
<!-- Workaround https://github.com/dotnet/cli/issues/10528 -->
|
<!-- Workaround https://github.com/dotnet/cli/issues/10528 -->
|
||||||
<BundledNETCorePlatformsPackageVersion>${MicrosoftNETCorePlatformsPackageVersion}</BundledNETCorePlatformsPackageVersion>
|
<BundledNETCorePlatformsPackageVersion>${MicrosoftNETCorePlatformsPackageVersion}</BundledNETCorePlatformsPackageVersion>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
@ -19,7 +21,7 @@
|
||||||
LatestRuntimeFrameworkVersion="${MicrosoftAspNetCoreAppPackageVersion}"
|
LatestRuntimeFrameworkVersion="${MicrosoftAspNetCoreAppPackageVersion}"
|
||||||
TargetingPackName="Microsoft.AspNetCore.App.Ref"
|
TargetingPackName="Microsoft.AspNetCore.App.Ref"
|
||||||
TargetingPackVersion="${MicrosoftAspNetCoreAppPackageVersion}"
|
TargetingPackVersion="${MicrosoftAspNetCoreAppPackageVersion}"
|
||||||
RuntimePackNamePatterns="Microsoft.NETCore.App.Runtime.**RID**"
|
RuntimePackNamePatterns="Microsoft.AspNetCore.App.Runtime.**RID**"
|
||||||
RuntimePackRuntimeIdentifiers="${SupportedRuntimeIdentifiers}" />
|
RuntimePackRuntimeIdentifiers="${SupportedRuntimeIdentifiers}" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
"rollForward": "Disable"
|
||||||
|
}
|
||||||
|
|
@ -126,6 +126,9 @@
|
||||||
Properties=""
|
Properties=""
|
||||||
OutputPath="$(TestTemplateCreationFolder)Directory.Build.props" />
|
OutputPath="$(TestTemplateCreationFolder)Directory.Build.props" />
|
||||||
|
|
||||||
|
<!-- Workaround https://github.com/dotnet/core-setup/issues/6420 - there is no MSBuild setting for rollforward yet -->
|
||||||
|
<Copy SourceFiles="$(MSBuildThisFileDirectory)Infrastructure\runtimeconfig.norollforward.json" DestinationFolder="$(TestTemplateCreationFolder)" UseHardLinksIfPossible="true" />
|
||||||
|
|
||||||
<Delete Files="$(TestTemplateTestsProps)" />
|
<Delete Files="$(TestTemplateTestsProps)" />
|
||||||
|
|
||||||
</Target>
|
</Target>
|
||||||
|
|
|
||||||
|
|
@ -13,6 +13,7 @@ using Microsoft.AspNetCore.Http.Connections;
|
||||||
using Microsoft.AspNetCore.Http.Connections.Client;
|
using Microsoft.AspNetCore.Http.Connections.Client;
|
||||||
using Microsoft.AspNetCore.SignalR.Protocol;
|
using Microsoft.AspNetCore.SignalR.Protocol;
|
||||||
using Microsoft.AspNetCore.SignalR.Tests;
|
using Microsoft.AspNetCore.SignalR.Tests;
|
||||||
|
using Microsoft.AspNetCore.Testing;
|
||||||
using Microsoft.AspNetCore.Testing.xunit;
|
using Microsoft.AspNetCore.Testing.xunit;
|
||||||
using Microsoft.Extensions.DependencyInjection;
|
using Microsoft.Extensions.DependencyInjection;
|
||||||
using Microsoft.Extensions.Logging;
|
using Microsoft.Extensions.Logging;
|
||||||
|
|
@ -769,6 +770,7 @@ namespace Microsoft.AspNetCore.SignalR.Client.FunctionalTests
|
||||||
}
|
}
|
||||||
|
|
||||||
[Theory]
|
[Theory]
|
||||||
|
[Flaky("https://github.com/aspnet/AspNetCore-Internal/issues/2465", FlakyOn.All)]
|
||||||
[MemberData(nameof(HubProtocolsAndTransportsAndHubPaths))]
|
[MemberData(nameof(HubProtocolsAndTransportsAndHubPaths))]
|
||||||
[LogLevel(LogLevel.Trace)]
|
[LogLevel(LogLevel.Trace)]
|
||||||
public async Task CanCancelIAsyncEnumerableClientToServerUpload(string protocolName, HttpTransportType transportType, string path)
|
public async Task CanCancelIAsyncEnumerableClientToServerUpload(string protocolName, HttpTransportType transportType, string path)
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@aspnet/signalr-protocol-msgpack",
|
"name": "@aspnet/signalr-protocol-msgpack",
|
||||||
"version": "3.0.0-preview4-t000",
|
"version": "3.0.0-dev",
|
||||||
"description": "MsgPack Protocol support for ASP.NET Core SignalR",
|
"description": "MsgPack Protocol support for ASP.NET Core SignalR",
|
||||||
"main": "./dist/cjs/index.js",
|
"main": "./dist/cjs/index.js",
|
||||||
"module": "./dist/esm/index.js",
|
"module": "./dist/esm/index.js",
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@aspnet/signalr",
|
"name": "@aspnet/signalr",
|
||||||
"version": "3.0.0-preview4-t000",
|
"version": "3.0.0-dev",
|
||||||
"description": "ASP.NET Core SignalR Client",
|
"description": "ASP.NET Core SignalR Client",
|
||||||
"main": "./dist/cjs/index.js",
|
"main": "./dist/cjs/index.js",
|
||||||
"module": "./dist/esm/index.js",
|
"module": "./dist/esm/index.js",
|
||||||
|
|
|
||||||
|
|
@ -17,10 +17,10 @@
|
||||||
<AspNetCoreModuleVersionRevision>$(AspNetCorePatchVersion)</AspNetCoreModuleVersionRevision>
|
<AspNetCoreModuleVersionRevision>$(AspNetCorePatchVersion)</AspNetCoreModuleVersionRevision>
|
||||||
|
|
||||||
<OfficialBuildId Condition="'$(OfficialBuildId)' == ''">$(BUILD_BUILDNUMBER)</OfficialBuildId>
|
<OfficialBuildId Condition="'$(OfficialBuildId)' == ''">$(BUILD_BUILDNUMBER)</OfficialBuildId>
|
||||||
<OfficialBuildId Condition="'$(OfficialBuildId)' == '' AND '$(IsOfficialBuild)' == 'true'">$([System.DateTime]::Now.ToString('yyyyMMdd')).1</OfficialBuildId>
|
<OfficialBuild Condition="'$(OfficialBuildId)' != '' AND '$(BUILD_REASON)' != 'PullRequest'">true</OfficialBuild>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<PropertyGroup Condition=" '$(OfficialBuildId)' != '' ">
|
<PropertyGroup Condition=" '$(OfficialBuild)' == 'true' ">
|
||||||
<!-- This *mostly* implements core versioning. Spec: https://github.com/dotnet/arcade/blob/master/Documentation/CorePackages/Versioning.md -->
|
<!-- This *mostly* implements core versioning. Spec: https://github.com/dotnet/arcade/blob/master/Documentation/CorePackages/Versioning.md -->
|
||||||
<_BuildNumber>$(OfficialBuildId)</_BuildNumber>
|
<_BuildNumber>$(OfficialBuildId)</_BuildNumber>
|
||||||
|
|
||||||
|
|
@ -40,15 +40,17 @@
|
||||||
<BuildNumberSuffix>$(_BuildNumberShortDate)-$(VersionSuffixBuildOfTheDayPadded)</BuildNumberSuffix>
|
<BuildNumberSuffix>$(_BuildNumberShortDate)-$(VersionSuffixBuildOfTheDayPadded)</BuildNumberSuffix>
|
||||||
|
|
||||||
<FileRevisionVersion>$(_BuildNumberShortDate)</FileRevisionVersion>
|
<FileRevisionVersion>$(_BuildNumberShortDate)</FileRevisionVersion>
|
||||||
|
<VersionSuffix>$(PreReleaseLabel)-$(BuildNumberSuffix)</VersionSuffix>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<PropertyGroup Condition=" '$(OfficialBuildId)' == '' ">
|
<PropertyGroup Condition=" '$(OfficialBuild)' != 'true' ">
|
||||||
<BuildNumberSuffix>t000</BuildNumberSuffix>
|
<BuildNumberSuffix>0</BuildNumberSuffix>
|
||||||
<FileRevisionVersion>42424</FileRevisionVersion>
|
<FileRevisionVersion>42424</FileRevisionVersion>
|
||||||
|
<VersionSuffix Condition="'$(CI)' != 'true'">dev</VersionSuffix>
|
||||||
|
<VersionSuffix Condition="'$(CI)' == 'true'">ci</VersionSuffix>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<VersionSuffix>$(PreReleaseLabel)-$(BuildNumberSuffix)</VersionSuffix>
|
|
||||||
<BrandingVersionSuffix>$(PreReleaseBrandingLabel) Build $(BuildNumberSuffix)</BrandingVersionSuffix>
|
<BrandingVersionSuffix>$(PreReleaseBrandingLabel) Build $(BuildNumberSuffix)</BrandingVersionSuffix>
|
||||||
|
|
||||||
<!-- Servicing builds have different characteristics for the way dependencies, baselines, and versions are handled. -->
|
<!-- Servicing builds have different characteristics for the way dependencies, baselines, and versions are handled. -->
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue