Skip to content
Merged
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
8 changes: 1 addition & 7 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ jobs:
needs: [build]
strategy:
matrix:
plugin: [core, ekuiper, modbus, mqtt, azure, metrics, launch]
plugin: [core, ekuiper, modbus, mqtt, metrics]
steps:
- uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -146,16 +146,11 @@ jobs:
pytest -s -v tests/ft/driver/"test_modbus.py"
elif [ "${{ matrix.plugin }}" = "mqtt" ]; then
pytest -s -v tests/ft/app/"test_mqtt.py"
elif [ "${{ matrix.plugin }}" = "azure" ]; then
pytest -s -v tests/ft/app/"test_azure.py"
#elif [ "${{ matrix.plugin }}" = "launch" ]; then
#pytest -s -v tests/ft/login
else
pytest -s -v tests/ft/metrics/"test_metrics.py"
fi

- name: create cov report
if: ${{ matrix.plugin != 'launch' }}
run: |
sudo apt-get update
sudo apt-get -y install lcov
Expand All @@ -164,7 +159,6 @@ jobs:

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
if: ${{ matrix.plugin != 'launch' }}
with:
verbose: true
fail_ci_if_error: true
Expand Down
71 changes: 71 additions & 0 deletions .github/workflows/manual-unused-plugins.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
name: manual check

on:
workflow_dispatch:
inputs:
plugins:
description: 'Comma separated list of plugins to test (default: all unused plugins)'
required: false
default: 'azure,launch'

jobs:
build:
runs-on: ubuntu-24.04
container: ghcr.io/neugates/build:x86_64-main

steps:
- uses: actions/checkout@v4
with:
submodules: recursive

- name: compile
run: |
git config --global --add safe.directory $(pwd)
mkdir -p build && cd build
cmake .. -DCMAKE_TOOLCHAIN_FILE=../cmake/x86_64-linux-gnu.cmake
make -j4

- uses: actions/upload-artifact@v4
with:
name: neuron-build-unused-plugins
path: |
build

unused_plugins_test:
runs-on: ubuntu-24.04
container: ghcr.io/neugates/build:x86_64-main
needs: [build]
strategy:
matrix:
plugin: [azure, launch]
steps:
- uses: actions/checkout@v4
with:
submodules: recursive

- name: setup dependencies
run: |
sudo apt-get install -y mosquitto
pip install -U pytest requests prometheus-client gmqtt pynng sniffio
sudo apt-get install -y socat

- uses: actions/download-artifact@v4
with:
name: neuron-build-unused-plugins
path: ./build

- name: function test
run: |
chmod -R +x ./build/
cd build
cmake .. -DCMAKE_TOOLCHAIN_FILE=../cmake/x86_64-linux-gnu.cmake
cd ..
if [ "${{ matrix.plugin }}" = "azure" ]; then
pytest -s -v tests/ft/app/"test_azure.py"
elif [ "${{ matrix.plugin }}" = "launch" ]; then
pytest -s -v tests/ft/login
fi

- name: Test completed
run: |
echo "Testing for ${{ matrix.plugin }} completed successfully"
1 change: 1 addition & 0 deletions codecov.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
ignore:
- "src/otel/*.pb-c.c"
- "plugins/mqtt/azure_iot_plugin.c"
coverage:
status:
project:
Expand Down