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

Bring back integration tests #18313

Merged
merged 11 commits into from
Oct 25, 2023

Conversation

YichuanSun
Copy link
Contributor

@YichuanSun YichuanSun commented Oct 23, 2023

What changes are proposed in this pull request?

All integration tests do not run now, this PR fixs it.

Why are the changes needed?

Fix bug.

Does this PR introduce any user facing changes?

No.

@@ -58,7 +58,6 @@ jobs:
mkdir -p ~/.m2
ALLUXIO_DOCKER_NO_TTY=true \
ALLUXIO_DOCKER_GIT_CLEAN=true \
ALLUXIO_DOCKER_MVN_PROJECT_LIST=dora/tests \
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is just a quick fix, the entire fix should be discussed further.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

PTAL👻! @Xenorith

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Because all integration tests are not run about three months, now so many fails appears in the workflows below.

Copy link
Contributor

Choose a reason for hiding this comment

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

i think this is the correct fix for this file. but i think it also needs to be applied for the file at .github/workflows/java8_integration_tests_ft.yml and .github/workflows/java8_integration_tests_webui.yml

Copy link
Contributor Author

Choose a reason for hiding this comment

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

applied

i think this is the correct fix for this file. but i think it also needs to be applied for the file at .github/workflows/java8_integration_tests_ft.yml and .github/workflows/java8_integration_tests_webui.yml

@YichuanSun YichuanSun added the type-bug This issue is about a bug label Oct 23, 2023
@YichuanSun YichuanSun self-assigned this Oct 23, 2023
@Xenorith
Copy link
Contributor

since all the integration test builds run under 25min which is the duration of the checkstyle build, there doesn't need to be any rebalancing of tests

@jiacheliu3
Copy link
Contributor

2023-10-25T02:23:18.7357259Z 02:23:18.733 [ERROR] Tests run: 4, Failures: 0, Errors: 2, Skipped: 1, Time elapsed: 11.942 s <<< FAILURE! - in alluxio.web.WebServerIntegrationTest
2023-10-25T02:23:18.7358885Z 02:23:18.734 [ERROR] alluxio.web.WebServerIntegrationTest.metricsJson  Time elapsed: 9.489 s  <<< ERROR!
2023-10-25T02:23:18.7359796Z java.lang.NullPointerException
2023-10-25T02:23:18.7360479Z 	at alluxio.client.rest.TestCase.getResponse(TestCase.java:119)
2023-10-25T02:23:18.7361622Z 	at alluxio.client.rest.TestCase.runAndGetResponse(TestCase.java:255)
2023-10-25T02:23:18.7362697Z 	at alluxio.web.WebServerIntegrationTest.verifyMetricsJson(WebServerIntegrationTest.java:74)
2023-10-25T02:23:18.7363890Z 	at alluxio.web.WebServerIntegrationTest.metricsJson(WebServerIntegrationTest.java:64)
2023-10-25T02:23:18.7364863Z 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2023-10-25T02:23:18.7365807Z 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
2023-10-25T02:23:18.7366906Z 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
2023-10-25T02:23:18.7367814Z 	at java.lang.reflect.Method.invoke(Method.java:498)
2023-10-25T02:23:18.7368699Z 	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
2023-10-25T02:23:18.7369827Z 	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
2023-10-25T02:23:18.7370978Z 	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)
2023-10-25T02:23:18.7372106Z 	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
2023-10-25T02:23:18.7373290Z 	at alluxio.testutils.LocalAlluxioClusterResource$1.evaluate(LocalAlluxioClusterResource.java:198)
2023-10-25T02:23:18.7374561Z 	at org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:288)
2023-10-25T02:23:18.7375846Z 	at org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:282)
2023-10-25T02:23:18.7376848Z 	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
2023-10-25T02:23:18.7377492Z 	at java.lang.Thread.run(Thread.java:750)
2023-10-25T02:23:18.7377832Z 
2023-10-25T02:23:18.7378481Z 02:23:18.734 [ERROR] alluxio.web.WebServerIntegrationTest.metricsJson  Time elapsed: 0.866 s  <<< ERROR!
2023-10-25T02:23:18.7379371Z java.lang.NullPointerException
2023-10-25T02:23:18.7379997Z 	at alluxio.client.rest.TestCase.getResponse(TestCase.java:119)
2023-10-25T02:23:18.7380851Z 	at alluxio.client.rest.TestCase.runAndGetResponse(TestCase.java:255)
2023-10-25T02:23:18.7381914Z 	at alluxio.web.WebServerIntegrationTest.verifyMetricsJson(WebServerIntegrationTest.java:74)
2023-10-25T02:23:18.7383069Z 	at alluxio.web.WebServerIntegrationTest.metricsJson(WebServerIntegrationTest.java:64)
2023-10-25T02:23:18.7384028Z 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2023-10-25T02:23:18.7384957Z 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
2023-10-25T02:23:18.7386054Z 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
2023-10-25T02:23:18.7386957Z 	at java.lang.reflect.Method.invoke(Method.java:498)
2023-10-25T02:23:18.7387836Z 	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
2023-10-25T02:23:18.7388941Z 	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
2023-10-25T02:23:18.7390238Z 	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)
2023-10-25T02:23:18.7391377Z 	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
2023-10-25T02:23:18.7392676Z 	at alluxio.testutils.LocalAlluxioClusterResource$1.evaluate(LocalAlluxioClusterResource.java:198)
2023-10-25T02:23:18.7393957Z 	at org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:288)
2023-10-25T02:23:18.7395253Z 	at org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:282)
2023-10-25T02:23:18.7396247Z 	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
2023-10-25T02:23:18.7396893Z 	at java.lang.Thread.run(Thread.java:750)
2023-10-25T02:23:18.7397233Z 
2023-10-25T02:23:19.1130925Z 02:23:19.112 [INFO] 
2023-10-25T02:23:19.1131620Z 02:23:19.112 [INFO] Results:
2023-10-25T02:23:19.1132652Z 02:23:19.112 [INFO] 
2023-10-25T02:23:19.1133202Z 02:23:19.112 [ERROR] Errors: 
2023-10-25T02:23:19.1138324Z 02:23:19.112 [ERROR] alluxio.web.WebServerIntegrationTest.metricsJson
2023-10-25T02:23:19.1143606Z 02:23:19.112 [ERROR]   Run 1: WebServerIntegrationTest.metricsJson:64->verifyMetricsJson:74 » NullPointer
2023-10-25T02:23:19.1145262Z 02:23:19.112 [ERROR]   Run 2: WebServerIntegrationTest.metricsJson:64->verifyMetricsJson:74 » NullPointer

@jiacheliu3 jiacheliu3 changed the title Bring Back integration tests Bring back integration tests Oct 25, 2023
@jiacheliu3
Copy link
Contributor

alluxio-bot, merge this please

@alluxio-bot alluxio-bot merged commit e830663 into Alluxio:main Oct 25, 2023
14 checks passed
alluxio-bot pushed a commit that referenced this pull request Nov 8, 2023
a previous PR #18313 restored the integration tests but caused the unit tests to also run with the integration tests.

the issue was correctly identified as an issue with the maven project list but the underlying problem was that the project name was not correctly set; `dora/tests` is not a module. it was previously a module until `dora/tests/testcontainers` was introduced, thus separating testcontainer tests vs integration tests.

this fix updates the previous project list with the correct module name
			pr-link: #18392
			change-id: cid-5f899f224abfbea4b7608d72cc2d38fed6449836
YichuanSun added a commit to YichuanSun/alluxio that referenced this pull request Nov 17, 2023
All integration tests do not run now, this PR fixs it.

Fix bug.

No.
			pr-link: Alluxio#18313
			change-id: cid-e3f71f5b817624c45b8a3fc2baae2b08b99cd109
ssz1997 pushed a commit to ssz1997/alluxio that referenced this pull request Dec 15, 2023
### What changes are proposed in this pull request?

All integration tests do not run now, this PR fixs it.

### Why are the changes needed?

Fix bug.

### Does this PR introduce any user facing changes?

No.
			pr-link: Alluxio#18313
			change-id: cid-e3f71f5b817624c45b8a3fc2baae2b08b99cd109
ssz1997 pushed a commit to ssz1997/alluxio that referenced this pull request Dec 15, 2023
a previous PR Alluxio#18313 restored the integration tests but caused the unit tests to also run with the integration tests.

the issue was correctly identified as an issue with the maven project list but the underlying problem was that the project name was not correctly set; `dora/tests` is not a module. it was previously a module until `dora/tests/testcontainers` was introduced, thus separating testcontainer tests vs integration tests.

this fix updates the previous project list with the correct module name
			pr-link: Alluxio#18392
			change-id: cid-5f899f224abfbea4b7608d72cc2d38fed6449836
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-bug This issue is about a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants