Skip to content
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

Java: log failed tests #2390

Merged
merged 1 commit into from
Oct 7, 2024

Conversation

Yury-Fridlyand
Copy link
Collaborator

Additional logging of failed tests at the end of each test run. No need to search in big output for failures.
Example of message:

Failed tests for `:client`:
glide.ExceptionHandlingTests.verify_future_pipeline_abortion()

Failed tests for `:integTest`:
glide.cluster.CommandTests.flushall()
glide.cluster.CommandTests.fcall_readonly_binary_function()
glide.cluster.CommandTests.fcall_readonly_function()
...
TransactionTests > sort and sortReadOnly PASSED

TransactionTests > test transaction dump restore STARTED
glide.standalone.TransactionTests.test_transaction_dump_restore(): SUCCESS 0.001s

TransactionTests > test transaction dump restore PASSED

328 tests completed, 3 failed, 6 skipped

> Task :integTest:test FAILED

> Task :integTest:stopAllAfterTests
INFO:root:## Executing cluster_manager.py with the following args:
  Namespace(host='127.0.0.1', tls=False, auth=None, log='info', logfile=None, action='stop', folder_path='/mnt/c/GitHub/babushka/utils/clusters', prefix='redis-cluster', cluster_folder=None, keep_folder=True)
INFO:root:2024-10-04 01:14:51.159227+00:00 Stopping script for cluster/s redis-cluster* in /mnt/c/GitHub/babushka/utils/clusters
INFO:root:Cluster stopped in 0.1149 seconds
LOG_FILE=/mnt/c/GitHub/babushka/utils/clusters/redis-cluster-2024-10-04T01-12-56Z-BHMOkM/cluster_manager.log

Failed tests for `:client`:
glide.ExceptionHandlingTests.verify_future_pipeline_abortion()


Failed tests for `:integTest`:
glide.cluster.CommandTests.flushall()
glide.cluster.CommandTests.fcall_readonly_binary_function()
glide.cluster.CommandTests.fcall_readonly_function()


FAILURE: Build completed with 2 failures.

1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':client:test'.
> There were failing tests. See the report at: file:///mnt/c/GitHub/babushka/java/client/build/reports/tests/test/index.html

* Try:
> Run with --scan to get full insights.
==============================================================================

2: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':integTest:test'.
> There were failing tests. See the report at: file:///mnt/c/GitHub/babushka/java/integTest/build/reports/tests/test/index.html

* Try:
> Run with --scan to get full insights.
==============================================================================

Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

For more on this, please refer to https://docs.gradle.org/8.5/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.

BUILD FAILED in 2m 39s
36 actionable tasks: 9 executed, 27 up-to-date

@Yury-Fridlyand Yury-Fridlyand added java issues and fixes related to the java client CI CI/CD related labels Oct 4, 2024
@Yury-Fridlyand Yury-Fridlyand requested a review from a team as a code owner October 4, 2024 01:19
Copy link
Collaborator

@shohamazon shohamazon left a comment

Choose a reason for hiding this comment

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

ah, finally

@Yury-Fridlyand
Copy link
Collaborator Author

Just FYI - failures were logged, but there are too much output to find them easily.

@Yury-Fridlyand Yury-Fridlyand merged commit 60e0228 into valkey-io:main Oct 7, 2024
13 checks passed
@Yury-Fridlyand Yury-Fridlyand deleted the java/yuryf-report-fails branch October 7, 2024 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI CI/CD related java issues and fixes related to the java client
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants