-
Notifications
You must be signed in to change notification settings - Fork 654
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
Fix CI error of nightly eval #2701
Conversation
e50c73e
to
e76e595
Compare
@@ -822,3 +822,61 @@ def run_one(_): | |||
def write_github_step_summary(content): | |||
with open(os.environ["GITHUB_STEP_SUMMARY"], "a") as f: | |||
f.write(content) | |||
|
|||
|
|||
def launch_server_in_nightly_test( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't use this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The old style of nightly evaluation is not good. Let's switch to a configurable approach to support any third-party tools. Something like this https://github.com/sgl-project/sglang/blob/main/test/srt/configs/sharegpt_config.yaml
|
||
try: | ||
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | ||
sock.bind(("", parsed.port)) |
Check warning
Code scanning / CodeQL
Binding a socket to all network interfaces Medium test
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix AI 3 days ago
To fix the problem, we need to bind the socket to a specific interface instead of all interfaces. This can be done by replacing the empty string (''
) with a specific IP address, such as 127.0.0.1
, which binds the socket to the localhost interface. This change will limit the socket to accept connections only from the local machine, reducing the security risk.
-
Copy modified line R874 -
Copy modified line R879
@@ -873,3 +873,3 @@ | ||
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | ||
sock.bind(("", parsed.port)) | ||
sock.bind(("127.0.0.1", parsed.port)) | ||
sock.close() | ||
@@ -878,3 +878,3 @@ | ||
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | ||
sock.bind(("", 0)) | ||
sock.bind(("127.0.0.1", 0)) | ||
_, new_port = sock.getsockname() |
return url | ||
except OSError: | ||
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | ||
sock.bind(("", 0)) |
Check warning
Code scanning / CodeQL
Binding a socket to all network interfaces Medium test
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix AI 3 days ago
To fix the problem, we need to bind the socket to a specific interface instead of all interfaces. This can be achieved by replacing the empty string ''
with a specific IP address, such as 127.0.0.1
, which binds the socket to the localhost interface. This change will ensure that the socket only accepts connections from the local machine, reducing the security risks.
-
Copy modified line R874 -
Copy modified line R879
@@ -873,3 +873,3 @@ | ||
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | ||
sock.bind(("", parsed.port)) | ||
sock.bind(("127.0.0.1", parsed.port)) | ||
sock.close() | ||
@@ -878,3 +878,3 @@ | ||
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | ||
sock.bind(("", 0)) | ||
sock.bind(("127.0.0.1", 0)) | ||
_, new_port = sock.getsockname() |
) | ||
|
||
|
||
def parse_humaneval_results(output_text): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we add a todo for eval res assertion?
@zhyncs Leave this to you! |
As discussed in Slack, I'll handle this refactor. Thanks for your contributions, @zhaochenyang20 and @XiaotongJiang. I'll list you as co-authors. Stay tuned, it should be finished in a day or two. |
cool! Thanks yineng @zhyncs |
Motivation
We rewrite and fix the CI of
human_eval
andmath
.Modifications
Checklist