Skip to content
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

chore(weave): Further split out Query/Trace #2182

Closed
wants to merge 117 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
117 commits
Select commit Hold shift + click to select a range
40d8c7c
test
andrewtruong Aug 20, 2024
d373f06
test
andrewtruong Aug 20, 2024
861a2c7
test
andrewtruong Aug 20, 2024
423ec01
test
andrewtruong Aug 21, 2024
7395e62
test
andrewtruong Aug 21, 2024
9fecdfc
test
andrewtruong Aug 21, 2024
53616d9
test
andrewtruong Aug 21, 2024
423cd68
test
andrewtruong Aug 21, 2024
13df455
test
andrewtruong Aug 21, 2024
0c48009
test
andrewtruong Aug 21, 2024
faa2828
test
andrewtruong Aug 21, 2024
ed624e0
test
andrewtruong Aug 21, 2024
9503167
test
andrewtruong Aug 21, 2024
9869817
stream_data_interfaces
andrewtruong Aug 21, 2024
251d34d
autopatch,call_context
andrewtruong Aug 21, 2024
78f303a
feedback
andrewtruong Aug 21, 2024
9ed89de
weave_client
andrewtruong Aug 21, 2024
0afc231
legacy notebooks
andrewtruong Aug 21, 2024
16c971c
bisect_script
andrewtruong Aug 21, 2024
d1d8c01
scripts1
andrewtruong Aug 21, 2024
565ad54
scripts2
andrewtruong Aug 21, 2024
c31b2af
jupyter_dev
andrewtruong Aug 21, 2024
2132a53
rich_*
andrewtruong Aug 22, 2024
0026fbe
weave_server*.sh
andrewtruong Aug 22, 2024
f2f3fd0
remove patch
andrewtruong Aug 22, 2024
18ddc47
weavify
andrewtruong Aug 22, 2024
b7c48e6
weavejs_fixes
andrewtruong Aug 22, 2024
5c4c119
infer_types
andrewtruong Aug 23, 2024
f6e0baa
show
andrewtruong Aug 23, 2024
6d4d2b4
eager
andrewtruong Aug 23, 2024
21883dc
stitch
andrewtruong Aug 23, 2024
5959099
pyfunc_type_util.py
andrewtruong Aug 23, 2024
1693a8f
table
andrewtruong Aug 23, 2024
1e40766
node_ref
andrewtruong Aug 23, 2024
ec1fada
types_numpy
andrewtruong Aug 23, 2024
edf6b8e
registry_mem
andrewtruong Aug 23, 2024
7fba57f
weave_types
andrewtruong Aug 23, 2024
b23b979
parallelism
andrewtruong Aug 23, 2024
ce7582f
trace_sentry
andrewtruong Aug 23, 2024
4f3dfeb
trace_api
andrewtruong Aug 23, 2024
7099f53
server_error_handling
andrewtruong Aug 23, 2024
140dcac
engine_trace
andrewtruong Aug 23, 2024
79afdd7
serve_fastapi
andrewtruong Aug 23, 2024
c891e5b
trace_local.py
andrewtruong Aug 23, 2024
062665c
ref_base
andrewtruong Aug 23, 2024
0177b72
ref_util
andrewtruong Aug 23, 2024
4bfe5c9
query_api
andrewtruong Aug 23, 2024
4f265ea
server
andrewtruong Aug 23, 2024
9eb4fa5
environment
andrewtruong Aug 23, 2024
8dec235
exception
andrewtruong Aug 23, 2024
e3fa43e
errors
andrewtruong Aug 23, 2024
7d31050
storage
andrewtruong Aug 23, 2024
c1953f7
logs
andrewtruong Aug 23, 2024
1e6cfe0
pytest_parallel
andrewtruong Aug 23, 2024
af1f1ee
urls
andrewtruong Aug 23, 2024
61ff9d3
util
andrewtruong Aug 23, 2024
5550d99
init_message
andrewtruong Aug 23, 2024
f3df099
weave_init
andrewtruong Aug 23, 2024
6b9581b
filesystem
andrewtruong Aug 23, 2024
52c40c6
weave_http
andrewtruong Aug 23, 2024
019513c
cli
andrewtruong Aug 23, 2024
8191e2f
weave_types
andrewtruong Aug 23, 2024
3892004
weave_internal
andrewtruong Aug 23, 2024
65f51e3
test_stream_table
andrewtruong Aug 23, 2024
95c8259
perf_notebooks
andrewtruong Aug 23, 2024
e14ec10
internal_tools
andrewtruong Aug 23, 2024
8837d37
paul_graham
andrewtruong Aug 23, 2024
18f3849
docs
andrewtruong Aug 23, 2024
649ce36
api
andrewtruong Aug 23, 2024
de176e7
init
andrewtruong Aug 24, 2024
91f96dd
client_context
andrewtruong Aug 24, 2024
538651a
legacy_test
andrewtruong Aug 24, 2024
4fcdc7c
test_utils
andrewtruong Aug 24, 2024
5428418
examples_legacy
andrewtruong Aug 24, 2024
4220aa6
scripts
andrewtruong Aug 24, 2024
9463deb
makefile
andrewtruong Aug 24, 2024
cdca81c
legacy_weave_subdir
andrewtruong Aug 25, 2024
a8e9d37
pytest_parallel
andrewtruong Aug 25, 2024
dd66c1e
wandb_artifact_perf
andrewtruong Aug 25, 2024
0844b45
trace_test
andrewtruong Aug 25, 2024
4f6af4d
utils
andrewtruong Aug 25, 2024
6c1b553
tutorial_scripts
andrewtruong Aug 25, 2024
814b85e
dev_docs
andrewtruong Aug 25, 2024
782d6c3
auth_modes
andrewtruong Aug 25, 2024
c2ad026
pytest
andrewtruong Aug 25, 2024
7aba9d2
build_dist
andrewtruong Aug 25, 2024
a2332f0
pyright
andrewtruong Aug 25, 2024
a286560
docker
andrewtruong Aug 25, 2024
7afdbfe
reqs
andrewtruong Aug 25, 2024
b131709
mutations-perf
andrewtruong Aug 25, 2024
724a681
retries
andrewtruong Aug 25, 2024
5d759c7
manifest
andrewtruong Aug 25, 2024
2ccea1e
mypy
andrewtruong Aug 25, 2024
37e1bd6
mypy2
andrewtruong Aug 25, 2024
4124c09
test_server
andrewtruong Aug 26, 2024
8300190
test_weave_client
andrewtruong Aug 26, 2024
bcad128
none check
andrewtruong Aug 26, 2024
ed16f74
ref_base
andrewtruong Aug 26, 2024
705468e
box
andrewtruong Aug 26, 2024
71c3776
weave_client
andrewtruong Aug 26, 2024
84ca92f
util
andrewtruong Aug 26, 2024
4ee4831
op_versioning_solo
andrewtruong Aug 26, 2024
33b52db
test_op_versioning
andrewtruong Aug 26, 2024
e288a01
serve_fastapi
andrewtruong Aug 26, 2024
595b74b
weave_init
andrewtruong Aug 26, 2024
ca5ee90
py38
andrewtruong Aug 26, 2024
924c91a
env
andrewtruong Aug 26, 2024
7d79932
op
andrewtruong Aug 26, 2024
424dd6f
fastapi
andrewtruong Aug 26, 2024
a053db3
mypy
andrewtruong Aug 26, 2024
13f7a83
Revert "reqs"
andrewtruong Aug 26, 2024
c5a4ea5
remove remaining trace code in legacy api
andrewtruong Aug 26, 2024
e1d9cd4
test_weave_api
andrewtruong Aug 26, 2024
dbc601d
ref_util
andrewtruong Aug 26, 2024
9b13bf0
op_def-tidy
andrewtruong Aug 26, 2024
44fcf69
op_execute-tidy
andrewtruong Aug 26, 2024
f0155bc
monitor-tidy
andrewtruong Aug 26, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
8 changes: 4 additions & 4 deletions .github/workflows/cla.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on:
issue_comment:
types: [created]
pull_request_target:
types: [opened,closed,synchronize]
types: [opened, closed, synchronize]

# explicitly configure permissions, in case your GITHUB_TOKEN workflow permissions are set to read-only in repository settings
permissions:
Expand All @@ -22,9 +22,9 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
path-to-signatures: 'cla/signatures/version1/cla.json'
path-to-document: 'https://github.com/wandb/weave/blob/master/cla/cla.md' # e.g. a CLA or a DCO document
path-to-signatures: "cla/signatures/version1/cla.json"
path-to-document: "https://github.com/wandb/weave/blob/master/dev_docs/cla.md" # e.g. a CLA or a DCO document
# branch should not be protected
branch: 'cla'
branch: "cla"
# cannot use teams due to: https://github.com/contributor-assistant/github-action/issues/100
allowlist: actions-user, altay, bdytx5, dannygoldstein, davidwallacejackson, jamie-rasmussen, jlzhao27, jo-fang, jwlee64, laxels, morganmcg1, nickpenaranda, scottire, shawnlewis, staceysv, tssweeney, vanpelt, vwrj, wandbmachine
37 changes: 32 additions & 5 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ jobs:
- name: Prune docker cache
run: docker system prune -f
- name: Build unit test image
run: python3 docker_build.py build_deps weave-test builder . Dockerfile.test
run: python3 weave/legacy/docker_build.py build_deps weave-test builder . weave/legacy/Dockerfile.test
- name: Build integration test image
run: python3 docker_build.py build weave-integration-test . Dockerfile.test
run: python3 weave/legacy/docker_build.py build weave-integration-test . weave/legacy/Dockerfile.test

lint:
name: Python lint
Expand Down Expand Up @@ -125,15 +125,42 @@ jobs:
DD_SERVICE: weave-python
DD_ENV: ci
WEAVE_SENTRY_ENV: ci
CI: 1
WB_SERVER_HOST: http://wandbservice
WF_CLICKHOUSE_HOST: weave_clickhouse
WEAVE_SERVER_DISABLE_ECOSYSTEM: 1
# This runner specifically runs the tests that use the `client` fixture (those that support clickhouse client tests)
# However, we skip tests marked with `skip_clickhouse_client`. These should be considered TODOs and an exception
run: CI=1 WB_SERVER_HOST=http://wandbservice WF_CLICKHOUSE_HOST=weave_clickhouse WEAVE_SERVER_DISABLE_ECOSYSTEM=1 source /root/venv/bin/activate && cd weave && pytest -m "weave_client and not skip_clickhouse_client" --weave-server=clickhouse --job-num=${{ matrix.job_num }} --timeout=90 ./flow ./integrations ./tests ./legacy/ops_arrow ./legacy/ecosystem ./trace_server ./trace --ddtrace --durations=5
run: |
source /root/venv/bin/activate && \
cd weave && \
pytest -m "weave_client and not skip_clickhouse_client" \
--weave-server=clickhouse \
--job-num=${{ matrix.job_num }} \
--timeout=90 \
--ddtrace \
--durations=5 \
./integrations ./legacy ./trace_server ./trace ./tests
- name: Run Python Unit Tests
env:
DD_SERVICE: weave-python
DD_ENV: ci
WEAVE_SENTRY_ENV: ci
run: CI=1 WB_SERVER_HOST=http://wandbservice WF_CLICKHOUSE_HOST=weave_clickhouse WEAVE_SERVER_DISABLE_ECOSYSTEM=1 source /root/venv/bin/activate && pip install 'dspy-ai>=0.1.5' && pip install pydantic -U && cd weave && pytest --job-num=${{ matrix.job_num }} --timeout=90 ./flow ./integrations ./tests ./legacy/ops_arrow ./legacy/ecosystem ./trace_server ./trace --ddtrace --durations=5
CI: 1
WB_SERVER_HOST: http://wandbservice
WF_CLICKHOUSE_HOST: weave_clickhouse
WEAVE_SERVER_DISABLE_ECOSYSTEM: 1
run: |
source /root/venv/bin/activate && \
pip install 'dspy-ai>=0.1.5' && \
pip install pydantic -U && \
cd weave && \
pytest \
--job-num=${{ matrix.job_num }} \
--timeout=90 \
--ddtrace \
--durations=5 \
./integrations ./legacy ./trace_server ./trace ./tests

# nbmake:
# name: Run notebooks with nbmake
Expand Down Expand Up @@ -186,7 +213,7 @@ jobs:
# github actions does something funky with the std file descriptors, they end up
# being closed. tqdm (for example) raises an exception when the descriptor it
# wants to write to is closed.
run: nohup ./weave_server_test.sh < /dev/null &> /tmp/weave/log/stdout.log &
run: nohup ./scripts/weave_server_test.sh < /dev/null &> /tmp/weave/log/stdout.log &
shell: bash
- name: Cypress run
# Use the following to run just a single test
Expand Down
46 changes: 39 additions & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,47 @@ repos:
rev: "v1.10.0"
hooks:
- id: mypy
name: mypy (trace)
additional_dependencies:
[types-pkg-resources==0.1.3, types-all, wandb>=0.15.5]
[types-pkg-resources==0.1.3, types-all==1.0.0, wandb>=0.15.5]
exclude: >
(?x)^(
.*\.pyi$
|weave/tests/
|weave/trace_server/tests/
|weave/legacy/
|integration_test/
)
- id: mypy
name: mypy (legacy)
additional_dependencies:
[
types-pkg-resources==0.1.3,
types-all==1.0.0,
types-setuptools,
wandb>=0.15.5,
]
files: ^weave/legacy/
# You have to exclude in 3 places. 1) here. 2) mypi.ini exclude, 3) follow_imports = skip for each module in mypy.ini
exclude: (.*pyi$)|(weave/legacy)|(weave/tests)
# Turn pyright back off, duplicative of mypy
# - repo: https://github.com/RobertCraigie/pyright-python
# rev: v1.1.341
# hooks:
# - id: pyright
exclude: >
(?x)^(
.*\.pyi$
|weave/legacy/tests/
|weave/legacy/weave/ecosystem/
|weave/legacy/weave/panel/
|weave/legacy/weave/panels/
|weave/legacy/weave/panels_py/
|weave/legacy/weave/ops/
|weave/legacy/weave/ops_domain/
|weave/legacy/weave/ops_arrow/
|weave/legacy/weave/ops_primitives/
|weave/legacy/weave/monitoring/
|weave/trace/
|weave/trace_server/
|weave/flow/
|weave/integrations/
)
args: [--config-file=weave/legacy/mypy.ini]
- repo: local
hooks:
- id: jupyter-nb-clear-output
Expand Down
51 changes: 0 additions & 51 deletions Dockerfile

This file was deleted.

Loading
Loading