-
Notifications
You must be signed in to change notification settings - Fork 35
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
migrate chaos mesh to the knuu #459
Conversation
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Tip Early access features: enabledWe are currently testing the following features in early access:
Note:
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
Can you add it to the github workflow matrix so we can see the failures in CI? knuu/.github/workflows/knuu_testing.yml Line 14 in 8d1b00f
Can you share what the failures are that you are seeing locally? |
done
Sure. Here is when I run it all together with isolated namespaces sequentially: === RUN TestRunSuite
=== RUN TestRunSuite/TestBandwidth
time="2024-06-26T10:41:51+02:00" level=info msg="The .env file does not exist, continuing without loading environment variables."
time="2024-06-26T10:41:51+02:00" level=info msg="LOG_LEVEL: info" file="log/logger.go:34"
suite_setup_test.go:67: Scope: 20240626-104151-940
chaosmesh_test.go:140: Waiting 10s for chaos mesh to settle
chaosmesh_test.go:145: Time taken for wget before bandwidth: 27.345988762s after bandwidth: 12.980991868s
chaosmesh_test.go:147:
Error Trace: /home/moji/celestia/knuu/e2e/chaosmesh/chaosmesh_test.go:147
Error: "12.980991868s" is not greater than "27.345988762s"
Test: TestRunSuite/TestBandwidth
Messages: Time after bandwidth is not longer than time before bandwidth
=== RUN TestRunSuite/TestCorrupt
time="2024-06-26T10:42:56+02:00" level=info msg="The .env file does not exist, continuing without loading environment variables."
time="2024-06-26T10:42:56+02:00" level=info msg="LOG_LEVEL: info" file="log/logger.go:34"
suite_setup_test.go:67: Scope: 20240626-104256-035
chaosmesh_test.go:108: Waiting 10s for chaos mesh to settle
chaosmesh_test.go:113: Time taken for wget before corrupt: 29.818175866s after corrupt: 14.994630351s
chaosmesh_test.go:115:
Error Trace: /home/moji/celestia/knuu/e2e/chaosmesh/chaosmesh_test.go:115
Error: "14.994630351s" is not greater than "29.818175866s"
Test: TestRunSuite/TestCorrupt
Messages: Time after corrupt is not longer than time before corrupt
=== RUN TestRunSuite/TestDelay
time="2024-06-26T10:44:04+02:00" level=info msg="The .env file does not exist, continuing without loading environment variables."
time="2024-06-26T10:44:04+02:00" level=info msg="LOG_LEVEL: info" file="log/logger.go:34"
suite_setup_test.go:67: Scope: 20240626-104404-580
chaosmesh_test.go:27: Waiting 10s for chaos mesh to settle
chaosmesh_test.go:32: Time taken for wget before delay: 26.889980033s after delay: 26.170361577s
chaosmesh_test.go:34:
Error Trace: /home/moji/celestia/knuu/e2e/chaosmesh/chaosmesh_test.go:34
Error: "26.170361577s" is not greater than "26.889980033s"
Test: TestRunSuite/TestDelay
Messages: Time after delay is not longer than time before delay
=== RUN TestRunSuite/TestDuplicate
time="2024-06-26T10:45:19+02:00" level=info msg="The .env file does not exist, continuing without loading environment variables."
time="2024-06-26T10:45:19+02:00" level=info msg="LOG_LEVEL: info" file="log/logger.go:34"
suite_setup_test.go:67: Scope: 20240626-104519-042
chaosmesh_test.go:81: Waiting 10s for chaos mesh to settle
chaosmesh_test.go:86: Time taken for wget before duplicate: 27.027887443s after duplicate: 26.465900458s
chaosmesh_test.go:88:
Error Trace: /home/moji/celestia/knuu/e2e/chaosmesh/chaosmesh_test.go:88
Error: "26.465900458s" is not greater than "27.027887443s"
Test: TestRunSuite/TestDuplicate
Messages: Time after duplicate is not longer than time before duplicate
=== RUN TestRunSuite/TestLoss
time="2024-06-26T10:46:42+02:00" level=info msg="The .env file does not exist, continuing without loading environment variables."
time="2024-06-26T10:46:42+02:00" level=info msg="LOG_LEVEL: info" file="log/logger.go:34"
suite_setup_test.go:67: Scope: 20240626-104642-121
chaosmesh_test.go:54: Waiting 10s for chaos mesh to settle
chaosmesh_test.go:59: Time taken for wget before loss: 13.95433273s after loss: 14.305350963s
--- FAIL: TestRunSuite (343.31s)
--- FAIL: TestRunSuite/TestBandwidth (64.09s)
--- FAIL: TestRunSuite/TestCorrupt (68.55s)
--- FAIL: TestRunSuite/TestDelay (74.46s)
--- FAIL: TestRunSuite/TestDuplicate (83.08s)
--- PASS: TestRunSuite/TestLoss (53.13s)
FAIL
FAIL github.com/celestiaorg/knuu/e2e/chaosmesh 343.448s
FAIL and when we run them one by one, they usually pass: go test -v ./e2e/chaosmesh/ -timeout 60m -count=1 --run TestRunSuite/TestBandwidth
go test -v ./e2e/chaosmesh/ -timeout 60m -count=1 --run TestRunSuite/TestCorrupt
go test -v ./e2e/chaosmesh/ -timeout 60m -count=1 --run TestRunSuite/TestDelay
go test -v ./e2e/chaosmesh/ -timeout 60m -count=1 --run TestRunSuite/TestDuplicate
go test -v ./e2e/chaosmesh/ -timeout 60m -count=1 --run TestRunSuite/TestLoss
=== RUN TestRunSuite
=== RUN TestRunSuite/TestBandwidth
time="2024-06-26T10:54:40+02:00" level=info msg="The .env file does not exist, continuing without loading environment variables."
time="2024-06-26T10:54:40+02:00" level=info msg="LOG_LEVEL: info" file="log/logger.go:34"
suite_setup_test.go:67: Scope: 20240626-105440-946
chaosmesh_test.go:140: Waiting 10s for chaos mesh to settle
chaosmesh_test.go:145: Time taken for wget before bandwidth: 13.117046776s after bandwidth: 27.103344713s
--- PASS: TestRunSuite (65.91s)
--- PASS: TestRunSuite/TestBandwidth (65.91s)
PASS
ok github.com/celestiaorg/knuu/e2e/chaosmesh 66.045s
=== RUN TestRunSuite
=== RUN TestRunSuite/TestCorrupt
time="2024-06-26T10:55:49+02:00" level=info msg="The .env file does not exist, continuing without loading environment variables."
time="2024-06-26T10:55:49+02:00" level=info msg="LOG_LEVEL: info" file="log/logger.go:34"
suite_setup_test.go:67: Scope: 20240626-105549-726
chaosmesh_test.go:108: Waiting 10s for chaos mesh to settle
chaosmesh_test.go:113: Time taken for wget before corrupt: 26.214538065s after corrupt: 26.921705398s
--- PASS: TestRunSuite (77.70s)
--- PASS: TestRunSuite/TestCorrupt (77.70s)
PASS
ok github.com/celestiaorg/knuu/e2e/chaosmesh 77.845s
=== RUN TestRunSuite
=== RUN TestRunSuite/TestDelay
time="2024-06-26T10:57:10+02:00" level=info msg="The .env file does not exist, continuing without loading environment variables."
time="2024-06-26T10:57:10+02:00" level=info msg="LOG_LEVEL: info" file="log/logger.go:34"
suite_setup_test.go:67: Scope: 20240626-105710-157
chaosmesh_test.go:27: Waiting 10s for chaos mesh to settle
chaosmesh_test.go:32: Time taken for wget before delay: 28.403200834s after delay: 29.653790723s
--- PASS: TestRunSuite (83.11s)
--- PASS: TestRunSuite/TestDelay (83.11s)
PASS
ok github.com/celestiaorg/knuu/e2e/chaosmesh 83.239s
=== RUN TestRunSuite
=== RUN TestRunSuite/TestDuplicate
time="2024-06-26T10:58:36+02:00" level=info msg="The .env file does not exist, continuing without loading environment variables."
time="2024-06-26T10:58:36+02:00" level=info msg="LOG_LEVEL: info" file="log/logger.go:34"
suite_setup_test.go:67: Scope: 20240626-105836-117
chaosmesh_test.go:81: Waiting 10s for chaos mesh to settle
chaosmesh_test.go:86: Time taken for wget before duplicate: 14.752317089s after duplicate: 13.546388261s
chaosmesh_test.go:88:
Error Trace: /home/moji/celestia/knuu/e2e/chaosmesh/chaosmesh_test.go:88
Error: "13.546388261s" is not greater than "14.752317089s"
Test: TestRunSuite/TestDuplicate
Messages: Time after duplicate is not longer than time before duplicate
--- FAIL: TestRunSuite (52.02s)
--- FAIL: TestRunSuite/TestDuplicate (52.02s)
FAIL
FAIL github.com/celestiaorg/knuu/e2e/chaosmesh 52.155s
FAIL
=== RUN TestRunSuite
=== RUN TestRunSuite/TestLoss
time="2024-06-26T10:59:30+02:00" level=info msg="The .env file does not exist, continuing without loading environment variables."
time="2024-06-26T10:59:30+02:00" level=info msg="LOG_LEVEL: info" file="log/logger.go:34"
suite_setup_test.go:67: Scope: 20240626-105930-866
chaosmesh_test.go:54: Waiting 10s for chaos mesh to settle
chaosmesh_test.go:59: Time taken for wget before loss: 14.224850495s after loss: 26.397818292s
--- PASS: TestRunSuite (64.47s)
--- PASS: TestRunSuite/TestLoss (64.47s)
PASS
ok github.com/celestiaorg/knuu/e2e/chaosmesh 64.594s |
Can we close this PR? |
Well if we decide not to use Chaos mesh in knuu, then we can close it. |
The teams do not use knuu with network shaping and it seems they will not in the near future. |
Closes #451
it is in draft mode because the tests are flaky, need to find a way to assure the tests always.
The tests are passing when run one by one, but when run altogether some of them fail. The attempts done to mitigate this behavior:
Even tried to run them separately in different terminals, they also fail when they are running at the same time.