Skip to content

Commit

Permalink
chore: Move wb_schema.gql into shared dir (#689)
Browse files Browse the repository at this point in the history
  • Loading branch information
connieelee authored Oct 3, 2023
1 parent 182a667 commit c62ad33
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .graphqlrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
schema: "./weave/wb_schema.gql"
schema: "./wb_schema.gql"
1 change: 1 addition & 0 deletions Dockerfile.test
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ FROM node:16 as js_builder
RUN apt update && apt install -y gcc g++ make libcairo2-dev libjpeg-dev libgif-dev libpango1.0-dev

COPY weave-js /root/weave-js
COPY wb_schema.gql /root/wb_schema.gql
WORKDIR /root/weave-js
RUN --mount=type=cache,target=/usr/local/share/.cache \
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) && \
Expand Down
4 changes: 2 additions & 2 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
include requirements.*
include weave/wb_schema.gql
include wb_schema.gql
graft weave/frontend
graft weave/language_features
graft weave/ops_primitives
Expand All @@ -12,4 +12,4 @@ graft weave/monitoring
graft weave/panels_py
graft weave/core_types
global-exclude */__pycache__/*
global-exclude *.pyc
global-exclude *.pyc
File renamed without changes.
2 changes: 1 addition & 1 deletion weave/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def pre_post_each_test(test_artifact_dir, caplog):
# Tests rely on full cache mode right now.
os.environ["WEAVE_CACHE_MODE"] = "full"
os.environ["WEAVE_GQL_SCHEMA_PATH"] = str(
pathlib.Path(__file__).parent / "tests/wb_schema.gql"
pathlib.Path(__file__).parent.parent / "wb_schema.gql"
)
try:
shutil.rmtree(test_artifact_dir)
Expand Down

0 comments on commit c62ad33

Please sign in to comment.