Commit Graph

250 Commits

Author SHA1 Message Date
dudu c6718d054d Any instead of Count in IIS UrlRewriteFileParser (#11540)
* Any instead of Count in IIS UrlRewriteFileParser

* Remove unnecessary null check in IIS UrlRewriteFileParser
2019-06-25 06:33:37 -07:00
dudu e79fafc2e3 Improve IIS UrlRewrite parsing (#11533) 2019-06-24 23:07:48 -07:00
Chris Ross 4ef204e13b
Remove or make public pubternals for Http #11312 (#11429) 2019-06-21 17:56:53 -07:00
Dylan Dmitri Gray f9aa85a829
Dylan/stack policy (#11293)
* Initial StackPolicy implementation
2019-06-21 11:03:17 -07:00
Nate McMaster 4fde84a7ad Replace KoreBuild with Arcade (#11122)
* Replace usages of $(CI) with $(ContinuousIntegrationBuild)

* Move RepoTasks to eng/tools/

* Remove dead code

* Update build.sh/ps1 to invoke Arcade instead of KoreBuild

* build/repo.props => eng/Build.props

* build/CodeSign.{props,targets} => eng/Signing.props

* build/repo.targets => eng/Build.props, eng/CodeGen.proj, and eng/AfterSolutionBuild.targets

* Remove AddAllProjectRefsToSolution.ps1

* Put selenium process tracking into artifacts/tmp/

* build/docker => eng/docker

* Move content from korebuild.json to global.json

* Remove cibuild.{sh,cmd} and update ci.yml

* Ensure vswhere detects BuildTools installations

* Remove sign check exclusions (Arcade does not support)

* list VS required components in global.json

* Update CodeCheck.ps1

* Update arcade (#11143)

* Fixups to broken build

* capture test results in xunit form
* attempt to fix code check
* restore before linux build
* remove duplicate signinfos

* More build fixes

* exclude node_modules from unique project check
* fixup signing props

* More build fixes

* Remove unused NoWarns
* Skip building site extension
* Suppress xunit color in console output
* Install x86 runtime

* Run KillProcesses.ps1 at end of build on CI

* activate env vars in codecheck.ps1

* Fix signing and generate build manifests

* Fixup code check and linux installers build

* Remove custom restore targets

* Import flaky test props

* Restore original manifest generation code and set warnAsErrors=false

* Alwasy restore the toolset

* More attempts at build fixes

* run restore before building deb/rpm packages
* pre-install Yarn.MSBuild
* Remove WIX workaround

* Attempt to fix RPM installers and x86 build

* Fix helix tests, java auto-detection, and code gen steps

* Globally disable MSBuild node resuse and capture MSbuild crash logs

* Cleanup build invocation for installers

* Set max time on xunit tests to 15 min

* Update helix-test.yml

* Fix Hosting tests

* Fix TestHost

* Fix Negotiate.Test

* Fix Mvc tests

* Capture results

* Fix Hosting tests

* Fix Kestrel tests

* Fix ServerComparison tests

* Fix DefaultBuilder functional tests

* Skip template tests

Need to run pack before running tests on mac/linux now

* Fix Identity test

* Fix ServerComparison tests

* Verify nginx installation on ubuntu

* Verify nginx installation?

* Try adding to path

* Try symlink

* Sudo?

* Woot it works

* Disable timeout

Template tests require more than 15 mins

* list env vars

* Use correct dotnet_home

* Prepent path instead

* Fix npmproj tests

* Fix CORS tests

* Debug signalr tests

* Debug signalr

* Capture bin

* Try building templates sequentially

* Debug signalr

* Cleanup

* Disable signalr npm tests

* Debug template test

* Try to fix templates again and make steps more reliable

* Cleanup

* Feedback
2019-06-19 10:03:38 -07:00
Arthur Vickers 730c3e0053 Update DatabaseErrorPageMiddleware to use HasTables 2019-06-19 09:58:39 -07:00
Justin Kotalik a4bd1308ca Skip CORS tests (#11355) 2019-06-18 16:05:38 -07:00
Kahbazi bff78bdd11 Remove use of null-conditional operator for logger (#6579) 2019-06-18 11:18:43 -07:00
Justin Kotalik 213f6efd30 Make CORS functional tests select different ports (#11063)
* fxup some slns
- remove samples
2019-06-18 10:00:16 -07:00
Dylan Dmitri Gray c24c4cac01
Dylan/request queue di (#11167)
Decoupled Middleware from QueuePolicy
2019-06-13 16:36:21 -07:00
Dylan Dmitri Gray 844530dd54
Overhead Benchmark for Request Throttling (#10907)
* initial implementation; no tests

* benchmark project

* Better benchmarks

* overhead test for congested queue

* Addressed feedback
2019-06-12 17:22:14 -07:00
dotnet-maestro[bot] a6bc6ce23d [master] Update dependencies from 3 repositories (#10939)
* Update dependencies from https://github.com/aspnet/EntityFrameworkCore build 20190610.7
- Microsoft.EntityFrameworkCore.Tools - 3.0.0-preview7.19310.7
- Microsoft.EntityFrameworkCore.SqlServer - 3.0.0-preview7.19310.7
- dotnet-ef - 3.0.0-preview7.19310.7
- Microsoft.EntityFrameworkCore - 3.0.0-preview7.19310.7
- Microsoft.EntityFrameworkCore.InMemory - 3.0.0-preview7.19310.7
- Microsoft.EntityFrameworkCore.Relational - 3.0.0-preview7.19310.7
- Microsoft.EntityFrameworkCore.Sqlite - 3.0.0-preview7.19310.7

Dependency coherency updates
- Microsoft.AspNetCore.Analyzer.Testing - 3.0.0-preview7.19309.2 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.AspNetCore.BenchmarkRunner.Sources - 3.0.0-preview7.19309.2 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.Extensions.ActivatorUtilities.Sources - 3.0.0-preview7.19309.2 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.Extensions.Caching.Abstractions - 3.0.0-preview7.19309.2 (parent: Microsoft.EntityFrameworkCore)
- et cetera

* Update dependencies from https://github.com/aspnet/AspNetCore-Tooling build 20190610.2
- Microsoft.NET.Sdk.Razor - 3.0.0-preview7.19310.2
- Microsoft.CodeAnalysis.Razor - 3.0.0-preview7.19310.2
- Microsoft.AspNetCore.Razor.Language - 3.0.0-preview7.19310.2
- Microsoft.AspNetCore.Mvc.Razor.Extensions - 3.0.0-preview7.19310.2

* Update dependencies from https://github.com/aspnet/Blazor build 20190610.1
- Microsoft.AspNetCore.Blazor.Mono - 0.10.0-preview7.19310.1
2019-06-10 23:12:23 -07:00
Justin Kotalik d7fc06af5e
Move IServerVariablesFeature to Http.Features (#11007) 2019-06-10 21:16:36 -07:00
Arthur Vickers 4d1262c39b Small fixes for DatabaseErrorPageMiddleware
The main change here is to also allow public `HasTables` to be found. This will be removed once we get the new EF merged.

The change to the migration makes it align with what we would generate, but I don't think has any functional impact on the tests.

See also https://github.com/aspnet/EntityFrameworkCore/pull/16024 which (I really hope!)fixes the other failures once it makes it here.
2019-06-10 16:09:13 -07:00
Ben Adams 37e6ad7e12 Improve HostFiltering perf (#9359) 2019-06-10 09:32:00 -07:00
Nate McMaster 41ce223c1c
Replace Internal.AspNetCore.Sdk with Microsoft.DotNet.Arcade.Sdk (#10674)
* Update build.cmd to install .NET Core into $repoRoot/.dotnet instead of $repoRoot/.dotnet/x64
* Move restore sources from build/sources.props into eng/Versions.props (following arcade conventions)
* Remove usages of RuntimeFrameworkVersion in tests and build
* Update Blazor VSIX to use Arcade VSIX tools
* Rename Common.Tests to IIS.Common.TestLib and make it a test asset
* Remove custom versions props for ANCM installer code
* Remove duplicate references to xunit and remove usages of IsTestProject
* Remove duplicate references to Internal.AspNetCore.Analyzers
* Import Arcade.Sdk props and targets and remove custom versioning props
* Remove references to Internal.AspNetCore.Sdk
* Rename PackageLicenseType => PackageLicenseExpression
* Remove dependency on tasks in Internal.AspNetCore.Sdk, add ref to Internal.AspNetCore.BuildTasks as a temporary workaround
* Use Arcade's nuspec support
* Rename SignalR.Client.FunctionalTests to SignalR.Client.FunctionalTestApp
* Fixes for changes to property evaluation order
* Update BaseLineGenerator to netcoreapp3.0
* React to changes in evaluation order in RPM files and quirks in using <Exec> instead of <Run>
* Update Microsoft.Extensions.ApiDescription.Server to react to changes in Arcade packaging
* Workaround aspnet/AspNetCore#11009
2019-06-07 17:19:41 -07:00
Arthur Vickers b5adc6b156 Move Database Error Page tests to SQLite
In an attempt to make them more reliable.

See also https://github.com/aspnet/EntityFrameworkCore/issues/15997
2019-06-07 16:31:29 -07:00
Kahbazi d3d6e0e709 Ensure MaxConcurrentRequests is a positive number (#11003) 2019-06-07 15:42:09 -07:00
Chris Ross 3dc2be22c5
Static Files cleanup (#10996) 2019-06-07 12:46:10 -07:00
Kahbazi 1dff8cbdbc Add OnRejected to Request Throttling middleware (#10817)
* Add OnRejected to Request Throttling middleware

* Remove IApplicationBuilder extension with option

* Add test

* Add summary for OnRejected
2019-06-07 11:15:48 -07:00
Kahbazi ba8c6ccf6f Inject ILogger to RequestLocalization Middleware (#10946) 2019-06-06 15:38:02 -07:00
Smit Patel bb9ba122c1 Target netstandard2.1 in HealthChecks.EFCore 2019-06-04 13:26:20 -07:00
Justin Kotalik 45b0d0d0de
Save condition backcollection between runs (#10776) 2019-06-03 22:31:38 -07:00
Arthur Vickers 173cf1786e Identity/MusicStore/ErrorPage test re-anabling
Fixes #10672 #7925 #10670

Also, moves MusicStore tests to SQLite for better reliability
2019-06-02 09:31:24 -07:00
David Fowler 400835e0b4
Remove Transport.Abstractions from existence (#10722) 2019-06-01 17:22:47 -07:00
Hao Kung b75b892eac
Add CertificateAuthentication (#9756) 2019-05-31 22:49:40 -07:00
Dylan Dmitri Gray bd4b843678
Dylan/queue limit (#10590)
* Added queue limit, extra requests are 503'd

* Combined counters into an atomic `TotalRequests`

* small safety fix

* Updated log messages; simplified flow
2019-05-31 14:53:19 -07:00
Arthur Vickers 9ebabc1337 Update Identity tests for EF breaking changes
Specifically:
* Removal of Relational()
* Query changes

There is some kind of flakiness still impacting these tests. It may be a race condition in EF query generation, or it may be an issue with the test infrastructure

Also, one database error page test is currently disabled.
2019-05-30 19:43:31 -07:00
Hao Kung 0b54783877
[Helix] Try running node services tests on helix again (#9046) 2019-05-29 21:15:29 -07:00
Alessio Franceschelli abd70031cb HeaderPropagation middleware: small cleanup
- Removed MessageHandler DI registration as not needed.
- Fixed two parameters XML descriptions.
- Cleaned up usings in the example.
2019-05-29 20:06:20 -07:00
Nate McMaster e39b4b5c3e
Rename CacheEntryHelpers .cs to CacheEntryHelpers.cs (#10633) 2019-05-29 17:58:57 -07:00
Dylan Dmitri Gray 9969e99ef4
Dylan/request throttle (#10413)
* request throttling -- initial implementation

* prevented semaphore leak; added xml docs

* small doc fixes

* reference document

* Added internals folder, added structured logging,

* removed typo'd dependency

* no default MaxConcurrentRequests; other polishing

* renamed SemaphoreWrapper->RequestQueue; cleanup

* moved SyncPoint; prevented possible semaphore leak

* adjusting feedback

* regen refs

* Final changes!
2019-05-27 14:46:14 -07:00
Nate McMaster 01a8798936
Update links and disable warnings related to tests that don't work in Helix (#10427) 2019-05-21 16:39:06 -07:00
Dylan Dmitri Gray 55555bedd5
Merge pull request #10275 from aspnet/dylan/requestQ
start of request queue
2019-05-20 17:02:47 -07:00
Dylan Dmitri Gray 54e5b15c24 it's gone for good 2019-05-20 11:58:30 -07:00
Dylan Dmitri Gray 7ff5293177 added HttpsPolicy back 2019-05-18 18:31:31 -07:00
Dylan Dmitri Gray 68606a2d80 removed redundant HttpsPolicy dependency 2019-05-17 16:56:17 -07:00
Dylan Dmitri Gray 206c1e8a8a Removed error line 2019-05-17 14:37:16 -07:00
Dylan Dmitri Gray 5e85b3773b ready for final review 2019-05-17 14:27:06 -07:00
Alessio Franceschelli 320fadb756 HeaderPropagation Middleware: configuration per client (#10096)
* HeaderPropagation Middleware: configuration per client

* Renamed fields

* Renamed fields

* Fix sample

* Addressed feedback, cleaned up and added tests

* Addressed feedback on HeaderPropagationHttpClientBuilderExtensions

* Updated reference assemblies
2019-05-17 14:16:44 -07:00
Chris Ross b670246e3d
Add ForwardedHeaders to CreateDefaultBuilder #4135 (#10273) 2019-05-17 13:07:11 -07:00
Dylan Dmitri Gray 3e6f70d5e8 Justin fixed refs 2019-05-17 10:54:56 -07:00
Dylan Dmitri Gray 9363eff2a8 OrTimeout Extension 2019-05-17 10:40:19 -07:00
Dylan Dmitri Gray 04ce6ef4c8 IDisposable fix 2019-05-16 16:59:40 -07:00
Dylan Dmitri Gray ac305849e3 cleanup from PR feedback 2019-05-16 16:55:46 -07:00
Dylan Dmitri Gray 61f028ad32 Renamed project, cleaned sln file 2019-05-16 16:35:01 -07:00
Dylan Dmitri Gray 5956609846 start of request queue 2019-05-16 16:35:00 -07:00
Nate McMaster dc90e11c7a
Move obj and bin directories into repo root (#10063)
The Arcade SDK requires that the obj/ and bin/ folders be placed in the top-level artifacts/ folder of the repo. Although this PR does not complete our Arcade convergence, this is a step towards updating our repo to build with the Arcade SDK.

Changes:
* Set output path for build to artifacts/bin/$(ProjectName)/ 
* Set intermediate output path for build to artifacts/obj/$(ProjectName)/
* Cleanup .gitignore files (remove duplication between repo-root and tested gitignore files)
* Add code check which looks for project files that share the same name (could cause issues)
* Rename project files to have unique names (avoid race condition of build output)
* Update all locations which were hard-coded to expect bin/ and obj/ in the project directory
* Add overrides for tests which still assert test binaries exist in a given location relative to the source code
2019-05-15 13:44:55 -07:00
Nate McMaster 77e08c26d5
Replace all usages of RepositoryRoot with RepoRoot (#10267)
Preparing to adopt the Arcade SDK, which uses the shorter variable name instead
2019-05-15 12:00:19 -07:00
Mickaël Derriey 4a2bd2adbf Source server variables from IIS when running ANCM in-proc (#10022) 2019-05-15 08:26:29 -07:00