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

Use Arcade version suffixes for local (3.0.0-dev) and PR builds (3.0.0-ci) #10279

Merged
merged 7 commits into from
May 16, 2019
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
2 changes: 1 addition & 1 deletion docs/BuildFromSource.md
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,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.
```xml
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.SpaServices" Version="3.0.0-preview-0" />
<PackageReference Include="Microsoft.AspNetCore.SpaServices" Version="3.0.0-dev" />
</ItemGroup>
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
is used by our build system.
-->
<VsixVersionPrefix>16.0</VsixVersionPrefix>
<VsixVersionSuffix Condition="'$(BuildNumberSuffix)'=='t000'">424242.424242</VsixVersionSuffix>
<VsixVersionSuffix Condition="'$(OfficialBuild)'!='true'">424242.424242</VsixVersionSuffix>
<VsixVersionSuffix Condition="'$(VsixVersionSuffix)'==''">$(BuildNumberSuffix.Replace('-', '.'))</VsixVersionSuffix>
<VsixVersion>$(VsixVersionPrefix).$(VsixVersionSuffix)</VsixVersion>

Expand Down
2 changes: 1 addition & 1 deletion src/Installers/Windows/Wix.props
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<!-- Used for generating stable upgrade codes for bundles -->
<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 -->
<BundleVersion>$(AspNetCoreMajorVersion).$(AspNetCoreMinorVersion).$(AspNetCorePatchVersion).$(_BuildNumberShortDate)</BundleVersion>
<BundleVersion>$(AspNetCoreMajorVersion).$(AspNetCoreMinorVersion).$(AspNetCorePatchVersion).$(FileRevisionVersion)</BundleVersion>
<Configuration Condition="'$(Configuration)' == ''">Release</Configuration>
<Platform Condition="'$(Platform)' == ''">x64</Platform>
<Lang Condition="'$(Lang)' == ''">ENU</Lang>
Expand Down
2 changes: 1 addition & 1 deletion src/ProjectTemplates/scripts/Run-Angular-Locally.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ $ErrorActionPreference = 'Stop'

. $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
2 changes: 1 addition & 1 deletion src/ProjectTemplates/scripts/Run-EmptyWeb-Locally.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ $ErrorActionPreference = 'Stop'

. $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
2 changes: 1 addition & 1 deletion src/ProjectTemplates/scripts/Run-Razor-Locally.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ param()

. $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
2 changes: 1 addition & 1 deletion src/ProjectTemplates/scripts/Run-React-Locally.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ $ErrorActionPreference = 'Stop'

. $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
2 changes: 1 addition & 1 deletion src/ProjectTemplates/scripts/Run-ReactRedux-Locally.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ $ErrorActionPreference = 'Stop'

. $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
2 changes: 1 addition & 1 deletion src/ProjectTemplates/scripts/Run-Starterweb-Locally.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ $ErrorActionPreference = 'Stop'

. $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
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
<PropertyGroup>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<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 -->
<BundledNETCorePlatformsPackageVersion>${MicrosoftNETCorePlatformsPackageVersion}</BundledNETCorePlatformsPackageVersion>
</PropertyGroup>
Expand All @@ -19,7 +21,7 @@
LatestRuntimeFrameworkVersion="${MicrosoftAspNetCoreAppPackageVersion}"
TargetingPackName="Microsoft.AspNetCore.App.Ref"
TargetingPackVersion="${MicrosoftAspNetCoreAppPackageVersion}"
RuntimePackNamePatterns="Microsoft.NETCore.App.Runtime.**RID**"
RuntimePackNamePatterns="Microsoft.AspNetCore.App.Runtime.**RID**"
RuntimePackRuntimeIdentifiers="${SupportedRuntimeIdentifiers}" />
</ItemGroup>

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"rollForward": "Disable"
}
3 changes: 3 additions & 0 deletions src/ProjectTemplates/test/ProjectTemplates.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,9 @@
Properties=""
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)" />

</Target>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
using Microsoft.AspNetCore.Http.Connections.Client;
using Microsoft.AspNetCore.SignalR.Protocol;
using Microsoft.AspNetCore.SignalR.Tests;
using Microsoft.AspNetCore.Testing;
using Microsoft.AspNetCore.Testing.xunit;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
Expand Down Expand Up @@ -769,6 +770,7 @@ async IAsyncEnumerable<string> clientStreamData()
}

[Theory]
[Flaky("https://github.com/aspnet/AspNetCore-Internal/issues/2465", FlakyOn.All)]
[MemberData(nameof(HubProtocolsAndTransportsAndHubPaths))]
[LogLevel(LogLevel.Trace)]
public async Task CanCancelIAsyncEnumerableClientToServerUpload(string protocolName, HttpTransportType transportType, string path)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"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",
"main": "./dist/cjs/index.js",
"module": "./dist/esm/index.js",
Expand Down
2 changes: 1 addition & 1 deletion src/SignalR/clients/ts/signalr/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@aspnet/signalr",
"version": "3.0.0-preview4-t000",
"version": "3.0.0-dev",
"description": "ASP.NET Core SignalR Client",
"main": "./dist/cjs/index.js",
"module": "./dist/esm/index.js",
Expand Down
12 changes: 7 additions & 5 deletions version.props
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@
<AspNetCoreModuleVersionRevision>$(AspNetCorePatchVersion)</AspNetCoreModuleVersionRevision>

<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 Condition=" '$(OfficialBuildId)' != '' ">
<PropertyGroup Condition=" '$(OfficialBuild)' == 'true' ">
<!-- This *mostly* implements core versioning. Spec: https://github.com/dotnet/arcade/blob/master/Documentation/CorePackages/Versioning.md -->
<_BuildNumber>$(OfficialBuildId)</_BuildNumber>

Expand All @@ -40,15 +40,17 @@
<BuildNumberSuffix>$(_BuildNumberShortDate)-$(VersionSuffixBuildOfTheDayPadded)</BuildNumberSuffix>

<FileRevisionVersion>$(_BuildNumberShortDate)</FileRevisionVersion>
<VersionSuffix>$(PreReleaseLabel)-$(BuildNumberSuffix)</VersionSuffix>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would changing the dash to a period resolve the format difference in releases between AspNetCoreRuntime.3.0.x64.3.0.0-preview-19081-0488 and Microsoft.Extensions.Logging.3.0.0-preview5.19227.9 ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes it would resolve the format difference, but it would create more problems. See #4339

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That issue was written before we moved to include the preview number in our versions. So, we could make the switch when we next update the branding in this repo. Suggest reopening #4339.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Re opened. I'll bring it up during our area-platform triage. It's not really a build team decision to do this or not because this impacts the appearance and behavior of the product, so I won't attempt to address that in this PR.

</PropertyGroup>

<PropertyGroup Condition=" '$(OfficialBuildId)' == '' ">
<BuildNumberSuffix>t000</BuildNumberSuffix>
<PropertyGroup Condition=" '$(OfficialBuild)' != 'true' ">
<BuildNumberSuffix>0</BuildNumberSuffix>
<FileRevisionVersion>42424</FileRevisionVersion>
<VersionSuffix Condition="'$(CI)' != 'true'">dev</VersionSuffix>
<VersionSuffix Condition="'$(CI)' == 'true'">ci</VersionSuffix>
</PropertyGroup>

<PropertyGroup>
<VersionSuffix>$(PreReleaseLabel)-$(BuildNumberSuffix)</VersionSuffix>
<BrandingVersionSuffix>$(PreReleaseBrandingLabel) Build $(BuildNumberSuffix)</BrandingVersionSuffix>

<!-- Servicing builds have different characteristics for the way dependencies, baselines, and versions are handled. -->
Expand Down