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

dnm: legacy-split1 #2216

Closed
wants to merge 84 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
84 commits
Select commit Hold shift + click to select a range
c84e337
split: errors into trace and legacy parts
andrewtruong Aug 20, 2024
8ca0896
move to scripts, legacy/scripts: scripts
andrewtruong Aug 26, 2024
4392bb6
format: scripts
andrewtruong Aug 24, 2024
68c9fe9
move to legacy: syndata
andrewtruong Aug 21, 2024
8531d88
move to legacy: usage_analytics, weave_inspector
andrewtruong Aug 21, 2024
7a09f5b
move to legacy: stream_data_interfaces
andrewtruong Aug 21, 2024
bcf6670
move to trace: autopatch,call_context
andrewtruong Aug 21, 2024
ee001d6
move to trace: feedback
andrewtruong Aug 21, 2024
0725503
move to trace: rich_*
andrewtruong Aug 22, 2024
7c3a708
move to legacy: weave_client
andrewtruong Aug 21, 2024
9919f9a
move to legacy: notebooks
andrewtruong Aug 21, 2024
653db72
move to legacy: weavify
andrewtruong Aug 22, 2024
e317bde
move to legacy: weavejs_fixes
andrewtruong Aug 22, 2024
798ee7c
move to legacy: infer_types
andrewtruong Aug 23, 2024
718c33f
move to legacy: show
andrewtruong Aug 23, 2024
f7a8310
move to legacy: eager
andrewtruong Aug 23, 2024
c118c5b
move to legacy: stitch
andrewtruong Aug 23, 2024
a356e7a
move to legacy: pyfunc_type_util.py
andrewtruong Aug 23, 2024
a026e4c
move to legacy: node_ref
andrewtruong Aug 23, 2024
e8768a1
move to legacy: types_numpy
andrewtruong Aug 23, 2024
0d2467a
move to legacy: registry_mem
andrewtruong Aug 23, 2024
4bf0b5c
move to legacy: weave_types
andrewtruong Aug 23, 2024
c22b2fc
move to legacy: parallelism
andrewtruong Aug 23, 2024
c52c644
move to legacy: server_error_handling
andrewtruong Aug 23, 2024
4bd4561
move to legacy: engine_trace
andrewtruong Aug 23, 2024
4f07e89
move to legacy: trace_local.py
andrewtruong Aug 23, 2024
7418084
move to legacy: ref_base
andrewtruong Aug 23, 2024
e5252bd
move to trace: table
andrewtruong Aug 23, 2024
bd8d34e
move to trace: trace_sentry
andrewtruong Aug 23, 2024
19a1530
move to trace: trace_api
andrewtruong Aug 23, 2024
b79ae8e
move to trace: serve_fastapi
andrewtruong Aug 23, 2024
a827541
move to trace: ref_util
andrewtruong Aug 23, 2024
5d82861
move to trace: exception
andrewtruong Aug 23, 2024
65314df
move to legacy: query_api
andrewtruong Aug 23, 2024
462be70
move to legacy: server
andrewtruong Aug 23, 2024
e88c88b
move to legacy: environment
andrewtruong Aug 23, 2024
c189637
move to legacy: errors (and add relevant errors to trace)
andrewtruong Aug 23, 2024
9733125
move to legacy: storage
andrewtruong Aug 23, 2024
9f2d0b9
move to legacy: logs
andrewtruong Aug 23, 2024
1f5f4b3
move to legacy: urls
andrewtruong Aug 23, 2024
7205d9e
move to legacy: util
andrewtruong Aug 23, 2024
ee5858d
move to legacy: filesystem
andrewtruong Aug 23, 2024
497ca05
move to legacy: weave_http
andrewtruong Aug 23, 2024
553b726
move to legacy: weave_types
andrewtruong Aug 23, 2024
b9ab500
move to legacy: weave_internal
andrewtruong Aug 23, 2024
8f9963a
move to legacy: test_stream_table
andrewtruong Aug 23, 2024
fc555d8
move to legacy: perf_notebooks
andrewtruong Aug 23, 2024
9af6976
move to legacy: internal_tools
andrewtruong Aug 23, 2024
d7354a4
move to legacy: dispatching_and_resolution
andrewtruong Aug 23, 2024
749c6ae
move to trace: init_message
andrewtruong Aug 23, 2024
cc5f285
move to trace: weave_init
andrewtruong Aug 23, 2024
c018cd3
move to trace: cli
andrewtruong Aug 23, 2024
7c2c2fd
move to trace: client_context
andrewtruong Aug 24, 2024
8825fa6
delete: extraneous files
andrewtruong Aug 22, 2024
2243f97
delete: api; split out trace and query api from single api file
andrewtruong Aug 23, 2024
678fc70
move to legacy: legacy tests
andrewtruong Aug 24, 2024
54793f2
move to legacy: legacy test_utils
andrewtruong Aug 24, 2024
ecf615d
move to legacy: old query panel examples and notebooks
andrewtruong Aug 24, 2024
cb4fd96
move to legacy: makefile
andrewtruong Aug 24, 2024
dd06747
!!! move files from weave/legacy -> weave/legacy/weave to match new repo
andrewtruong Aug 25, 2024
4dab266
move to legacy: pytest_parallel
andrewtruong Aug 25, 2024
7ee1feb
move to legacy: wandb_artifact_perf
andrewtruong Aug 25, 2024
c2979d4
move to legacy: utils
andrewtruong Aug 25, 2024
bb7f21c
move to legacy: tutorial_scripts
andrewtruong Aug 25, 2024
43f34ce
move to legacy: pytest
andrewtruong Aug 25, 2024
601c02f
move to legacy: build_dist
andrewtruong Aug 25, 2024
95280f6
move to legacy: docker stuff
andrewtruong Aug 25, 2024
c2cc441
move to legacy: mutations-perf
andrewtruong Aug 25, 2024
72fcf93
move to legacy: manifest
andrewtruong Aug 25, 2024
cbb42bb
move to trace: trace_test
andrewtruong Aug 25, 2024
6aa3935
move to dev_docs: dev_docs (also move legacy settings and devcontainer)
andrewtruong Aug 25, 2024
7e9ac2b
move to scripts: auth_modes (also split out jupyter dev script)
andrewtruong Aug 25, 2024
9a59204
delete: useless pyright config
andrewtruong Aug 25, 2024
1e51206
move to legacy: test_server
andrewtruong Aug 26, 2024
30fd069
cleanup: missing imports
andrewtruong Aug 26, 2024
59ab8b7
split: further split trace and legacy errors
andrewtruong Aug 26, 2024
ea87f8e
split: make separate trace and legacy utils
andrewtruong Aug 26, 2024
8c02cec
delete: extraneous import
andrewtruong Aug 26, 2024
7794e7f
split: break out wandb_api into its own module for trace
andrewtruong Aug 26, 2024
a34f36d
split: further split trace and legacy env
andrewtruong Aug 26, 2024
d064148
split: break mypy.ini into trace and legacy pieces and update pre-commit
andrewtruong Aug 25, 2024
df867ee
split: test_weave_api into trace and legacy components
andrewtruong Aug 26, 2024
013444d
split: ref_util into trace and legacy components (this one is hard copy)
andrewtruong Aug 26, 2024
6292ab6
delete: remaining trace code in legacy api
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