Граф коммитов

19 Коммитов

Автор SHA1 Сообщение Дата
Brennan 21794e1d2d
Update CredScanSuppressions.json (#43497) 2022-08-24 04:29:58 +00:00
Hao Kung 67d4740d90
Add credscan stuff (#43275) 2022-08-14 09:49:29 -07:00
Tanay Parikh 0be2c29d9c
Helix Restore Issue Mitigation (#41311)
* RunTests dotnet run --no-build

* Remove duplicate run

* Add to Build.props

* Treat CA2007 as a warning in RunTests

* NoWarn CA2007

* Ignore NU5104 for System.CommandLine prerelease package

* PR Feedback

* PR Feedback

* Generate .config/dotnet-tools.json
  - add generation to GenerateFiles.csproj
  - include all required versions in eng/Versions.props
    - nit: bump tool versions slightly
    - `dotnet-dump` move from `5.0.0-*` to `6.0.322601` is largest version bump
  - have `git` ignore generated file
    - nit: put `*.svclog` together w/ other extension exclusions

* Add tool packages to Helix correlation payloads

* Do not restore tools from network
  - get tool packages from Helix correlation root
  - to do this, save and restore NuGet.config file
  - this removes `--version` from `dotnet-dump` and `dotnet-ef` installations
    - will only have a single package for each tool in the correlation payload

* Do not pass `dotnet-ef` version to `RunTests`
  - mostly cleanup; no longer needed

* Remove DotNetToolsInstaller.csproj
  - mostly cleanup
  - `dotnet-ef` tool now restored by Arcade's Tools.proj much earlier in our build because
    most configured tool packages are needed in `RunTests` on Helix agents

* Add `--playwright` option in `Runtests`
  - remove `INSTALLPLAYWRIGHT` define and `$env:INSTALLPLAYWRIGHT`
  - always reference Microsoft.Playwright in `RunTests`
  - nit: `InstallPlaywrightAsync()` wasn't `async`; fix it and rename to `InstallPlaywright()`

* Use Arcade SDK in `RunTests` and `Publish` project
  - match most other projects in this repo
    - remove empty Directory.Build.props and .targets files preventing Arcade imports
  - exclude project build if `$(SkipTestBuild)` (though not a test project)

* Correct minor problems in `RunTests` source

* Use file-scoped namespaces in `RunTests` source

* Use VS code fixes in `RunTests`

* Use published `RunTests` output on Helix agents

* Move `RunTests` under eng/tools/
  - don't need the project on Helix agents
  - restore Directory.Build.* files removed when switching to Arcade

* Add `RunTests` to tools.slnf

* Rename `RunTests` project to `HelixTestRunner`
  - less confusing given `RunTests` target and runtests.sh et cetera

* !fixup! Define `$(ArtifactsBinDir)` in helix.proj

* !fixup! Use `$(Configuration)` in helix.proj

* !fixup! Fix typo in property function

* !fixup! Fix `dotnet` syntax in runtests.sh

* !fixup! Correct `%(HelixCorrelationPayload.Destination)`

Co-authored-by: Doug Bunting <6431421+dougbu@users.noreply.github.com>
2022-04-30 01:31:05 +00:00
Doug Bunting 1d38f8759d
Revert "Move CredScanSuppressions.json to root of repo (#39780)" (#41070)
* Revert "Move CredScanSuppressions.json to root of repo (#39780)"
- root location does not work w/ `CredScan` check when pushing to AzDO mirror

This reverts commit cc3f45a3fb.

* Inform Guardian of CredScanSuppressions.json path
2022-04-06 18:10:04 -07:00
William Godbe cc3f45a3fb
Move CredScanSuppressions.json to root of repo (#39780)
* Move CredScanSuppressions.json to root of repo

* Pass suppression file

* Typo

* SuppressionsPath
2022-02-09 14:07:01 -08:00
Tanay Parikh 3129207847
Upgrade Playwright (#38414)
* Upgrade `playwright-sharp-tool`

https://www.nuget.org/packages/playwright-sharp-tool

Contributes towards https://github.com/dotnet/aspnetcore/issues/30882.

* Update to latest v1.16.1 from GitHub

https://github.com/microsoft/playwright-dotnet/releases/tag/v1.16.1

* Update to use Microsoft.Playwright

* Update references to reflect `Microsoft.Playwright`

* Update dotnet-tools.json

* Upgrade System.CommandLine

* Adapt to breaking API changes in Playwright

* Upgrade dotnet-serve

* Add Microsoft.Playwright.CLI

* Revert "Upgrade System.CommandLine"

This reverts commit cc46e9cfb7.

* Fix build

The build failed. Fix the build errors and run again.
C:\h\w\AA180980\w\9ED808A4\e\RunTests\RunTests.csproj : warning NU1604: Project dependency Microsoft.Playwright does not contain an inclusive lower bound. Include a lower bound in the dependency version to ensure consistent restore results.
C:\h\w\AA180980\w\9ED808A4\e\RunTests\TestRunner.cs(124,35): error CS7036: There is no argument given that corresponds to the required formal parameter 'arguments' of 'ProcessUtil.RunAsync(string, string, string?, string?, bool, IDictionary<string, string?>?, Action<string>?, Action<string>?, Action<int>?, CancellationToken)' [C:\h\w\AA180980\w\9ED808A4\e\RunTests\RunTests.csproj]

* Remove semaphore for websocket events

* Update playwrightSettings based on breaking changes

* npx based playwright install

* npm install playwright

* Install node in helix env

* Use DOTNET_ROLL_FORWARD with `dotnet` `playwright` tool

* Cleanup

* Update playwright tool usage

* DOTNET_ROLL_FORWARD in TestRunner

* Specify project dir

* Playwright install without cli

* Update TestRunner.cs

* Update TestRunner.cs

* Re-enable helix playwright tests

* Upgrade Playwright to 1.17.3, CLI to 1.2.2

* Fix spacing

* Remove DOTNET_ROLL_FORWARD

* PR Feedback

* Remove temp project workaround.

* Fix package lowerbound issue

* Update Versions.props

* Update BrowserManager.cs

* Remove `Installing Microsoft.Playwright.CLI`

* Disable playwright tests in helix
2022-01-12 00:21:28 +00:00
dotnet-maestro[bot] a5a1e9a9d8
Update dependencies from https://github.com/dotnet/runtime build 20211105.7 (#38145)
[main] Update dependencies from dotnet/runtime
2021-11-06 14:14:52 +00:00
Pranav K a450cb69b5
Use file scoped namespaces (#38076)
* Use file scoped namespaces
2021-11-06 00:52:08 +00:00
William Godbe 8d79c958dd
Resolve final credscan bug (#31196) 2021-03-25 09:29:03 -07:00
William Godbe c9a9b94c3c
Resolve remaining credscan bugs (#31157) 2021-03-24 09:19:02 -07:00
Chris Ross fd0d314b6d
Remove dotnet-format from dotnet-tools (#30317) 2021-02-20 02:26:52 +00:00
Javier Calvarro Nelson 9829e88a1c
[Blazor][Templates] Replaces selenium with playwright for our E2E Tests (#29873)
* [Blazor][Templates] Replaces selenium with playwright for our E2E Tests
* Supports multiple browsers.
* Supports multiple OS.
* Individual configuration per browser via configuration files.
* Separate configuration for CI environments.
* Separate configuration per Operating System.
* Separate configuration for debugging.
* Removes the requirement to have a browser installed.
* Removes the requirement to have JAVA installed.
* Removes the requirement to have nodejs installed.
* Records detailed information on each test run
  * Network traces from the browser.
  * Video of the test execution in the browser.
  * Browser logs.
  * Network errors on the browser.
  * Page errors on the browser.
2021-02-11 11:05:10 -08:00
Doug Bunting 069cb5f3bd
Use normal mechanism to install `dotnet-format` (#29909)
- aspnet/AspNetCore-ManualTests#407
- update the `dotnet-serve` version while here
2021-02-06 21:01:54 -08:00
dotnet-maestro[bot] c79c60f10a
Update dependencies from https://github.com/dotnet/arcade build 20201029.1 (#27432)
[master] Update dependencies from dotnet/arcade
2020-11-02 14:25:28 +00:00
Javier Calvarro Nelson a7ab15a2f5
Supress security warnings for test keys (#23704) 2020-07-06 09:27:04 -07:00
Pranav K 592dfe165b
Changes to build in master
* Cleanup bad merge
* Update to dotnet-serve that supports arbitrary ports
2020-05-28 15:43:55 -07:00
Justin Kotalik b752457e5b
Update CredScanSuppressions.json (#19297) 2020-02-24 15:02:04 -08:00
Pranav K 1c3ae1549e Add publish test for BlazorStandalone 2020-01-03 15:05:53 -08:00
Nate McMaster ab12c706ab
Suppress false-positives in credential scanning (#4392) 2018-12-04 15:30:47 -08:00