Skip to content

Commit

Permalink
Use Binary of Hive Gateway (#69)
Browse files Browse the repository at this point in the history
Co-authored-by: Kamil Kisiela <[email protected]>
  • Loading branch information
ardatan and kamilkisiela authored Sep 24, 2024
1 parent d402c6f commit 7bb0691
Show file tree
Hide file tree
Showing 13 changed files with 93 additions and 93 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ This repository contains a set of tests to evaluate and compare the compatibilit
| [Hive Gateway](https://the-guild.dev/graphql/hive) | 100.00% | 🟢 170 | 🟢 40 |
| [Apollo Router](https://www.apollographql.com/) | 97.65% | 🟢 166 ❌ 4 | 🟢 38 ❌ 2 |
| [Apollo Gateway](https://www.apollographql.com/) | 97.06% | 🟢 165 ❌ 5 | 🟢 37 ❌ 3 |
| [Cosmo Router](https://wundergraph.com) | 64.12% | 🟢 10961 | 🟢 2020 |
| [Grafbase Gateway](https://grafbase.com) | 48.82% | 🟢 8387 | 🟢 1426 |
| [Cosmo Router](https://wundergraph.com) | 74.12% | 🟢 12644 | 🟢 2119 |
| [Grafbase Gateway](https://grafbase.com) | 48.24% | 🟢 8288 | 🟢 1624 |

<!-- gateways:end -->

Expand Down
14 changes: 7 additions & 7 deletions REPORT.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
| [Hive Gateway](https://the-guild.dev/graphql/hive) | 100.00% | 🟢 170 | 🟢 40 |
| [Apollo Router](https://www.apollographql.com/) | 97.65% | 🟢 166 ❌ 4 | 🟢 38 ❌ 2 |
| [Apollo Gateway](https://www.apollographql.com/) | 97.06% | 🟢 165 ❌ 5 | 🟢 37 ❌ 3 |
| [Cosmo Router](https://wundergraph.com) | 64.12% | 🟢 10961 | 🟢 2020 |
| [Grafbase Gateway](https://grafbase.com) | 48.82% | 🟢 8387 | 🟢 1426 |
| [Cosmo Router](https://wundergraph.com) | 74.12% | 🟢 12644 | 🟢 2119 |
| [Grafbase Gateway](https://grafbase.com) | 48.24% | 🟢 8288 | 🟢 1624 |

## Detailed Results

Expand Down Expand Up @@ -299,7 +299,7 @@ You can look at the full list of tests [here](./src/test-suites/). Every test id
<details>
<summary>Results</summary>
<a href="./src/test-suites/abstract-types">abstract-types</a>
<pre>❌❌❌❌❌❌❌❌❌❌❌❌❌❌❌❌❌</pre>
<pre>🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢</pre>
<a href="./src/test-suites/child-type-mismatch">child-type-mismatch</a>
<pre>❌❌❌🟢</pre>
<a href="./src/test-suites/circular-reference-interface">circular-reference-interface</a>
Expand Down Expand Up @@ -390,7 +390,7 @@ You can look at the full list of tests [here](./src/test-suites/). Every test id
<details>
<summary>Results</summary>
<a href="./src/test-suites/abstract-types">abstract-types</a>
<pre>🟢🟢❌🟢🟢❌❌❌❌❌❌❌❌❌❌❌❌</pre>
<pre>❌❌❌❌❌❌❌❌❌❌❌❌❌❌❌❌❌</pre>
<a href="./src/test-suites/child-type-mismatch">child-type-mismatch</a>
<pre>❌❌❌🟢</pre>
<a href="./src/test-suites/circular-reference-interface">circular-reference-interface</a>
Expand All @@ -400,7 +400,7 @@ You can look at the full list of tests [here](./src/test-suites/). Every test id
<a href="./src/test-suites/corrupted-supergraph-node-id">corrupted-supergraph-node-id</a>
<pre>❌🟢❌🟢🟢❌🟢🟢🟢🟢</pre>
<a href="./src/test-suites/enum-intersection">enum-intersection</a>
<pre>🟢🟢🟢🟢</pre>
<pre>🟢🟢🟢🟢🟢</pre>
<a href="./src/test-suites/fed1-external-extends">fed1-external-extends</a>
<pre>🟢🟢</pre>
<a href="./src/test-suites/fed1-external-extends-resolvable">fed1-external-extends-resolvable</a>
Expand Down Expand Up @@ -454,7 +454,7 @@ You can look at the full list of tests [here](./src/test-suites/). Every test id
<a href="./src/test-suites/simple-entity-call">simple-entity-call</a>
<pre>🟢</pre>
<a href="./src/test-suites/simple-inaccessible">simple-inaccessible</a>
<pre>🟢🟢❌❌</pre>
<pre>🟢🟢🟢🟢</pre>
<a href="./src/test-suites/simple-interface-object">simple-interface-object</a>
<pre>🟢🟢❌🟢❌❌❌🟢❌❌❌❌❌</pre>
<a href="./src/test-suites/simple-override">simple-override</a>
Expand All @@ -468,5 +468,5 @@ You can look at the full list of tests [here](./src/test-suites/). Every test id
<a href="./src/test-suites/union-interface-distributed">union-interface-distributed</a>
<pre>❌❌🟢🟢🟢🟢🟢</pre>
<a href="./src/test-suites/union-intersection">union-intersection</a>
<pre>❌🟢❌❌❌🟢🟢❌</pre>
<pre>❌🟢❌❌🟢🟢❌❌</pre>
</details>
2 changes: 1 addition & 1 deletion gateways/apollo-router/install.sh
Original file line number Diff line number Diff line change
@@ -1 +1 @@
curl -sSL https://router.apollo.dev/download/nix/v1.53.0 | sh
curl -sSL https://router.apollo.dev/download/nix/v1.54.0 | sh
2 changes: 1 addition & 1 deletion gateways/cosmo-router/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ set -u

BINARY_DOWNLOAD_PREFIX="https://github.com/wundergraph/cosmo/releases/download"

DOWNLOAD_VERSION="0.109.0"
DOWNLOAD_VERSION="0.115.0"

download_binary() {
downloader --check
Expand Down
6 changes: 3 additions & 3 deletions gateways/cosmo-router/results.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
abstract-types
XXXXXXXXXXXXXXXXX
.................
child-type-mismatch
XXX.
circular-reference-interface
Expand Down Expand Up @@ -81,5 +81,5 @@ XXXXXXXX

---
Total: 170
Passed: 109
Failed: 61
Passed: 126
Failed: 44
2 changes: 1 addition & 1 deletion gateways/grafbase-gateway/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -euo pipefail
# I took their install script and modified it to download the gateway binary
# to the current directory instead of /usr/local/bin

VERSION="0.12.0"
VERSION="0.13.1"

error() {
echo -e "${Red}error${Color_Off}:" "$@" >&2
Expand Down
8 changes: 4 additions & 4 deletions gateways/grafbase-gateway/results.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ X
corrupted-supergraph-node-id
X.X..X....
enum-intersection
..X..
.....
fed1-external-extends
..
fed1-external-extends-resolvable
Expand Down Expand Up @@ -63,7 +63,7 @@ XX
simple-entity-call
.
simple-inaccessible
..XX
....
simple-interface-object
..X.XXX.XXXXX
simple-override
Expand All @@ -81,5 +81,5 @@ X..XX.XX

---
Total: 170
Passed: 83
Failed: 87
Passed: 86
Failed: 84
3 changes: 2 additions & 1 deletion gateways/hive-gateway/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/supergraph.graphql
/supergraph.graphql
/hive-gateway
3 changes: 1 addition & 2 deletions gateways/hive-gateway/install.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
# It's just to install dependencies and make it ready for `run.sh` script
npx --yes @graphql-hive/[email protected] --version
curl -sSL https://graphql-hive.com/install-gateway.sh | sh -s "1.0.5"
2 changes: 1 addition & 1 deletion gateways/hive-gateway/run.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
npm start supergraph -- --cwd ./gateways/hive-gateway --test $1
npx --yes @graphql-hive/gateway@0.1.4 supergraph supergraph.graphql --port 4000 --fork 1
./hive-gateway supergraph supergraph.graphql --port 4000 --fork 1
110 changes: 55 additions & 55 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 7bb0691

Please sign in to comment.