coder2z commented on PR #12261:
URL: https://github.com/apache/apisix/pull/12261#issuecomment-3164835998

   > > I encountered some problems while fixing unit tests, which I find 
difficult to solve. Could you help me check the reason, and how can I run unit 
test files locally using docker?我在修复单元测试时遇到了一些问题,我发现很难解决。你能帮我检查一下原因,以及如何使用 
docker 在本地运行单元测试文件?
   > 
   > You can refer to 
https://github.com/apache/apisix/blob/master/docs/en/latest/build-apisix-dev-environment-devcontainers.md可以参考
 
https://github.com/apache/apisix/blob/master/docs/en/latest/build-apisix-dev-environment-devcontainers.md
   
   According to the document, the following error occurs, @Baoyuantop
   
   ```
   root@f7093cffb2ed:/workspace# make run
   [ info ] run -> [ Start ]
   /workspace/bin/apisix start
   /usr/local/openresty//luajit/bin/luajit ./apisix/cli/apisix.lua start
   nginx.pid exists but there's no corresponding process with pid  21156   , 
the file will be overwritten
   trying to initialize the data of etcd
   nginx: [emerg] bind() to unix:/workspace/logs/worker_events.sock failed (98: 
Address already in use)
   nginx: [emerg] bind() to unix:/workspace/logs/worker_events.sock failed (98: 
Address already in use)
   nginx: [emerg] bind() to unix:/workspace/logs/worker_events.sock failed (98: 
Address already in use)
   nginx: [emerg] bind() to unix:/workspace/logs/worker_events.sock failed (98: 
Address already in use)
   nginx: [emerg] bind() to unix:/workspace/logs/worker_events.sock failed (98: 
Address already in use)
   nginx: [emerg] still could not bind()
   [ info ] run -> [ Done ]
   root@f7093cffb2ed:/workspace# nginx -v
   bash: nginx: command not found
   root@f7093cffb2ed:/workspace# FLUSH_ETCD=1 prove -Itest-nginx/lib -I. -r 
t/node/least_conn.t
   perl: warning: Setting locale failed.
   perl: warning: Please check that your locale settings:
           LANGUAGE = (unset),
           LC_ALL = (unset),
           LANG = "en_US.UTF-8"
       are supported and installed on your system.
   perl: warning: Falling back to the standard locale ("C").
   t/node/least_conn.t .. perl: warning: Setting locale failed.
   perl: warning: Please check that your locale settings:
           LANGUAGE = (unset),
           LC_ALL = (unset),
           LANG = "en_US.UTF-8"
       are supported and installed on your system.
   perl: warning: Falling back to the standard locale ("C").
   Use of uninitialized value $version in pattern match (m//) at 
/workspace/t/APISIX.pm line 147.
   Use of uninitialized value $version in pattern match (m//) at 
/workspace/t/APISIX.pm line 196.
   Use of uninitialized value $version in pattern match (m//) at 
/workspace/t/APISIX.pm line 228.
   Use of uninitialized value $version in pattern match (m//) at 
/workspace/t/APISIX.pm line 237.
   Bailout called.  Further testing stopped:  Failed to get the version of the 
Nginx in PATH:
   t/node/least_conn.t .. skipped: (no reason given)
   
   Test Summary Report
   -------------------
   t/node/least_conn.t (Wstat: 65280 (exited 255) Tests: 0 Failed: 0)
     Non-zero exit status: 255
   Files=1, Tests=0,  1 wallclock secs ( 0.02 usr  0.00 sys +  0.19 cusr  0.12 
csys =  0.33 CPU)
   Result: FAIL
   FAILED--Further testing stopped: Failed to get the version of the Nginx in 
PATH:
   root@f7093cffb2ed:/workspace# git status
   On branch master
   Your branch is up to date with 'origin/master'.
   
   Changes not staged for commit:
     (use "git add <file>..." to update what will be committed)
     (use "git restore <file>..." to discard changes in working directory)
           modified:   .devcontainer/devcontainer.json
           modified:   conf/config.yaml
   
   Untracked files:
     (use "git add <file>..." to include in what will be committed)
           test-nginx/
   
   no changes added to commit (use "git add" and/or "git commit -a")
   ```
   
   


-- 
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: notifications-unsubscr...@apisix.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to