-
Notifications
You must be signed in to change notification settings - Fork 555
[Jenkins] Add nuint xml logs #883
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
[Jenkins] Add nuint xml logs #883
Conversation
|
Build failure |
tests/xharness/AppRunner.cs
Outdated
| args.Append (" -argument=-app-arg:-enablenetwork"); | ||
| args.Append (" -setenv=NUNIT_ENABLE_NETWORK=true"); | ||
| // detect if we are using a jenkins bot. | ||
| if (!string.IsNullOrEmpty (Environment.GetEnvironmentVariable ("BUILD_REVISION")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's already a Harness.InWrench method, so it makes sense to extract this to a Harness.InJenkins method as well.
|
Build failure |
|
Build |
|
@rolfbjarne I was debugging, the test were not being executed as I wanted in jenkins so I wanted to see if the message was added. Will remove if it is just garbage. |
|
Build failure |
|
Yeah, the |
|
@rolfbjarne learning by touching ;) Lets see this next build, I have high hopes. If everything works, we should have much better comments from the bot. |
07ce061 to
59c367d
Compare
|
Build failure |
e26d35f to
85439c9
Compare
|
Build failure |
|
The watchOS tests are still crashing. |
25d354a to
6554c38
Compare
046e2cc to
32202b4
Compare
|
Build failure |
… Wrench we prefer the old style.
…that will improve the tests results reporting.
…nly Jenkins reports.
852033b to
4dfdec7
Compare
|
Build failure |
2 similar comments
|
Build failure |
|
Build failure |
tests/xharness/AppRunner.cs
Outdated
| } | ||
| } | ||
|
|
||
| void GenerateHumanReadableLogs (string finalPath, string logHeader, XmlDocument doc){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
style: Opening brace goes on the next line.
tests/xharness/AppRunner.cs
Outdated
| } | ||
| } | ||
|
|
||
| public bool TestsSucceeded (LogStream listener_log, bool timed_out, bool crashed) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
style: Opening brace goes on the next line.
| Harness.LogWrench ("@MonkeyWrench: AddSummary: <b><i>{0} timed out</i></b><br/>", mode); | ||
| success = false; | ||
| } else if (launch_failure) { | ||
| Harness.LogWrench ("@MonkeyWrench: AddSummary: <b><i>{0} failed to launch</i></b><br/>", mode); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You've lost this launch_failure condition (it was added after you started your branch, and probably got removed at some when you rebased).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch. Fixing.
|
Build failure |
|
Build success |
tests/xharness/AppRunner.cs
Outdated
| main_log.WriteLine ("Test run never launched"); | ||
| success = false; | ||
| } else if (launch_failure) { | ||
| Harness.LogWrench ("@MonkeyWrench: AddSummary: <b><i>{0} failed to launch</i></b><br/>", mode); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The indentation looks wrong here.
|
Build failure |
2 similar comments
|
Build failure |
|
Build failure |
|
Build success |
Change the execution of the tests to output info in xml to be able to parsed by jenkins.