Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Raft #2219

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Raft #2219

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: test-on-arm64

platform:
arch: arm64
os: linux

steps:
- name: test
Expand Down
2 changes: 1 addition & 1 deletion .github/checks/copyright.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ count=0

for file in $(find . -name '*.rs' | grep -v '/target')
do
if ! grep 'Copyright \(....-\)\?202[12], The Tremor Team' "$file" > /dev/null
if ! grep 'Copyright \(....-\)\?202[123], The Tremor Team' "$file" > /dev/null
then
echo "##[error] Copyright missing in $file"
count=$((count + 1))
Expand Down
29 changes: 0 additions & 29 deletions .github/checks/deps.sh

This file was deleted.

2 changes: 1 addition & 1 deletion .github/checks/safety.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ EOF



files=$(find . -name '*.rs' | grep -v -f .checkignore | grep -v 'test.rs$')
files=$(find . -name '*.rs' | grep -v -f .checkignore | grep -v 'test.rs$' | grep -v '/test/')

while getopts hamuiprebldxcft opt; do
case $opt in
Expand Down
26 changes: 4 additions & 22 deletions .github/workflows/checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,29 +24,11 @@ jobs:
unused-deps:
runs-on: ubuntu-latest
steps:
- name: Install deps
run: sudo snap install remarshal
- name: Install deps
run: sudo snap install --classic ripgrep
- uses: actions/checkout@v3
- name: Check for unused dependencies (tremor-runtime)
run: ./.github/checks/deps.sh .
- name: Check for unused dependencies (tremor-api)
run: ./.github/checks/deps.sh tremor-api
- name: Check for unused dependencies (tremor-influx)
run: ./.github/checks/deps.sh tremor-influx
- name: Check for unused dependencies (tremor-pipeline)
run: ./.github/checks/deps.sh tremor-pipeline
- name: Check for unused dependencies (tremor-script)
run: ./.github/checks/deps.sh tremor-script
- name: Check for unused dependencies (tremor-cli)
run: ./.github/checks/deps.sh tremor-cli
- name: Check for unused dependencies (tremor-common)
run: ./.github/checks/deps.sh tremor-common
- name: Check for unused dependencies (tremor-value)
run: ./.github/checks/deps.sh tremor-value
- name: Check for unused dependencies (tremor-codec)
run: ./.github/checks/deps.sh tremor-codec
- name: Install deps
run: cargo install cargo-machete
- name: Check for unused dependencies
run: cargo machete --with-metadata

format:
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:

env:
TREMOR_PATH: "${{ github.workspace }}/tremor-script/lib:${{ github.workspace }}/tremor-cli/tests/lib"
RUSTFLAGS: -D warnings -C target-feature=${{ matrix.target_feature }} --cfg tokio_unstable
Licenser marked this conversation as resolved.
Show resolved Hide resolved
RUSTFLAGS: -D warnings -C target-feature=${{ matrix.target_feature }}

runs-on: ${{ matrix.os }}
steps:
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,5 @@ tremor-script/current_counterexample.eqc
.vscode/dryrun.log
tremor-script-nif/libpath
docs-test
*.mm_profdata
chrome_profiler.json
131 changes: 93 additions & 38 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@
"request": "launch",
"name": "Debug tremor-cli",
"cargo": {
"args": ["build", "-p", "tremor-cli"],
"args": [
"build",
"-p",
"tremor-cli"
],
"filter": {
"name": "tremor",
"kind": "bin"
Expand Down Expand Up @@ -48,54 +52,54 @@
{
"type": "lldb",
"request": "launch",
"name": "Debug value::test::obj_eq unit test",
"name": "Debug raft::test::cluster_test unit test",
"cargo": {
"args": [
"test",
"--no-run",
"--package",
"tremor-value",
"value::test::obj_eq"
]
"--package=tremor-runtime",
],
"filter": {
"name": "tremor-runtime",
"kind": "lib"
}
},
"args": [],
"args": [
"raft::test::cluster_test"
],
"cwd": "${workspaceFolder}"
},

{
"type": "lldb",
"request": "launch",
"name": "Debug script_error unit test",
"cargo": {
"args": ["test", "--no-run", "pp_embed_unrecognized_token2"],
"args": [
"test",
"--no-run",
"pp_embed_unrecognized_token2"
],
"filter": {
"name": "script_error",
"kind": "test"
}
},
"args": ["${selectedText}"],
"cwd": "${workspaceFolder}"
},
{
"type": "lldb",
"request": "launch",
"name": "Debug unit tests in library 'tremor-api'",
"cargo": {
"args": ["test", "--no-run", "--lib", "--package=tremor-api"],
"filter": {
"name": "tremor-api",
"kind": "lib"
}
},
"args": [],
"args": [
"${selectedText}"
],
"cwd": "${workspaceFolder}"
},
{
"type": "lldb",
"request": "launch",
"name": "Debug unit tests in library 'tremor-pipeline'",
"cargo": {
"args": ["test", "--no-run", "--lib", "--package=tremor-pipeline"],
"args": [
"test",
"--no-run",
"--lib",
"--package=tremor-pipeline"
],
"filter": {
"name": "tremor-pipeline",
"kind": "lib"
Expand All @@ -109,21 +113,32 @@
"request": "launch",
"name": "Debug integration test 'query'",
"cargo": {
"args": ["test", "--no-run", "--test=query"],
"args": [
"test",
"--no-run",
"--test=query"
],
"filter": {
"name": "query",
"kind": "test"
}
},
"args": ["window_mixed_1"],
"args": [
"window_mixed_1"
],
"cwd": "${workspaceFolder}"
},
{
"type": "lldb",
"request": "launch",
"name": "Debug unit tests in library 'tremor-influx'",
"cargo": {
"args": ["test", "--no-run", "--lib", "--package=tremor-influx"],
"args": [
"test",
"--no-run",
"--lib",
"--package=tremor-influx"
],
"filter": {
"name": "tremor-influx",
"kind": "lib"
Expand Down Expand Up @@ -156,7 +171,12 @@
"request": "launch",
"name": "Debug unit tests in library 'tremor_script'",
"cargo": {
"args": ["test", "--no-run", "--lib", "--package=tremor-script"],
"args": [
"test",
"--no-run",
"--lib",
"--package=tremor-script"
],
"filter": {
"name": "tremor_script",
"kind": "lib"
Expand All @@ -170,7 +190,11 @@
"request": "launch",
"name": "Debug executable 'tremor-script'",
"cargo": {
"args": ["build", "--bin=tremor-script", "--package=tremor-script"],
"args": [
"build",
"--bin=tremor-script",
"--package=tremor-script"
],
"filter": {
"name": "tremor-script",
"kind": "bin"
Expand Down Expand Up @@ -203,7 +227,12 @@
"request": "launch",
"name": "Debug unit tests in library 'tremor-runtime'",
"cargo": {
"args": ["test", "--no-run", "--lib", "--package=tremor-runtime"],
"args": [
"test",
"--no-run",
"--lib",
"--package=tremor-runtime"
],
"filter": {
"name": "tremor-runtime",
"kind": "lib"
Expand Down Expand Up @@ -350,7 +379,11 @@
"request": "launch",
"name": "Debug executable 'tremor-query'",
"cargo": {
"args": ["build", "--bin=tremor-query", "--package=tremor-query"],
"args": [
"build",
"--bin=tremor-query",
"--package=tremor-query"
],
"filter": {
"name": "tremor-query",
"kind": "bin"
Expand Down Expand Up @@ -383,7 +416,11 @@
"request": "launch",
"name": "Debug executable 'tremor'",
"cargo": {
"args": ["build", "--bin=tremor", "--package=tremor-cli"],
"args": [
"build",
"--bin=tremor",
"--package=tremor-cli"
],
"filter": {
"name": "tremor",
"kind": "bin"
Expand All @@ -397,7 +434,11 @@
"request": "launch",
"name": "Debug real-workflow-throughput-json",
"cargo": {
"args": ["build", "--bin=tremor", "--package=tremor-cli"],
"args": [
"build",
"--bin=tremor",
"--package=tremor-cli"
],
"filter": {
"name": "tremor",
"kind": "bin"
Expand All @@ -416,7 +457,12 @@
"request": "launch",
"name": "Release real-workflow-throughput-json",
"cargo": {
"args": ["build", "--bin=tremor", "--package=tremor-cli", "--release"],
"args": [
"build",
"--bin=tremor",
"--package=tremor-cli",
"--release"
],
"filter": {
"name": "tremor",
"kind": "bin"
Expand All @@ -435,7 +481,12 @@
"request": "launch",
"name": "Debug unit tests in executable 'tremor'",
"cargo": {
"args": ["test", "--no-run", "--bin=tremor", "--package=tremor-cli"],
"args": [
"test",
"--no-run",
"--bin=tremor",
"--package=tremor-cli"
],
"filter": {
"name": "tremor",
"kind": "bin"
Expand All @@ -449,7 +500,11 @@
"request": "launch",
"name": "Debug executable 'tremor-tool'",
"cargo": {
"args": ["build", "--bin=tremor-tool", "--package=tremor-tool"],
"args": [
"build",
"--bin=tremor-tool",
"--package=tremor-tool"
],
"filter": {
"name": "tremor-tool",
"kind": "bin"
Expand Down Expand Up @@ -478,4 +533,4 @@
"cwd": "${workspaceFolder}"
}
]
}
}
Loading
Loading