Skip to content

Commit

Permalink
refactor(idl): unify the *.thrift files used by cpp and nodejs-client (
Browse files Browse the repository at this point in the history
  • Loading branch information
acelyc111 authored Jan 31, 2023
1 parent a0be562 commit 4f25086
Show file tree
Hide file tree
Showing 20 changed files with 92 additions and 8,854 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/test_nodejs-client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,17 @@ jobs:
name: test
runs-on: ubuntu-20.04
steps:
- name: Install thrift
# python-client imports thrift package of 0.13.0, so we must use thrift-compiler 0.13.0
# to generate code as well. The thrift-compiler version on ubuntu-20.04 is 0.13.0
run: sudo apt-get install -y thrift-compiler
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- name: test
working-directory: ./nodejs-client
run: |
./recompile_thrift.sh
npm install
./test.sh
1 change: 0 additions & 1 deletion .licenserc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ header:
- 'go-client/idl/base/dsn_err_string.go'
- 'go-client/idl/base/rocskdb_err_string.go'
- 'go-client/idl/base/GoUnusedProtection__.go'
- 'nodejs-client/src/dsn/*.js'
- '**/.npmigonre'
# Copyright (c) Facebook, Inc
- 'src/utils/TokenBucket.h'
Expand Down
1 change: 0 additions & 1 deletion idl/dsn.layer2.thrift
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@

include "dsn.thrift"

# TODO(yingchun): reuse the idls for server and all client libs
namespace cpp dsn
namespace go replication
namespace java org.apache.pegasus.replication
Expand Down
1 change: 0 additions & 1 deletion idl/rrdb.thrift
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,6 @@ service rrdb
oneway void clear_scanner(1:i64 context_id);
}

// ONLY FOR GO & JAVA & Python
service meta
{
dsn.layer2.query_cfg_response query_cfg(1:dsn.layer2.query_cfg_request query);
Expand Down
42 changes: 0 additions & 42 deletions nodejs-client/idl/base.thrift

This file was deleted.

40 changes: 0 additions & 40 deletions nodejs-client/idl/recompile_thrift.sh

This file was deleted.

226 changes: 0 additions & 226 deletions nodejs-client/idl/replication.thrift

This file was deleted.

Loading

0 comments on commit 4f25086

Please sign in to comment.