-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Continuous Testing RPC Service in Dev UI returns inconsistent JSON #43067
Comments
/cc @cescoffier (devui), @phillip-kruger (devui), @stuartwdouglas (continuous-testing) |
This affects #42988 (not a blocker, but I need to be careful there) |
Seems to be this code in if (current) {
if (!i.getValue().getFailing().isEmpty()) {
currentFailing.put(i.getKey(), i.getValue());
failing.add(i.getValue());
} else if (!i.getValue().getPassing().isEmpty()) {
currentPassing.put(i.getKey(), i.getValue());
passing.add(i.getValue());
} else {
skipped.add(i.getValue());
}
} else {
if (!i.getValue().getFailing().isEmpty()) {
historicFailing.put(i.getKey(), i.getValue());
failing.add(i.getValue());
} else if (!i.getValue().getPassing().isEmpty()) {
historicPassing.put(i.getKey(), i.getValue());
passing.add(i.getValue());
} else {
skipped.add(i.getValue());
}
} I don't understand the requirement here, but this code does the following:
So we can assume that
This leads to skipped tests not to be placed in the I find this confusing, and depending from where this is used, I guess we should refactor this.
Here's a sample JSON of the |
I am not sure, this is code from before the new Dev UI. |
- merge observers for test state and results - replace direct rendering of results and state by custom API object (DTO) - optimize size and structure of JSON message resolves quarkusio#43067
- merge observers for test state and results - replace direct rendering of results and state by custom API object (DTO) - optimize size and structure of JSON message resolves quarkusio#43067
- merge observers for test state and results - replace direct rendering of results and state by custom API object (DTO) - optimize size and structure of JSON message resolves quarkusio#43067
- merge observers for test state and results - replace direct rendering of results and state by custom API object (DTO) - optimize size and structure of JSON message resolves quarkusio#43067
Describe the bug
In case of one skipped JUnit test, the JSON returned from the backend to the Dev UI does not contain the skipped test in the top-level
skipped
property. However, it is contained within theresults.<test-class>.skipped
property. Is this a bug? Sure, it's a minor one, but Dev UI has to be aware of this.Expected behavior
I would expect the skipped test to be part of both properties.
Actual behavior
The skipped test does not occur in the top-level
skipped
array.How to Reproduce?
@Disabled
and run the testsQwcContinuousTesting._results
propertyOutput of
uname -a
orver
Darwin head 23.6.0 Darwin Kernel Version 23.6.0: Mon Jul 29 21:14:30 PDT 2024; root:xnu-10063.141.2~1/RELEASE_ARM64_T6030 arm64
Output of
java -version
openjdk version "21.0.4" 2024-07-16 OpenJDK Runtime Environment Homebrew (build 21.0.4) OpenJDK 64-Bit Server VM Homebrew (build 21.0.4, mixed mode, sharing)
Quarkus version or git rev
HEAD
Build tool (ie. output of
mvnw --version
orgradlew --version
)Apache Maven 3.9.8 (36645f6c9b5079805ea5009217e36f2cffd34256)
Additional information
No response
The text was updated successfully, but these errors were encountered: