Skip to content

Commit c62ad33

Browse files
authored
chore: Move wb_schema.gql into shared dir (wandb#689)
1 parent 182a667 commit c62ad33

File tree

5 files changed

+5
-4
lines changed

5 files changed

+5
-4
lines changed

.graphqlrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
schema: "./weave/wb_schema.gql"
1+
schema: "./wb_schema.gql"

Dockerfile.test

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ FROM node:16 as js_builder
1818
RUN apt update && apt install -y gcc g++ make libcairo2-dev libjpeg-dev libgif-dev libpango1.0-dev
1919

2020
COPY weave-js /root/weave-js
21+
COPY wb_schema.gql /root/wb_schema.gql
2122
WORKDIR /root/weave-js
2223
RUN --mount=type=cache,target=/usr/local/share/.cache \
2324
SHA1=$(find $JS_DIR -not -path "*/.vite-cache/*" -not -path "*/node_modules/*" -not -path "*/build/*" -type f -print0 | sort -z | xargs -0 sha1sum | sha1sum | cut -d " " -f1) && \

MANIFEST.in

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
include requirements.*
2-
include weave/wb_schema.gql
2+
include wb_schema.gql
33
graft weave/frontend
44
graft weave/language_features
55
graft weave/ops_primitives
@@ -12,4 +12,4 @@ graft weave/monitoring
1212
graft weave/panels_py
1313
graft weave/core_types
1414
global-exclude */__pycache__/*
15-
global-exclude *.pyc
15+
global-exclude *.pyc
File renamed without changes.

weave/conftest.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ def pre_post_each_test(test_artifact_dir, caplog):
120120
# Tests rely on full cache mode right now.
121121
os.environ["WEAVE_CACHE_MODE"] = "full"
122122
os.environ["WEAVE_GQL_SCHEMA_PATH"] = str(
123-
pathlib.Path(__file__).parent / "tests/wb_schema.gql"
123+
pathlib.Path(__file__).parent.parent / "wb_schema.gql"
124124
)
125125
try:
126126
shutil.rmtree(test_artifact_dir)

0 commit comments

Comments
 (0)