Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewtruong committed Feb 21, 2025
1 parent 012851a commit 7bba97e
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 8 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ test = [

[project.scripts]
weave = "weave.trace.cli:cli"
generate = "tools.stainless.do_everything:main"
codegen = "tools.codegen.generate:cli"


[project.urls]
Expand Down
3 changes: 0 additions & 3 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -383,9 +383,6 @@ def get_error_logs(self):
)
# (AT): This seems to be the same issue as above, but manifesting as a different error
# after integrating Stainless
and not record.msg.startswith(
"Task failed: BadRequestError: Error code: 400 - ***'detail': 'API key must be exactly 40 characters long'***"
)
and not ("API key must be exactly 40 characters long" in record.msg)
# Exclude legacy
and not record.name.startswith("weave.weave_server")
Expand Down
Empty file added tools/codegen/README.md
Empty file.
4 changes: 0 additions & 4 deletions weave/trace/concurrent/futures.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,10 +219,6 @@ def _safe_submit(self, f: Callable[..., T], *args: Any, **kwargs: Any) -> Future
"""
wrapped = self._make_deadlock_safe(f)

print(
f"Submitting function {f.__name__=} to threadpool, with {args=}, {kwargs=}"
)

if self._executor is None or self._in_thread_context.get():
return self._execute_directly(wrapped, *args, **kwargs)

Expand Down
3 changes: 3 additions & 0 deletions weave/trace_server_bindings/stainless_http_trace_server.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# This file began as a copy of the remote_http_trace_server.py file in the trace_server_bindings directory.
# It has been modified to use the stainless generated client instead of the remote_http_trace_server.

import io
import json
import logging
Expand Down

0 comments on commit 7bba97e

Please sign in to comment.