Commit Graph

384 Commits

Author SHA1 Message Date
Doug Bunting 7c3d249c77 Fix core-setup URI 2019-03-20 08:59:09 -07:00
Javier Calvarro Nelson 9f1a978230
[Infrastructure improvements] (#8275)
* Improved selenium start and tear down
  * Selenium is set up and torn down in an assembly fixture.
  * Selenium is initialized lazily and in a non-blocking way.
  * Selenium processes are tracked as part of the build and their pids
    written to a file on disk for cleanup in the event of unexpected
    termination of the test process.
  * Browser fixture retries with linear backoff to create a remote
    driver. Under heavy load (like when we are doing a simultaneous NPM
    restore) the selenium server can become unresponsive so we retry
    three times, with a longer comand timeout allowance each time up to
    a max of 3 minutes.
* Moved test project setup to build time instead of runtime.
  * Added target PrepareForTest to create the required files for testing
    * The template creation folder.
    * The template props file to use our built packages.
    * The folder for the custom hive.
  * Added assembly metadata attributes to find all the data we need to
    run the tests.
    * Path to the artifacts shipping packages folder.
    * Path to the artifacts non-shipping packages folder.
    * Path to the test templates creation folder.
    * Path to use for the custom templating hive used in tests.
  * Proper cleanup as part of the build
    * Remove the test templates creation folder.
    * Remove the test packages restore path.
    * Recreate the test templates creation folder.
    * Recreate the test packages restore path.
  * Generated Directory.Build.Props and Directory.Build.Targets in the
    test templates creation folder.
  * Cleaned up potentially stale templatetestsprops.
* Improved test flows
  * Initialization is done lazily and asynchronously.
    * Selenium
    * Browser fixture
    * Template initialization.
  * Flattened test flows to avoid assertions inside deep callstacks.
    * All assertions happen at the test level with improved error messages.
      * With the exception of the migrations assertions.
    * Assertions contain information about which step failed, for what
      project and what failure details.
  * Broke down tests to perform individual steps instead of mixing build
    and publish.
    * Publish project.
    * Build project. (Debug)
    * Run built project.
    * Run published project.
  * Concentrated build logic into the Project class.
    * Context between the different steps of a test is maintained in
      this class.
    * All operations that require coordination are performed within this
      class.
      * There is a lock for dotnet and a lock for nodejs. When building
        SPAs we acquire the nodejs lock to correctly prevent multiple
        runs of nodejs in parallel.

[ApiAuthorization template cleanups]
  * Fix preview3 issues with breaking changes on Entity framework by
    manually configuring the model in ApiAuthorizationDbContext.
  * Add app.db to the project file when using local db.
  * Fix linting errors on angular template.
  * Fix react tests
  * Add tests to cover new auth options in the SPA templates.
2019-03-20 08:44:20 +01:00
Doug Bunting cb864e64f2 Manually (and coherently) update dependencies from 5 repositories
- previous updates of Extensions, etc. were incoherent and not caught until we reached aspnet/AspNetCore
2019-03-18 19:36:09 -07:00
Doug Bunting 533104dd2a
Merge branch 'release/2.2' => 'master' (#8522)
- barely [automated]
2019-03-18 19:34:26 -07:00
Andrew Stanton-Nurse 706778d4de
Add a separate test pass to run flaky tests that doesn't fail the build (#8486)
Similar to https://github.com/aspnet/Extensions/pull/1239.
2019-03-18 18:21:14 -07:00
Doug Bunting 1d1d664ea1
Merge branch 'release/2.2' into master
- no-ops except for
  - Update PatchConfig.props (2835f85b6c)
  - Add some additional logging to ErrorPageMiddlewareWebSite (#8049) (aka 1ca6202e7e)
  - Put MVC's functional tests in a separate test group (#8118) (aka db3795b368)
- ignore the build queue (4f2a0edc97) change because we're not hitting Linux resource issues in `master` branch
- ignore baseline test changes (5661c41909 and d2a4435ac8) because they're not applicable in `master`
2019-03-18 12:36:01 -07:00
Javier Calvarro Nelson 3189146b4e
Fix typo in killprocesses.ps1
Fixes variable reference typo.
2019-03-16 19:15:47 +01:00
Javier Calvarro Nelson adf978a579 Kills java instances for Azure pipelines (#8568)
* Kills java instances for Azure pipelines

* Improved version

* Update output

* Add missing quote
2019-03-15 16:26:21 -07:00
BrennanConroy 2835f85b6c Update PatchConfig.props 2019-03-15 10:59:18 -07:00
Doug Bunting c90ffb0033
Merge branch 'release/2.2' => 'master' #8299
[mostly automated]
2019-03-14 11:56:47 -07:00
Doug Bunting 0c6591baea
Merge release/2.1 up to commit d2a4435ac8 => release/2.2
- remove updates about baseline test (5661c41909 and d2a4435ac8)
  - already done (differently) in release/2.2
- add JDK installation -- missing in these images but not needed in `release/2.1`
- add packages needed to run Chrome
2019-03-13 19:17:05 -07:00
Doug Bunting 6d1c75c095 Update all dependencies manually
- add `CoherentParentDependency` attributes for the new `darc` version
- also update docs/ReferenceResolution.md to match aspnet/Extensions version (and pick up improvements there)
2019-03-13 15:48:05 -07:00
Hao Kung a591a7cd78
Stop waiting for helix work item completion (#8483) 2019-03-13 15:02:03 -07:00
Hao Kung d818126c4d
Ignore mission control test failures for helix (#8464) 2019-03-13 12:53:57 -07:00
dotnet-maestro ef5d0cd706 Update dependencies from https://github.com/aspnet/AspNetCore-Tooling build 20190312.2
This change updates the following dependencies
- Microsoft.AspNetCore.Mvc.Razor.Extensions - 3.0.0-preview4.19162.2
- Microsoft.NET.Sdk.Razor - 3.0.0-preview4.19162.2
- Microsoft.CodeAnalysis.Razor - 3.0.0-preview4.19162.2
- Microsoft.AspNetCore.Razor.Language - 3.0.0-preview4.19162.2
2019-03-13 09:01:00 -07:00
Pavel Krymets afeb139a5c
Consume Microsoft.Internal.Extensions.Refs (#8261) 2019-03-12 12:47:06 -07:00
Andrew Stanton-Nurse 61a9964a15
[BRT] Mitigating flaky SignalR tests (#8423)
* add the ability to skip c++ tests and skip signalr one (mitigates #8421)
2019-03-12 12:33:54 -07:00
Javier Calvarro Nelson d7a9606040
[Templating][Components] Unify and improve E2E testing infrastructure (#8188)
* Unify the Templating and Components testing infrastructure.
* Enable test project discovery in the components E2E tests.
* Enable selectively disabling Selenium tests through build properties.
2019-03-11 18:40:18 +01:00
Ryan Brandenburg aa57df121b Updated PR with my changes 2019-03-08 09:48:08 -08:00
David Fowler bd6faa5ca1
Chunked request parsing does not properly update examined (#8318)
- The chunked parsing logic didn't properly update the examined position when parsing the chunked prefix. This started to throw because Pipe now throws if examined is set to the position before the previous.
2019-03-08 09:42:02 -08:00
Doug Bunting 4cbc33da74 Update branding to 2.2.4 2019-03-07 11:53:17 -08:00
Hao Kung 435867e8c5
Add ability to skip tests on specific helix queues (#8231) 2019-03-06 23:53:18 -08:00
Pranav K cdd6e3194e
Update versions (#8198)
* Update versions
2019-03-06 17:56:51 -08:00
David Fowler d1ee93b94b
Allow disabling automatic MVC reference (#8167) 2019-03-05 09:19:28 -08:00
Hao Kung 3652b7a927
Helix tests should fail if exceptions thrown during test discovery (#8107) 2019-03-04 14:15:37 -08:00
Ben Adams ddce32a791 Use C#8 (#8128) 2019-03-02 19:48:43 -08:00
Pavel Krymets 01ce2836c8
Publish helix tests in release (#8104)
Fixes: https://github.com/aspnet/AspNetCore/issues/8103
2019-03-01 15:48:48 -08:00
Pavel Krymets cfe41771fd
Update core-setup to version containing signing fix and EF to version… (#8040)
… containing System.Data fix
2019-02-28 14:04:17 -08:00
Nate McMaster e7b00a5508
Deprecate the Microsoft.AspNetCore.App metapackage in favor of targeting and runtime packs (#7832)
* Deprecate the Microsoft.AspNetCore.App metapackage in favor of targeting and runtime packs
* Stop producing Microsoft.AspNetCore.App, and runtime.$(rid).Microsoft.AspNetCore.App
* Generate the shared framework without using 'NuGet' restore
* Stop producing intermediate packages for shared-framework only assemblies
* Put the platform manifest into the targeting pack (data/Microsoft.AspNetCore.App.PlatformManifest.txt)
* Create well-known, shared intermediate directories that installers can use to bundle content
2019-02-28 10:14:18 -08:00
Nate McMaster 3d2946060f
Update ResolveReferences.targets to include ContentFiles and Build assets from .Sources packages (#8032) 2019-02-28 09:30:10 -08:00
Pavel Krymets b6216b6101
Disable parallel publish for Helix (#8004) 2019-02-27 13:28:54 -08:00
Pavel Krymets 783131a750
Re-enable full IIS tests on Windows.10.Amd64.EnterpriseRS3.ASPNET.Open (#7959) 2019-02-27 11:03:41 -08:00
Pavel Krymets 3b95ef0b95
Ignore error output from git diff in code check (#7923) 2019-02-25 12:55:54 -08:00
Doug Bunting ad599f14d3
Move to latest Xunit packages (#7905)
- now consistent with AspNetCore-Tooling and only slightly ahead of Extensibility
2019-02-25 12:26:44 -08:00
Nate McMaster d2d60000eb
Create Linux installers for the aspnetcore targeting pack (#7776)
This creates 3 new build outputs:

* aspnetcore-targeting-pack-$(version).tar.gz
* aspnetcore-targeting-pack-$(version)-linux-x64.deb
* aspnetcore-targeting-pack-$(version)-linux-x64.rpm

Other changes:
* Make RPM packaging consistent with other installers. Vendor == Microsoft Corporation
* Add shared properties for building the targeting pack (or not building it in a servicing build)
2019-02-25 12:00:36 -08:00
Pavel Krymets 78bc2a10b9
Reenable IISExpress on helix (#7586) 2019-02-25 09:05:19 -08:00
Nate McMaster f2658821b5
React to System.Runtime.CompilerServices.Unsafe moving into Microsoft.NETCore.App
React to dotnet/corefx#35526
2019-02-24 15:37:03 -08:00
Nate McMaster 8d0da78681
Update dependencies 2019-02-24 09:37:23 -08:00
Nate McMaster e02e047dcb
Merge branch 'master' into merge/release/3.0-preview3-to-master 2019-02-24 09:31:17 -08:00
Nate McMaster 1b27c9905c
Update dependencies and react to changes (#7844)
* Add workaround for dotnet/sdk#2976
* Add new restore sources
* Update BAR manifest to point to  https://dotnetfeed.blob.core.windows.net/aspnet-aspnetcore/index.json
* Obsolete WithCulture
* Add retries to dockerbuild.sh
* Ensure each test run gets a unique in-memory database
2019-02-22 19:09:08 -08:00
Nate McMaster 5be7d30231 Replace npm commands with yarn 2019-02-22 13:30:19 -08:00
dotnet-maestro f19e8da1da Update dependencies from https://github.com/aspnet/AspNetCore-Tooling build 20190221.3
This change updates the following dependencies
- Microsoft.AspNetCore.Mvc.Razor.Extensions - 3.0.0-preview4.19121.3
- Microsoft.NET.Sdk.Razor - 3.0.0-preview4.19121.3
- Microsoft.CodeAnalysis.Razor - 3.0.0-preview4.19121.3
- Microsoft.AspNetCore.Razor.Language - 3.0.0-preview4.19121.3
2019-02-22 10:26:11 -08:00
John Luo 2fd9e40b58 Merge branch 'release/3.0-preview3' 2019-02-21 16:01:22 -08:00
John Luo 4c0b114b12
Add gRPC templates (#7561) 2019-02-21 15:12:13 -08:00
Pavel Krymets 9355c7c1a5
Add reference assemblies support (#7764) 2019-02-21 14:33:35 -08:00
Ryan Nowak ebb527d347 [wip] Update Razor SDK and resolve issues
I'm still chasing one more issue.

(cherry picked from commit 616a4a36f5)
2019-02-21 11:42:23 -08:00
Nate McMaster 4451a80447
Merge branch 'release/3.0-preview3' 2019-02-21 10:30:11 -08:00
Nate McMaster fbaa3e8b77
Always kill processes and remove direct reference to component governance task (#7793) 2019-02-21 09:29:42 -08:00
Ryan Nowak 616a4a36f5 [wip] Update Razor SDK and resolve issues
I'm still chasing one more issue.
2019-02-21 09:14:17 -08:00
Nate McMaster df9d0240b5 Add dependency to MicroBuild.Core 0.3.0 2019-02-20 21:41:41 +00:00