-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #141 from ORNL/dev
Main < Dev
- Loading branch information
Showing
58 changed files
with
941 additions
and
512 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: All tests on Kafka MQ | ||
on: | ||
pull_request: | ||
branches: [ "dev", "main" ] | ||
types: [opened, synchronize, reopened] | ||
# branches: [ "disabled" ] | ||
|
||
jobs: | ||
|
||
build: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 60 | ||
if: "!contains(github.event.head_commit.message, 'CI Bot')" | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python 3.9 | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: "3.9" | ||
- name: Check python version | ||
run: python --version | ||
- name: Install our dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -e .[fulldev] | ||
- name: Pip list | ||
run: pip list | ||
- name: Run Docker Compose | ||
run: docker compose -f deployment/compose-kafka.yml up -d | ||
- name: Wait 1 min | ||
run: sleep 60 | ||
- name: Check liveness | ||
run: | | ||
export MQ_TYPE=kafka | ||
export MQ_PORT=9092 | ||
python -c 'from flowcept.configs import MQ_TYPE, MQ_PORT; print(f"MQ_TYPE={MQ_TYPE}"); print(f"MQ_TYPE={MQ_PORT}")' | ||
python -c 'from flowcept import Flowcept; assert Flowcept.services_alive()' | ||
- name: Run Tests with Kafka | ||
run: | | ||
export MQ_TYPE=kafka | ||
export MQ_PORT=9092 | ||
pytest --ignore=tests/decorator_tests/ml_tests/llm_tests | ||
- name: Test notebooks | ||
run: | | ||
pip install -e .[full] | ||
export MQ_TYPE=kafka | ||
export MQ_PORT=9092 | ||
python -c 'from flowcept.configs import MQ_TYPE, MQ_PORT; print(f"MQ_TYPE={MQ_TYPE}"); print(f"MQ_TYPE={MQ_PORT}")' | ||
python -c 'from flowcept import Flowcept; assert Flowcept.services_alive()' | ||
python flowcept/flowcept_webserver/app.py & | ||
sleep 3 | ||
export FLOWCEPT_SETTINGS_PATH=~/.flowcept/settings.yaml | ||
pytest --ignore=notebooks/zambeze.ipynb --nbmake "notebooks/" --nbmake-timeout=600 --ignore=notebooks/dask_from_CLI.ipynb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
version: '3.8' | ||
name: flowcept | ||
services: | ||
flowcept_redis: | ||
container_name: flowcept_redis | ||
image: redis | ||
ports: | ||
- 6379:6379 | ||
|
||
flowcept_mongo: | ||
container_name: flowcept_mongo | ||
image: mongo:latest | ||
# volumes: | ||
# - /Users/rsr/Downloads/mongo_data/db:/data/db | ||
ports: | ||
- 27017:27017 | ||
|
||
|
||
# # This is just for the cases where one does not want to use the same Redis instance for caching and messaging, but | ||
# # it's not required to have separate instances. | ||
# # local_interceptor_cache: | ||
# # container_name: local_interceptor_cache | ||
# # image: redis | ||
# # ports: | ||
# # - 60379:6379 | ||
|
||
zambeze_rabbitmq: | ||
container_name: zambeze_rabbitmq | ||
image: rabbitmq:3.11-management | ||
ports: | ||
- 5672:5672 | ||
- 15672:15672 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
version: '3.8' | ||
name: flowcept | ||
services: | ||
flowcept_redis: | ||
container_name: flowcept_redis | ||
image: redis | ||
ports: | ||
- 6379:6379 | ||
|
||
flowcept_mongo: | ||
container_name: flowcept_mongo | ||
image: mongo:latest | ||
# volumes: | ||
# - /Users/rsr/Downloads/mongo_data/db:/data/db | ||
ports: | ||
- 27017:27017 | ||
|
||
zookeeper: | ||
image: confluentinc/cp-zookeeper:6.1.1 | ||
ports: | ||
- "2181:2181" | ||
environment: | ||
ZOOKEEPER_CLIENT_PORT: 2181 | ||
|
||
# reachable on 9092 from the host and on 29092 from inside docker compose | ||
kafka: | ||
image: confluentinc/cp-kafka:6.1.1 | ||
depends_on: | ||
- zookeeper | ||
ports: | ||
- '9092:9092' | ||
expose: | ||
- '29092' | ||
environment: | ||
KAFKA_ZOOKEEPER_CONNECT: 'zookeeper:2181' | ||
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT,PLAINTEXT_HOST:PLAINTEXT | ||
KAFKA_INTER_BROKER_LISTENER_NAME: PLAINTEXT | ||
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka:29092,PLAINTEXT_HOST://localhost:9092 | ||
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: '1' | ||
KAFKA_MIN_INSYNC_REPLICAS: '1' | ||
|
||
init-kafka: | ||
image: confluentinc/cp-kafka:6.1.1 | ||
depends_on: | ||
- kafka | ||
entrypoint: [ '/bin/sh', '-c' ] | ||
command: | | ||
" | ||
# blocks until kafka is reachable | ||
kafka-topics --bootstrap-server kafka:29092 --list | ||
echo -e 'Creating kafka topics' | ||
kafka-topics --bootstrap-server kafka:29092 --create --if-not-exists --topic interception --replication-factor 1 --partitions 1 | ||
echo -e 'Successfully created the following topics:' | ||
kafka-topics --bootstrap-server kafka:29092 --list | ||
" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
confluent-kafka==2.5.3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
mlflow-skinny==2.1.1 | ||
mlflow-skinny>2.1.1,<=2.16.2 | ||
SQLAlchemy==1.4.42 | ||
alembic==1.8.1 | ||
watchdog==2.2.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
tensorboard==2.13.0 | ||
tensorflow==2.13.0 | ||
tensorboard | ||
tensorflow | ||
tbparse==0.0.7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.