Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
4fa801a
added metro vision AI sample app sanity workflow.
sowmiar1 Oct 10, 2025
5eb32e8
test run for sanity via PR.
sowmiar1 Oct 10, 2025
ef7c04e
added sanity to PR job.
sowmiar1 Oct 10, 2025
e5aa025
added debug logs.
sowmiar1 Oct 10, 2025
7614d1d
changed selenium install cmd
sowmiar1 Oct 10, 2025
0243d52
changed selenium installation cmd
sowmiar1 Oct 10, 2025
6838819
update sanity test to install robotframework and seleniumlibrary
athina98 Oct 10, 2025
6d9cb0b
update sanity test to use Python 3.12 for package installations
athina98 Oct 10, 2025
92ce6fd
refactor dependency installation in sanity workflow
athina98 Oct 10, 2025
d126abd
refactor dependency installation in sanity workflow to use --break-sy…
athina98 Oct 10, 2025
13815b2
remove pip upgrade command and install robotframework and selenium wi…
sowmiar1 Oct 10, 2025
e26a109
force-install selenium
sowmiar1 Oct 10, 2025
6f41858
moved dependencies to venv
sowmiar1 Oct 10, 2025
bf7de37
added command to check selenium import is working or not.
sowmiar1 Oct 10, 2025
16468fe
changes to fix sanity failures.
sowmiar1 Oct 14, 2025
9939867
fix import error.
sowmiar1 Oct 14, 2025
d004ccf
installing selenium deps.
sowmiar1 Oct 14, 2025
13ba5de
added debug cmds
sowmiar1 Oct 14, 2025
db289be
updated robot command.
sowmiar1 Oct 14, 2025
f18831b
modified robot command.
sowmiar1 Oct 14, 2025
67bb1f9
added debug
sowmiar1 Oct 14, 2025
64de8bc
debug log
sowmiar1 Oct 14, 2025
ce62b24
debug commands
sowmiar1 Oct 14, 2025
6c4e14a
debug commands
sowmiar1 Oct 14, 2025
879da25
debug
sowmiar1 Oct 14, 2025
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
10 changes: 9 additions & 1 deletion .github/workflows/metro_vision_ai_app_recipe_pull_request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -146,4 +146,12 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: Trivy Report - Config scan for Helm
path: metro-ai-suite/metro-vision-ai-app-recipe/trivy-helm.txt
path: metro-ai-suite/metro-vision-ai-app-recipe/trivy-helm.txt
sanity:
uses: ./.github/workflows/metro_vision_ai_app_recipe_sanity.yaml
with:
branch: ${{ github.head_ref }}
secrets: inherit
permissions:
contents: read
packages: write
108 changes: 108 additions & 0 deletions .github/workflows/metro_vision_ai_app_recipe_sanity.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
name: "[metro-vision-ai-app-recipe] Sanity Workflow"

on:
workflow_dispatch: # allows manual trigger
inputs:
branch:
description: "Branch to run job on"
required: false
default: "main"

workflow_call: # allows being called from another workflow
inputs:
branch:
description: "Branch to run job on"
required: false
type: string

jobs:
sanity:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
strategy:
fail-fast: false
matrix:
include:
- ubuntu_version: ubuntu22
steps:
- name: Determine branch
id: get_branch
run: |
if [ -n "${{ inputs.branch }}" ]; then
echo "branch=${{ inputs.branch }}" >> $GITHUB_OUTPUT
elif [ "${{ github.event_name }}" == "workflow_dispatch" ]; then
echo "branch=${{ github.event.inputs.branch }}" >> $GITHUB_OUTPUT
else
echo "branch=${{ github.ref_name }}" >> $GITHUB_OUTPUT
fi
- name: Check out edge-ai-suites repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 #4.2.2
with:
persist-credentials: false
path: edge-ai-suites-repo
ref: ${{ steps.get_branch.outputs.branch }}
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Log in to GitHub Container Registry
uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 #3.4.0
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Install Dependencies
run: |
sudo apt-get update
sudo apt install -y python3-nose

- name: Sanity Test
run: |
sudo apt-get update
sudo apt install -y python3-nose libxml2-utils vlc
pip3 install --upgrade pip --force-reinstall
echo "upgrading setuptools"
python3 -m pip install --upgrade pip setuptools
echo "installing selenium"
pip3 install robotframework
pip3 install --force-reinstall selenium
python3 -c "from selenium import webdriver; print('OK')"
cd edge-ai-suites-repo/metro-ai-suite/metro-vision-ai-app-recipe/test-suite/robot_files
pwd
ls -al
python3 -m robot --version
echo "Attempting to run Robot Framework with verbose output..."
mkdir -p /tmp/test_results
python3 -m robot test.robot || true
ls -al /tmp/test_results
ls -al
cp -r report.html log.html output.xml /tmp/test_results/
passed=$(xmllint --xpath "//return/status[@status='PASS']" ./output.xml | wc -l) || true
failed=$(xmllint --xpath "//return/status[@status='FAIL']" ./output.xml | wc -l) || true
not_run=$(xmllint --xpath "//return/status[@status='NOT RUN']" ./output.xml | wc -l) || true
total=$((passed + failed + not_run))
echo "### Sanity Test Summary" >> $GITHUB_STEP_SUMMARY
echo "- Total: $total" >> $GITHUB_STEP_SUMMARY
echo "- ✅ Passed: $passed" >> $GITHUB_STEP_SUMMARY
echo "- ❌ Failed: $failed" >> $GITHUB_STEP_SUMMARY
echo "- ⏭️ Not Run: $not_run" >> $GITHUB_STEP_SUMMARY
echo "- 📄 [Full Report](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }})" >> $GITHUB_STEP_SUMMARY
- name: Upload Scan artifact to Github
if: always()
uses: actions/upload-artifact@v4
with:
name: Sanity_Reports
path: /tmp/test_results/*
- name: Clean up
if: always()
run: |
sudo rm -rf edge-ai-suites-repo
if [ -n "$(docker images -aq)" ]; then
docker rmi -f $(docker images -aq) || true
fi
sudo rm -rf /tmp/test_results/*



9 changes: 3 additions & 6 deletions .github/workflows/spineapp_sanity.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,12 @@ jobs:
run: |
sudo apt-get update
sudo pip install robotframework
lspci | grep -i vga
sudo apt install -y python3-nose libxml2-utils vlc
cd edge-ai-suites-repo/manufacturing-ai-suite/industrial-edge-insights-vision/tests/robot_files
robot test.robot || true &
sleep 480
docker logs dlstreamer-pipeline-server >> dlsps_logs.txt &
wait
robot test.robot

mkdir -p /tmp/test_results
cp -r report.html log.html output.xml dlsps_logs.txt /tmp/test_results/
cp -r report.html log.html output.xml /tmp/test_results/
passed=$(xmllint --xpath "//return/status[@status='PASS']" ./output.xml | wc -l) || true
failed=$(xmllint --xpath "//return/status[@status='FAIL']" ./output.xml | wc -l) || true
not_run=$(xmllint --xpath "//return/status[@status='NOT RUN']" ./output.xml | wc -l) || true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,10 @@ def docker_compose_up(self, value):
self._update_env_file({
"HOST_IP": hostIP,
"MTX_WEBRTCICESERVERS2_0_USERNAME": "test1234",
"MTX_WEBRTCICESERVERS2_0_PASSWORD": "test1234"
"MTX_WEBRTCICESERVERS2_0_PASSWORD": "test1234",
"MR_PSQL_PASSWORD": "test1234",
"MR_MINIO_ACCESS_KEY": "test1234",
"MR_MINIO_SECRET_KEY": "test1234"
})

# Run setup and start services
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
test file will be deleted.
Loading