tomsun28 opened a new issue, #2449: URL: https://github.com/apache/hertzbeat/issues/2449
### Is there an existing issue for this? - [X] I have searched the existing issues ### Current Behavior e2e test container not work somtime, but sometine work https://github.com/apache/hertzbeat/actions/runs/10217947383/job/28272901610 ``` Run sudo curl -L https://github.com/docker/compose/releases/download/v2.23.0/docker-compose-linux-x86_64 -o /usr/local/bin/docker-compose % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 41 56.8M 41 23.4M 0 0 131M 0 --:--:-- --:--:-- --:--:-- 131M 100 56.8M 100 56.8M 0 0 161M 0 --:--:-- --:--:-- --:--:-- 191M ./script/start.sh: line 27: /usr/local/bin/docker-compose: Permission denied ./script/start.sh: line 28: /usr/local/bin/docker-compose: Permission denied ./script/start.sh: line 29: /usr/local/bin/docker-compose: Permission denied Error: Process completed with exit code [12](https://github.com/apache/hertzbeat/actions/runs/10217947383/job/28272901610#step:7:13)6. ``` and sometime work failed due the auth 401, but the test case has authed token. https://github.com/apache/hertzbeat/actions/runs/10163186876/job/28105479172#step:7:110 ``` Network e2e_default Creating Network e2e_default Created Container e2e-hertzbeat-1 Creating Container e2e-hertzbeat-1 Created Container e2e-testing-1 Creating Container e2e-testing-1 Created Attaching to e2e-testing-1 e2e-testing-1 | 2024-07-30T13:24:41.146Z INFO loader testing/loader_file.go:140 testsuite.yaml {"pattern": 1} e2e-testing-1 | found suites: 1 e2e-testing-1 | start to run: 'login' e2e-testing-1 | start to send request to http://hertzbeat:1157/api/account/auth/form e2e-testing-1 | start to run: 'login-missing-content-type' e2e-testing-1 | start to send request to http://hertzbeat:1157/api/account/auth/form e2e-testing-1 | start to run: 'missing-auth-header' e2e-testing-1 | start to send request to http://hertzbeat:1157/api/monitors e2e-testing-1 | start to run: 'monitorList' e2e-testing-1 | start to send request to http://hertzbeat:1157/api/monitors?pageIndex=0&pageSize=8 e2e-testing-1 | 2024-07-30T13:24:41.405Z INFO run cmd/run.go:303 routing end with {"time": "258.894316ms"} e2e-testing-1 | Error: failed to run 'monitorList', error is: case: monitorList, expect 200, actual 401 e2e-testing-1 | There are 4 test cases, failed count 1: e2e-testing-1 | e2e-testing-1 | | Name | Average | Max | Min | Count | Error | e2e-testing-1 | |---|---|---|---|---|---| e2e-testing-1 | | login | 176.039701ms | 176.039701ms | 176.039701ms | 1 | 0 | e2e-testing-1 | | login-missing-content-type | 35.118189ms | 35.118189ms | 35.118189ms | 1 | 0 | e2e-testing-1 | | monitorList | 32.518786ms | 32.518786ms | 32.518786ms | 1 | 1 | e2e-testing-1 | | missing-auth-header | 5.[74](https://github.com/apache/hertzbeat/actions/runs/10163186876/job/28105479172#step:7:75)0627ms | 5.740627ms | 5.740627ms | 1 | 0 | e2e-testing-1 | e2e-testing-1 | <details> e2e-testing-1 | <summary><b>See the error message</b></summary> e2e-testing-1 | * Case: monitorList. error: error is: case: monitorList, expect 200, actual 401. body: e2e-testing-1 | </details>Consumed: 259.63195ms Aborting on container exit... e2e-testing-1 exited with code 1 Container e2e-testing-1 Stopping Container e2e-testing-1 Stopped Error: Process completed with exit code 1. ``` ### Expected Behavior _No response_ ### Steps To Reproduce 1. e2e test with github action or local sometime ### Environment ```markdown HertzBeat version(s):v1.6.0 ``` ### Debug logs _No response_ ### Anything else? _No response_ -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
