Skip to content

Commit

Permalink
Merge branch 'error-re-design' into drop-anyhow-1
Browse files Browse the repository at this point in the history
# Conflicts:
#	src/core/async_graphql_hyper.rs
#	src/core/generator/from_proto.rs
#	src/core/ir/io.rs
  • Loading branch information
tusharmath committed Jun 15, 2024
2 parents 7d9f95b + 5218d50 commit 2af0d11
Show file tree
Hide file tree
Showing 89 changed files with 2,043 additions and 780 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ jobs:

- name: NPM Publish
if: (startsWith(github.event.head_commit.message, 'feat') || startsWith(github.event.head_commit.message, 'fix')) && (github.event_name == 'push' && github.ref == 'refs/heads/main')
uses: JS-DevTools/npm-publish@v3
uses: JS-DevTools/npm-publish@main
with:
token: ${{ secrets.NPM_TOKEN }}
package: npm/@tailcallhq/core-${{matrix.build}}
Expand Down Expand Up @@ -506,11 +506,11 @@ jobs:
APP_VERSION: ${{needs.draft_release.outputs.create_release_name }}
run: |
cd npm
npm run gen-root -- --version ${{ env.APP_VERSION }}
npm run gen-root -- --version ${{ env.APP_VERSION }} --name @tailcallhq/tailcall
- name: Setup .npmrc file to publish to npm
run: echo "//registry.npmjs.org/:_authToken=$NODE_AUTH_TOKEN" > ~/.npmrc
- name: Publish packages
uses: JS-DevTools/npm-publish@v3
uses: JS-DevTools/npm-publish@main
with:
token: ${{ secrets.NPM_TOKEN }}
package: npm/@tailcallhq/tailcall
Expand Down
17 changes: 15 additions & 2 deletions .github/workflows/nginx-benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ jobs:

- name: Run Tailcall
run: |
TAILCALL_LOG_LEVEL=error ./target/release/tailcall start ci-benchmark/nginx-benchmark.graphql &
TAILCALL_LOG_LEVEL=error ./target/release/tailcall start ci-benchmark/nginx-benchmark.graphql > tailcall.log 2>&1 &
echo $! > tailcall_pid.txt
- name: Install Nginx
run: |
Expand Down Expand Up @@ -59,7 +60,19 @@ jobs:
name: Run Wrk
working-directory: ci-benchmark
run: |
wrk -d 30 -t 4 -c 100 -s wrk.lua http://localhost:8000/graphql > wrk-output.txt
wrk -d 30 -t 4 -c 100 -s wrk.lua http://localhost:8000/graphql | tee wrk-output.txt
- id: check_tailcall
name: Check Tailcall Status
run: |
tailcall_pid=$(cat tailcall_pid.txt)
if ! kill -0 $tailcall_pid > /dev/null 2>&1; then
echo "Tailcall process has crashed. Log output:" >&2
cat tailcall.log >&2
exit 1
else
echo "Tailcall process is still running"
fi
- id: convert_wrk_output_markdown
name: Convert Output to Markdown
Expand Down
Loading

1 comment on commit 2af0d11

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Running 30s test @ http://localhost:8000/graphql

4 threads and 100 connections

Thread Stats Avg Stdev Max +/- Stdev
Latency 6.77ms 6.03ms 410.66ms 96.82%
Req/Sec 3.81k 150.21 4.15k 89.00%

454759 requests in 30.01s, 2.28GB read

Requests/sec: 15155.73

Transfer/sec: 77.79MB

Please sign in to comment.