Commit 2601146
authored
Context: 77c9c5f
Commit 77c9c5f introduced a regression in `tools/java-source-utils`,
wherein the unit tests would fail, e.g.
org.junit.ComparisonFailure: ../../../com/xamarin/JavaType.java Javadoc XML expected:<...um">
<javadoc>[<![CDATA[JNI sig: Lcom/xamarin/JavaEnum;]]></javadoc>
…
</m...> but was:<...um">
<javadoc>[
<![CDATA[JNI sig: Lcom/xamarin/JavaEnum;]]>
Part of the problem is that this failure was *overlooked*;
it's very common for PR builds to fail because mono SIGSEGVs, and we
don't always take the time to restart failed PR builds to ensure that
they're green (oops). The Windows builds, meanwhile, were green.
Consequently, when commit 77c9c5f introduced a test failure in the
`java-source-utils` unit tests, but we didn't see the failure.
This "lack of seeing" is in part because we've become inured to test
failures (mono SIGSEGVs), but also because the `java-source-utils`
unit tests:
1. Are *only* run on the `mac_build` job, and
2. The results of the `java-source-utils` unit tests are not
shown in DevOps' **Tests** tab.
The only way to see the failure is to read the full
**Mac - Mono** > **Run Tests** output, and know what you're
looking for.
Fix these two more fundamental issues:
1. Update `tools/java-source-utils/build.gradle` so that when
`gradle test` is run, JUnit XML-formatted test result files
are created.
2. Update `core-tests.yaml` and `RunNUnitTests.targets` so that the
`java-source-utils` unit tests are executed.
3. Publish the JUnit XML files created between (1) and (2).
This should ensure that future `java-source-utils` failures are
appropriately seen and not ignored.
I then ran a PR build without fixing anything, verifying that the
**Tests** tab now shows the expected unit tests failures.
Fix the `java-source-utils` unit test expected output, so that the
`java-source-utils` unit tests pass once again…on macOS. They don't
current pass on Windows, for currently unknown reasons (but probably
line ending-related). We will enable Windows support later.
1 parent 7f1a5ab commit 2601146
File tree
9 files changed
+53
-18
lines changed- build-tools
- automation
- templates
- scripts
- tools/java-source-utils
- src/test/resources
- com/microsoft/android
9 files changed
+53
-18
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
| 73 | + | |
79 | 74 | | |
80 | 75 | | |
81 | 76 | | |
| |||
145 | 140 | | |
146 | 141 | | |
147 | 142 | | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
| 143 | + | |
154 | 144 | | |
155 | 145 | | |
156 | 146 | | |
| |||
189 | 179 | | |
190 | 180 | | |
191 | 181 | | |
| 182 | + | |
192 | 183 | | |
193 | 184 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
106 | 107 | | |
107 | 108 | | |
108 | 109 | | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
32 | 37 | | |
33 | 38 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
130 | | - | |
| 130 | + | |
131 | 131 | | |
132 | | - | |
| 132 | + | |
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
| |||
0 commit comments