Commit Graph

37794 Commits

Author SHA1 Message Date
Andrew Stanton-Nurse 26fa19e080
Keep myself in the loop on PRs in my areas (#8708)
Whoooooo...
2019-03-21 11:28:45 -07:00
Javier Calvarro Nelson 5f4be179e3
Fix and identify flaky components E2E Tests (#8690) 2019-03-21 07:39:47 +01:00
Eilon Lipton 69732c9ecc
Remove unused namespaces from Worker template Program.cs (#8574)
Follow-up to 17344cd37f
2019-03-20 20:54:40 -07:00
Chirag Rupani aa89639d62 Removed Content Type header for response when no content is being returned (#8557)
Addresses #8230
2019-03-20 13:15:42 -07:00
Ryan Nowak b743ba2f66 Throw unhandled exceptions during prerendering
Fixes: #8609

Currently exceptions thrown during prerendering are simply logged. This
change uses the existing *unhandled exception* mechanism of the
renderer/circuit to throw these. The result is that the developer
exception page just works for prerendering.
2019-03-20 13:02:24 -07:00
mnltejaswini 2a08c6e54d Pass the formatter context to the CreateJsonSerializer. It gives ability to override and create serializer specific to the context (#8358)
* Pass the formatter context to the CreateJsonSerializer so that it gives ability to override and create serializer specific to the context
2019-03-20 12:01:41 -07:00
Jacques Eloff 314f67ec6e
Merge pull request #8450 from aspnet/joeloff/7729
Fix for #7729 to ensure upgradable bundles
2019-03-20 11:40:08 -07:00
Andrew Stanton-Nurse e61aa05b72
Fix #7477 by updating HttpSys readme (#8662)
We changed the README to "archived" before merging this repo into mondo repo. Whoops :).
2019-03-20 09:33:31 -07:00
Justin Kotalik 2d145682ce
Update some tests to be flaky rather than skipped (#8666) 2019-03-20 08:59:43 -07:00
Javier Calvarro Nelson 9db249e30a
[Components][Fixes #8058] Update blazor template to use IWebHostEnvironment (#8234) 2019-03-20 16:59:17 +01:00
Doug Bunting 7c3d249c77 Fix core-setup URI 2019-03-20 08:59:09 -07:00
Justin Kotalik b8e7cbad02
Remove Out-Of-Process test site fixture and make deployer check physical (#8659) 2019-03-20 08:33:26 -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
Chris Ross 0456c9dcc9
Handle SIGTERM exit code #6526 (#8294) 2019-03-19 19:15:00 -04:00
Artak Mkrtchyan 37a48d897b Update default log levels for templates 2019-03-19 13:52:14 -07:00
Jacques Eloff eb1ce947c5 Fix up property group, preprocessor statement 2019-03-19 11:50:13 -07:00
Jacques Eloff eb8ca48e77 Remove duplicate inputs 2019-03-19 11:50:12 -07:00
Jacques Eloff 2aabd9f847 Fix inputs for UpgradeCode 2019-03-19 11:50:11 -07:00
Jacques Eloff f87c75a90d Fix for #7729 to ensure upgradable bundles 2019-03-19 11:50:11 -07:00
Justin Kotalik 9f724f6ac4 Revert "Publish MusicStore as part of build (#8578)" (#8655)
This reverts commit f3eaa73c1a.
2019-03-19 11:03:48 -07:00
Mikael Mengistu 6038621630
Update acessTokenProvider selecting logic for restarting connection (#8569) 2019-03-19 10:55:53 -07:00
Justin Kotalik 26c487b0c0
Use examined rather than consumed for content length of body. (#8223) 2019-03-19 08:25:57 -07:00
Pranav K f3eaa73c1a
Publish MusicStore as part of build (#8578)
* Publish MusicStore as part of build

* Add a target to publish MusicStore as part of E2E tests
* Publishing for x86 causes unit tests in MusicStore to have weird
reference issues. Removing these since they are very pretty low value.
2019-03-19 07:17:55 -07:00
Doug Bunting bcead68f0c React to EntityFrameworkCore and AspNetCore-Tooling breaking changes
- avoid `[Obsolete]` EF Core method
- mirror recent `RazorIntegrationTestBase` changes in this repo
2019-03-18 19:36:09 -07: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
Ryan Nowak f303a55a8e Add skeleton to use components + prerendering
This adds the skeleton needed for components + prerendring development
in the MVC sandbox. We don't currently have a sample app for quick and
dirty testing.
2019-03-18 10:18:04 -07:00
Justin Kotalik a3c8bd16f7
Make Kestrels Internals truly internal. (#8517) 2019-03-18 10:15:39 -07:00
Matheus Marques 5c6e1aa1d9 [Templating] Fix react template typos (#8592) 2019-03-18 09:42:56 +01:00
Justin Kotalik 8349109647
Atomic swap the request drained handler when shutting down. (#8529) 2019-03-17 10:09:04 -07:00
Javier Calvarro Nelson 3189146b4e
Fix typo in killprocesses.ps1
Fixes variable reference typo.
2019-03-16 19:15:47 +01:00
Alexey Malinin 2eb0692434 Change name of argument in "WebHostExtensions" (#8411) 2019-03-16 12:16:27 -04:00
Doug Bunting 909d951caf Unpin 3 Microsoft.Extensions.Configuration packages
- shipping in this release
2019-03-15 17:31:59 -07:00
Doug Bunting aa384f8765
Merge branch 'release/2.1' => 'release/2.2' (#8570)
- mostly [automated]
2019-03-15 17:15:20 -07: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
Doug Bunting 73f288bcb6
Merge branch 'release/2.2' into merge/release/2.1-to-release/2.2 2019-03-15 14:25:55 -07:00
Hao Kung 95ab2fa4af
Split ILookupNormalizer.Normalize into Name/Email methods (#8412) 2019-03-15 14:00:40 -07:00
Doug Bunting 2a2809afe4 Unpin Microsoft.Extensions.Configuration.Binder package
- included in this release
2019-03-15 13:28:14 -07:00
Doug Bunting 231705dc1e
Merge branch 'release/2.1' => 'release/2.2' (#8553)
- somewhat [automated]
2019-03-15 11:42:37 -07:00
Pavel Krymets 22623b905f
Add dependency from AspNetCore targeting pack to dotnet Core targeting pack (#8490)
Fixes https://github.com/aspnet/AspNetCore/issues/8284
2019-03-15 11:28:42 -07:00
BrennanConroy 2835f85b6c Update PatchConfig.props 2019-03-15 10:59:18 -07:00
James Newton-King 47fab927a1
Add friendly error message to UrlHelper for when there is no IRouter (#8145) 2019-03-15 10:14:07 -07:00
Doug Bunting 93c7555d88
Merge branch 'release/2.2' into merge/release/2.1-to-release/2.2 2019-03-15 09:42:07 -07:00
Matt Mitchell 7c732d55f6 Pin System.Net.Http package version 2019-03-15 08:11:22 -07:00
Mikael Mengistu 694dcae53e Make ResetSendPing and ResetTimeout private methods (#8525) 2019-03-14 22:05:07 -07:00
Mikael Mengistu cfe0cc38ec Resolve deadlock with `InvokeAsync` in `On` handler (#8334)
- Use a channel to unblock the dispatch loop
- Added tests
2019-03-14 22:04:36 -07:00
Doug Bunting 6cf554e5c5
Merge branch 'release/2.1' => 'release/2.2' (#8521)
- mostly [automated]
2019-03-14 16:14:53 -07:00
Doug Bunting 9618e24af9
Merge branch 'release/2.2' into merge/release/2.1-to-release/2.2 2019-03-14 12:07:05 -07:00