Skip to content

Commit

Permalink
test: improve e2e workspace
Browse files Browse the repository at this point in the history
  • Loading branch information
fraidev committed Nov 28, 2024
1 parent 9255d78 commit 947a528
Show file tree
Hide file tree
Showing 21 changed files with 999 additions and 755 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ jobs:
run: rustup target add wasm32-wasi
- name: Run Integration Test
timeout-minutes: 30
run: make integration_tests
run: START_FLUVIO=false make integration_tests

done:
name: Done
Expand Down
58 changes: 30 additions & 28 deletions Cargo.lock

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

10 changes: 9 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
members = [
"crates/sql-sink",
"crates/fluvio-model-sql",
"crates/integration-tests",
"crates/json-sql",
"tests/integration",
]
resolver = "2"

Expand All @@ -16,3 +16,11 @@ fluvio = { git = "https://github.com/infinyon/fluvio", branch = "fix_shutdown_cd
fluvio-connector-common = { git = "https://github.com/infinyon/fluvio", branch = "fix_shutdown_cdk" }
fluvio-future = "0.7.0"
fluvio-smartmodule = { git = "https://github.com/infinyon/fluvio", branch = "fix_shutdown_cdk" }


# fluvio = { path = "../../fluvio/crates/fluvio/" }
# fluvio-connector-common = { path = "../../fluvio/crates/fluvio-connector-common/" }
# fluvio-smartmodule = { path = "../../fluvio/crates/fluvio-smartmodule/" }

# Internal dependencies
fluvio-model-sql = { path = "crates/fluvio-model-sql" }
18 changes: 13 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
integration_tests:
cdk build -p sql-sink
smdk build -p json-sql
smdk load -p json-sql
RUST_LOG=warn,integration_tests=info cargo run --release -p integration-tests
# Default paths to binaries
BINARIES_PATH?=
FLUVIO_BIN?=$(BINARIES_PATH)fluvio
SMDK_BIN?=$(BINARIES_PATH)smdk
CDK_BIN?=$(BINARIES_PATH)cdk
START_FLUVIO?=true

# Integration tests target
integration_tests:
$(CDK_BIN) build -p sql-sink
$(SMDK_BIN) build -p json-sql
FLUVIO_BIN=$(FLUVIO_BIN) CDK_BIN=$(CDK_BIN) SMDK_BIN=$(SMDK_BIN) \
START_FLUVIO=$(START_FLUVIO) RUST_LOG=warn,integration_tests=info \
cargo run --release -p integration-tests
Loading

0 comments on commit 947a528

Please sign in to comment.