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

41 Коммитов

Автор SHA1 Сообщение Дата
Andrew Arnott 3db06b396f
Move a bunch of files around to match the Library.Template 2022-10-31 11:22:34 -06:00
Andrew Arnott 4185a16ecb Merged Library.Template 2022-10-30 09:54:53 -06:00
Andrew Arnott cb730eacdd
Collect test results from the right directory
The dump files used to be written to an agent TEMP directory. Somewhere along the lines they moved to the TestResults directory within the repo itself.

Fixes AArnott/Library.Template#167
2022-06-20 10:34:43 -06:00
Andrew Arnott fa0ac39950
Log _pipelines scripts verbosely 2022-06-20 10:34:43 -06:00
Andrew Arnott e903112e9e
Include only unique coverage reports in artifact
The test runner is creating *two* cobertura.xml files for each test run. Besides doubling the size of the coverageResults artifact, this makes the `publish-codecoverage.yml` pipeline step do much more work which can take *minutes* instead of seconds.
2022-06-14 13:20:10 -06:00
Andrew Arnott d8f567ef79
Avoid truncated code coverage data
Apply workaround for microsoft/vstest issue 3724.
2022-06-08 17:14:45 -06:00
Andrew Arnott da08e901c9
Add ability to split stage and publish artifact steps 2022-05-12 16:08:56 -06:00
Andrew Arnott e21c1c1653
Improve pipeline verbosity 2022-04-12 08:30:10 -06:00
Andrew Arnott e67a6e4b39
Update GitHub Actions to more closely resemble AzP 2022-02-04 20:34:01 -07:00
Andrew Arnott e9df707591
Collect and publish symbols from every build agent
Accommodates https://github.com/microsoft/azure-pipelines-tasks/issues/13821 by publish symbols on a Windows agent

Closes #135
2022-02-04 16:33:03 -07:00
Andrew Arnott 849e4b8e01
Simplify Join-Path expressions 2022-02-04 15:25:48 -07:00
Andrew Arnott 1699ddf881
Replace several `DotNetCoreCLI` task with one `dotnet test` task
Closes #136
2022-02-04 13:29:51 -07:00
Andrew Arnott dcf939351c
Capture netcoreapp3.1 TFM test crash dump naming pattern on linux 2022-02-04 09:43:02 -07:00
Andrew Arnott 2a0cec4e01
Fix pipeline build 2022-01-22 14:50:10 -07:00
Andrew Arnott e8415ae5fc
Apply latest Library.Template 2022-01-21 17:35:39 -07:00
Andrew Arnott 6cf12a28d7
Enable publishing of artifacts in multiple passes
When an artifact is not ready yet, but other artifacts are and must be prepared, we can now run `artifacts/_pipelines.ps1` multiple times in the pipeline.
To opt out of an earlier pass, the artifact script need only produce 0 files. After an artifact script returns some files, that artifact will be published and will not be published again.

This is similar to `variables/_pipelines.ps1` behavior, which we already run twice.
2022-01-13 08:49:15 -07:00
Andrew Arnott 2eb1688704
Collect diagnostic test logs 2021-11-22 15:49:58 -07:00
Andrew Arnott 4582d85ab6
Collect coverage in non-multitargeting environments 2021-11-12 08:25:49 -07:00
Andrew Arnott 16d30af64f
Log artifact warnings in more cases
We were not warning when *groups* would be defined by an artifact collector even if all those groups were empty.
2021-11-02 10:30:02 -06:00
Andrew Arnott f220004889
Capture dumps from test hangs on Mac/Linux 2021-09-15 07:14:15 -06:00
Andrew Arnott 4854ca17b0
Fix up symbol collection off-Windows 2021-09-13 09:30:47 -06:00
Andrew Arnott 9c16ae2061
Publish test symbols on failures
When investigating test run failures from Azure Pipelines, symbols from test binaries may be just as important as symbols from product binaries. So publish them as pipeline artifacts as well.

Also index all these symbols even in PR builds, since PR builds may fail and investigations may be required.
2020-11-02 09:48:52 -07:00
Andrew Arnott ae5d50cc82
Fix build break 2020-06-10 17:26:48 -06:00
Andrew Arnott ecbb92cd2f
Quote arguments to mklink
This prevents breaks when the linked paths contain spaces, commas or other characters.
2020-05-22 10:20:17 -06:00
Andrew Arnott 3c0c7dae0f
Use top-level test folder 2020-04-09 23:33:39 -06:00
Andrew Arnott c2c2ec1858
Use more portable #! for ps1 2020-03-29 20:26:44 -06:00
Andrew Arnott ae335995e9
Make ps1 scripts directly executable from linux 2020-03-29 19:44:22 -06:00
Andrew Arnott c5581d16fe
Fix dmp collection on Azure Pipelines 2020-03-27 15:39:20 -06:00
Andrew Arnott 70a1f50d26
Collect dumps and sequence.xml files on test hangs and crashes
This makes diagnosing test runner crashes and hangs on Azure Pipelines possible.
After such a failure, a testResults artifact is collected that includes the `Sequence_*.xml` and `testhost.*.dmp` files collected at the timeout or crash.
These files can then be downloaded from the Azure Pipeline artifacts for study.
2020-03-27 11:57:16 -06:00
Andrew Arnott 917c049253
Accommodate PathInfo as keys from artifact scripts 2020-03-27 10:12:41 -06:00
Andrew Arnott 43d492bdd1
Fix artifacts/variables.ps1 to check env vars in all caps 2020-03-06 13:12:28 -07:00
Andrew Arnott aa77109d0a
Update coverlet.msbuild to 2.8.0 2020-02-13 13:45:54 -07:00
Andrew Arnott 366d5df26c
Start with GitHub Actions (#34) 2020-01-14 14:59:28 -07:00
Andrew Arnott 9bf33aeecb
Get building on VS 2019 machines 2019-10-14 19:18:25 -06:00
Andrew Arnott 747490e372
Fix up VSTS references to Azure Pipelines 2019-08-01 17:18:50 -06:00
Andrew Arnott 0691c8d0a1
Avoid error when exactly one coverage.cobertura.xml file is found 2019-07-16 12:32:54 -06:00
Andrew Arnott 00bcb28bfc
Add init.cmd, nbgv tool improvements, etc. 2019-07-15 10:35:54 -06:00
Andrew Arnott 8bd008e9ce
Avoid ln on Windows
Some custom Windows agents don't have this
2019-07-13 07:49:31 -06:00
Andrew Arnott 3731857e1e
Collect symbols artifact and publish to ADO 2019-07-12 21:55:19 -06:00
Andrew Arnott 13ab120e7f
Make azp/artifacts only warn when they can't find files 2019-07-12 17:24:17 -06:00
Andrew Arnott 3367e54100
Switch artifact collection and some variables to ps1 scripts 2019-07-07 22:53:26 -06:00