Skip to content

EnableAzurePipelinesReporter for helix #8094

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 13 commits into from
May 6, 2019

Conversation

pakrym
Copy link
Contributor

@pakrym pakrym commented Mar 1, 2019

Fix: #7368
Fix: #8087

@analogrelay
Copy link
Contributor

Test Run Aborted... *shakes fist*

@analogrelay
Copy link
Contributor

I don't see any results :(

@pakrym
Copy link
Contributor Author

pakrym commented Mar 1, 2019

Yep, me neither. Investigating.

@HaoK
Copy link
Member

HaoK commented Mar 1, 2019

adding @MattGal in case there's anything else we might need to enable other than just the flag

@pakrym
Copy link
Contributor Author

pakrym commented Mar 1, 2019

I wonder if some of our custom logic might be the cause.

@HaoK
Copy link
Member

HaoK commented Mar 1, 2019

The good news is that it doesn't blow up with the issue I saw when I tried it the first time: #7368

@HaoK
Copy link
Member

HaoK commented Mar 1, 2019

We also don't have xunit reporter turned on, not sure if that is a requirement for the azdo helix stuff

https://github.com/dotnet/arcade/blob/2ec202777efff9fd36518804438f7272a34040f4/eng/common/templates/steps/send-to-helix.yml#L20

@Eilon Eilon added the area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework label Mar 3, 2019
@pakrym pakrym marked this pull request as ready for review March 4, 2019 22:19
@pakrym pakrym requested a review from dougbu as a code owner March 4, 2019 22:19
@pakrym pakrym requested review from HaoK and analogrelay March 4, 2019 22:24
@pakrym
Copy link
Contributor Author

pakrym commented Mar 5, 2019

@alexperovich any idea why only random small subset of test results got uploaded to VSTS?

@pakrym
Copy link
Contributor Author

pakrym commented Mar 5, 2019

XUnit results are not published to MC either

@HaoK
Copy link
Member

HaoK commented Mar 5, 2019

Nice so it looks like azdo flags missing test results as an error, so maybe we don't need the explicit test discovery check I just added to our scripts anymore if it fails the run with

E:\A\_work\3\s\.nuget\packages\microsoft.dotnet.helix.sdk\2.0.0-beta.19105.2\tools\azure-pipelines\AzurePipelines.MultiQueue.targets(39,5): error : Test run 2576054 has one or more failing tests. [E:\A\_work\3\s\eng\helix\helix.proj]

@pakrym
Copy link
Contributor Author

pakrym commented Mar 5, 2019

Nice so it looks like azdo flags missing test results as an error, so maybe we don't need the explicit test discovery check I just added to our scripts anymore if it fails the run with

It doesn't have reported tests because of your check that prevented the reporter from running.

@pakrym
Copy link
Contributor Author

pakrym commented Mar 5, 2019

Tests are not reported because RTX and xUnit XML are not the same.

@pakrym pakrym added the blocked The work on this issue is blocked due to some dependency label Mar 5, 2019
@pakrym
Copy link
Contributor Author

pakrym commented Mar 5, 2019

Blocked dotnet/arcade#2161

@natemcmaster
Copy link
Contributor

This should be unblocked now (dotnet/arcade#2286), but @pakrym has switched teams. @JunTaoLuo can you take a look at completing this?

@JunTaoLuo JunTaoLuo force-pushed the pakrym/EnableAzurePipelinesReporter branch from 2f00d10 to 5102e55 Compare April 15, 2019 22:30
@pakrym pakrym requested a review from a team as a code owner April 15, 2019 22:30
@natemcmaster
Copy link
Contributor

Looks good so far. The helix test is still running, but I already see the UI preparing to show results

image

@dougbu
Copy link
Contributor

dougbu commented Apr 16, 2019

Even more than the usual number of warnings in the Helix build output. And, it looks like the Helix run caught some flaky tests. Either fix some of the warnings and update this branch or retry AspNetCore-helix-test before we merge.

@HaoK
Copy link
Member

HaoK commented Apr 16, 2019

Hrm helix run looks pretty normal with only interop and one IIS test failing, but the test results all seem to have failed with missing result files, or am I looking at the wrong view?

@JunTaoLuo
Copy link
Contributor

I think the warnings are due to dotnet/arcade#1605. I'm not sure there's a fix for it. I'll retry the tests though.

@HaoK
Copy link
Member

HaoK commented Apr 30, 2019

Could it be the additional flaky helix test run that's messing things up when it produces a second trx file? Maybe we can we try removing that additional pass from the runtest.cmd/sh and see if that affects the count?

@JunTaoLuo
Copy link
Contributor

Hmm this seems suspicious in the log:

Found results file /Users/dotnet-bot/dotnetbuild/work/4bc49cfb-4e54-4e80-b956-4085f63855a8/Work/3794520e-9043-4e3c-bf3d-120e76f5d6ef/Exec/TestResults/_dci-mac-build-080_2019-04-30_01_55_20_332.trx with format trx
Uploading results in batches of size 1000
Traceback (most recent call last):
  File "/Users/dotnet-bot/dotnetbuild/work/4bc49cfb-4e54-4e80-b956-4085f63855a8/Payload/reporter/run.py", line 95, in <module>
    main()
  File "/Users/dotnet-bot/dotnetbuild/work/4bc49cfb-4e54-4e80-b956-4085f63855a8/Payload/reporter/run.py", line 84, in main
    for b in batches:
  File "/Users/dotnet-bot/dotnetbuild/work/4bc49cfb-4e54-4e80-b956-4085f63855a8/Payload/reporter/helpers.py", line 13, in batch
    for item in iterable:
  File "/Users/dotnet-bot/dotnetbuild/work/4bc49cfb-4e54-4e80-b956-4085f63855a8/Payload/reporter/test_results_reader/__init__.py", line 94, in <genexpr>
    return (add_logs(tr, log_list) for tr in f.read_results(file_path))
  File "/Users/dotnet-bot/dotnetbuild/work/4bc49cfb-4e54-4e80-b956-4085f63855a8/Payload/reporter/formats/trx.py", line 41, in read_results
    classname = test_classes[test_name]
KeyError: 'Microsoft.AspNetCore.Mvc.ApplicationModels.AttributeRouteModelTests.ReplaceTokens_InvalidFormat(template: "text]", values: [], reason: "Token delimiters (\'[\', \']\') are imbalanced.")'
+ date -u +%FT%TZ
2019-04-30T08:55:31Z
+ /usr/local/bin/python2 /Users/dotnet-bot/dotnetbuild/work/4bc49cfb-4e54-4e80-b956-4085f63855a8/Payload/xunit-reporter.py
2019-04-30 01:55:32,174: ERROR: xunit-reporter(69): main: Unable to report xunit results: no test results xml file found.

Maybe the uploading of the results went awry.

@alexperovich
Copy link
Member

Ugh, thats just a bug with the trx parsing. Trx is sooo complicated for a simple type of data. I'll fix it.

@HaoK
Copy link
Member

HaoK commented Apr 30, 2019

Cool, that's good news, well hopefully its just that bug on the parsing, and all our test data is already there

@alexperovich
Copy link
Member

PR with fix: dotnet/arcade#2648

@JunTaoLuo
Copy link
Contributor

@alexperovich can you let me know which version of the sdk will have this fix when a build of it is available?

@alexperovich
Copy link
Member

The build is currently waiting behind another build. I will let you know when a version containing the fix is available.

@alexperovich
Copy link
Member

Version 2.0.0-beta.19230.6 has been published with the fix.

@JunTaoLuo JunTaoLuo force-pushed the pakrym/EnableAzurePipelinesReporter branch from 28dfffc to 8c2a5bb Compare May 1, 2019 07:30
@JunTaoLuo
Copy link
Contributor

Still missing some test results as Helix is only reporting from one of the .trx files. Will wait for another SDK update.

@JunTaoLuo JunTaoLuo force-pushed the pakrym/EnableAzurePipelinesReporter branch from 974d43a to ad66401 Compare May 2, 2019 21:13
@JunTaoLuo
Copy link
Contributor

Woot! I think all the test results are being reported now, thanks @alexperovich for the many fixes. I think after a final round of tests, this will be ready to get checked in!

@JunTaoLuo JunTaoLuo dismissed natemcmaster’s stale review May 3, 2019 19:16

Test reporting is fixed

@@ -23,6 +23,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.FunctionalTests.Http2
{
[OSSkipCondition(OperatingSystems.MacOSX, SkipReason = "Missing SslStream ALPN support: https://github.com/dotnet/corefx/issues/30492")]
[MinimumOSVersion(OperatingSystems.Windows, WindowsVersions.Win10)]
[SkipOnHelix(Queues = "Debian.8.Amd64.Open")] // Debian 8 uses OpenSSL 1.0.1 which does not support HTTP/2
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note to self: double check the versino of OpenSSL on Debian 8 agents and see if there's a way to manually update the version to one that supports HTTP/2

@JunTaoLuo JunTaoLuo merged commit fa239f2 into master May 6, 2019
@ghost ghost deleted the pakrym/EnableAzurePipelinesReporter branch May 6, 2019 05:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Enable helix VSTS test reporting [Helix] Reenable AzDo error reporting for helix tests
9 participants