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

Failing while building bucket4j using mvn clean install #3

Open
pranopowar opened this issue Apr 18, 2024 · 8 comments
Open

Failing while building bucket4j using mvn clean install #3

pranopowar opened this issue Apr 18, 2024 · 8 comments
Labels
question Further information is requested

Comments

@pranopowar
Copy link

Package artifact id: bucket4j

source code url: https://github.com/bucket4j/bucket4j/tree/7.6.0

Issue Description: Failing while building bucket4j using mvn clean install

JDK Version: 1.8

Build CMD: mvn clean install

MVN Version: 3.9.6

Error Log:

[INFO] -------------------------------------------------------
[INFO] T E S T S
[INFO] -------------------------------------------------------
[INFO] Running io.github.bucket4j.dynamodb.v1.LongDynamoDBProxyManagerTckTest
[ERROR] Tests run: 28, Failures: 0, Errors: 28, Skipped: 0, Time elapsed: 3.269 s <<< FAILURE! - in io.github.bucket4j.dynamodb.v1.LongDynamoDBProxyManagerTckTest
[ERROR] testTryConsumeWithLimit(io.github.bucket4j.dynamodb.v1.LongDynamoDBProxyManagerTckTest) Time elapsed: 3.094 s <<< ERROR!
java.lang.NoSuchMethodError: com.amazonaws.services.dynamodbv2.model.CreateTableRequest.getDeletionProtectionEnabled()Ljava/lang/Boolean;
at io.github.bucket4j.dynamodb.v1.LongDynamoDBProxyManagerTckTest.createStateTable(LongDynamoDBProxyManagerTckTest.java:20)

attachment: build log attached
log_java_8_maven_3.9.6.txt

OS: windows 10

@vladimir-bukhtoyarov vladimir-bukhtoyarov transferred this issue from bucket4j/42 Apr 18, 2024
@vladimir-bukhtoyarov
Copy link
Contributor

vladimir-bukhtoyarov commented Apr 18, 2024

Hello @pranopowar

Bucket4j does not provide support for DynaqmoDb anymore. Just comment this line and rebuild.

@pranopowar
Copy link
Author

Thanks , I tried after commenting the dynaqmodb in pom.xml . Now I am facing issue in Redis. I have attached log for same.
Shall we also need to comment redis? Please confirm.

Also Please let me know if we require more modules to get commented.

log_jdk_8_bucket4j_redis_fails.txt

@vladimir-bukhtoyarov
Copy link
Contributor

vladimir-bukhtoyarov commented Apr 18, 2024

Now I am facing issue in Redis.

image

As it mentioneed in the logs, you have a problem with docker environment. You should install docker and make some setup of docker if neccesarry. I do not know how to do this on Windows because I do not use it.

Shall we also need to comment redis?

As you wish. Feel free to exclude everything that you do not need in your fork.

Also Please let me know if we require more modules to get commented.

It is your responsibility to decide what you need and what you do not need. I am not able to read your thoughts.

@vladimir-bukhtoyarov vladimir-bukhtoyarov added the question Further information is requested label Apr 22, 2024
@pranopowar
Copy link
Author

Now I am facing issue in Redis.

image

As it mentioneed in the logs, you have a problem with docker environment. You should install docker and make some setup of docker if neccesarry. I do not know how to do this on Windows because I do not use it.

Shall we also need to comment redis?

As you wish. Feel free to exclude everything that you do not need in your fork.

Also Please let me know if we require more modules to get commented.

It is your responsibility to decide what you need and what you do not need. I am not able to read your thoughts.

Hi @vladimir-bukhtoyarov,
I have tested it in docker environment too but getting test cases failed with below issue. Please help me on it.

[12:59 PM] SRIVASTAVA, SHIV OM
[INFO] Reactor Summary for bucket4j 7.6.0:

[INFO]

[INFO] bucket4j-parent .................................... SUCCESS [ 1.585 s]

[INFO] bucket4j-core ...................................... SUCCESS [ 48.781 s]

[INFO] bucket4j-jcache .................................... SUCCESS [01:46 min]

[INFO] bucket4j-ignite .................................... SUCCESS [01:16 min]

[INFO] bucket4j-infinispan-all ............................ SUCCESS [ 0.017 s]

[INFO] bucket4j-infinispan ................................ SUCCESS [ 24.215 s]

[INFO] bucket4j-infinispan-8 .............................. SUCCESS [ 36.882 s]

[INFO] bucket4j-hazelcast-all ............................. SUCCESS [ 0.011 s]

[INFO] bucket4j-hazelcast ................................. SUCCESS [02:09 min]

[INFO] bucket4j-hazelcast-3 ............................... SUCCESS [01:46 min]

[INFO] bucket4j-benchmarks ................................ SUCCESS [ 1.515 s]

[INFO] bucket4j-examples .................................. SUCCESS [ 0.152 s]

[INFO] lincheck-tests ..................................... SUCCESS [01:40 min]

[INFO] bucket4j-redis ..................................... FAILURE [ 12.437 s]

[INFO] bucket4j-coherence ................................. SKIPPED

[INFO] bucket4j-postgresql ................................ SKIPPED

[INFO] bucket4j-mysql ..................................... SKIPPED

[INFO] bucket4j-caffeine .................................. SKIPPED

[INFO] Bucket4j Documentation ............................. SKIPPED

[INFO] bucket4j ........................................... SKIPPED

[INFO] ------------------------------------------------------------------------

[INFO] BUILD FAILURE

[INFO] ------------------------------------------------------------------------

[INFO] Total time: 10:44 min

[INFO] Finished at: 2024-04-22T18:02:24+05:30

[INFO] ------------------------------------------------------------------------

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.20:test (default-test) on project bucket4j-redis: There are test failures.

[ERROR]

[ERROR] Please refer to /home/devi/bucket4j/bucket4j-redis/target/surefire-reports for the individual test results.

[ERROR] Please refer to dump files (if any exist) [date]-jvmRun[N].dump, [date].dumpstream and [date]-jvmRun[N].dumpstream.

[ERROR] -> [Help 1]

[ERROR]

[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.

[ERROR] Re-run Maven using the -X switch to enable full debug logging.

[ERROR]

[ERROR] For more information about the errors and possible solutions, please read the following articles:

[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

[ERROR]

[ERROR] After correcting the problems, you can resume the build with the command

[ERROR] mvn -rf :bucket4j-redis
MojoFailureException - Apache Maven - Apache Software Foundation

@vladimir-bukhtoyarov
Copy link
Contributor

vladimir-bukhtoyarov commented Apr 23, 2024

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.20:test (default-test) on project bucket4j-redis: There are test failures.

And where are test logs?

Please help me on it.

If I understand correctly, your goal is to build some fork of bucket4j-hazelcast. Why do you spend time to build bucket4j-redis? I do not belive that employers of your company were able to create working fork of 7.6.0. After reading current issue, as well as this issue, I conclude that your in-house fork was created by some skilled external consultant. Please raise your boss to hire this man again, and do not waste my and your time.

@PavithraGeetha
Copy link

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.20:test (default-test) on project bucket4j-redis: There are test failures.

And where are test logs?

Please help me on it.

If I understand correctly, your goal is to build some fork of bucket4j-hazelcast. Why do you spend time to build bucket4j-redis? I do not belive that employers of your company were able to create working fork of 7.6.0. After reading current issue, as well as this issue, I conclude that your in-house fork was created by some skilled external consultant. Please raise your boss to hire this man again, and do not waste my and your time.

Hi @vladimir-bukhtoyarov, For above issue, please find the attached log. I have also tried with same configuration as mentioned above but facing error.
bucket4j 1 1.txt

@pranopowar
Copy link
Author

Hi, @vladimir-bukhtoyarov please find attached log
bucket4j-redis.txt

@vladimir-bukhtoyarov vladimir-bukhtoyarov transferred this issue from bucket4j/bucket4j Apr 29, 2024
@vladimir-bukhtoyarov
Copy link
Contributor

Hi, @vladimir-bukhtoyarov please find attached log bucket4j-redis.txt

Are you banned from Google?

image

Anymay, now you are banned from this repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants