Skip to content

Commit

Permalink
Merge branch 'main' into burn-the-dead
Browse files Browse the repository at this point in the history
  • Loading branch information
Ekrekr committed Jan 4, 2023
2 parents c0bf24b + 2348d34 commit 0b7c0c8
Show file tree
Hide file tree
Showing 10 changed files with 15 additions and 63 deletions.
15 changes: 15 additions & 0 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,21 @@ gcloud_sdk(

# Go dependencies.

go_repository(
name = "org_golang_google_grpc",
build_file_proto_mode = "disable",
importpath = "google.golang.org/grpc",
sum = "h1:rRYRFMVgRv6E0D70Skyfsr28tDXIuuPZyWGMPdMcnXg=",
version = "v1.27.0",
)

go_repository(
name = "org_golang_x_net",
importpath = "golang.org/x/net",
sum = "h1:2mqDk8w/o6UmeUCu5Qiq2y7iMf6anbx+YA8d1JFoFrs=",
version = "v0.0.0-20191002035440-2ec189313ef0",
)

go_repository(
name = "org_golang_x_text",
importpath = "golang.org/x/text",
Expand Down
19 changes: 0 additions & 19 deletions examples/backwards_compatibility/BUILD

This file was deleted.

7 changes: 0 additions & 7 deletions examples/backwards_compatibility/dataform.json

This file was deleted.

2 changes: 0 additions & 2 deletions examples/backwards_compatibility/definitions/example.sql

This file was deleted.

This file was deleted.

3 changes: 0 additions & 3 deletions examples/backwards_compatibility/includes/macros.js

This file was deleted.

6 changes: 0 additions & 6 deletions examples/backwards_compatibility/package.json

This file was deleted.

8 changes: 0 additions & 8 deletions go.mod

This file was deleted.

2 changes: 0 additions & 2 deletions tests/api/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ ts_test_suite(
name = "tests",
srcs = glob(["**/*.ts"]),
data = [
"//examples/backwards_compatibility:files",
"//examples/backwards_compatibility:node_modules",
"//examples/common_v2:files",
"//examples/common_v2:node_modules",
"//examples/formatter:files",
Expand Down
15 changes: 0 additions & 15 deletions tests/api/examples.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -753,21 +753,6 @@ suite("examples", () => {
}
});

test("backwards_compatibility", async () => {
const graph = await compile({ projectDir: "examples/backwards_compatibility" });

const tableNames = graph.tables.map((t: dataform.ITable) => t.target.name);

// Make sure it compiles.
expect(tableNames).includes("example");
const example = graph.tables.filter((t: dataform.ITable) => t.target.name === "example")[0];
expect(example.type).equals("table");
expect(example.query.trim()).equals("select 1 as foo_bar");

// Make sure we can dry run.
new Builder(graph, {}, { tables: [] }).build();
});

test("times out after timeout period during compilation", async () => {
try {
await compile({ projectDir: "examples/never_finishes_compiling" });
Expand Down

0 comments on commit 0b7c0c8

Please sign in to comment.