From 3488f00b4710b8bf4ae88567b7545ebaeb6297da Mon Sep 17 00:00:00 2001 From: Deniz <156104354+uelkerd@users.noreply.github.com> Date: Fri, 26 Sep 2025 00:05:24 +0300 Subject: [PATCH 1/3] feat: add comprehensive CI pipeline orchestration system (#183) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: add comprehensive CI pipeline orchestration system Extracted from monster PR #171 as part of Phase 3A strategic decomposition. Comprehensive CI pipeline runner with: - Multi-environment detection (local/Colab/CI) - GPU compatibility testing with PyTorch - Dependency validation for all required packages - Individual CI script orchestration with timeouts - Unit and E2E test execution (pytest integration) - Performance benchmarking with thresholds - Detailed reporting with success metrics - CI artifact generation (conditional report writing) - Graceful error handling and logging Supports both local development and production CI workflows. ๐Ÿค– Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude * fix: address code review feedback for CI pipeline orchestration - Replace logger.exception with logger.error for expected errors (TimeoutExpired, ImportError) - Add security comments clarifying no command injection risk in subprocess calls - All arguments are static literals or controlled internally Addresses Sourcery AI review feedback to improve code quality and security clarity. ๐Ÿค– Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude * Address gemini-code-assist review comments: refactor imports, improve logging consistency - Change broad Exception to specific ImportError for is_truthy import - Move BERT classifier import logic to module level to eliminate duplication - Add stdout logging to run_ci_script and run_e2e_tests methods for consistency - Remove duplicated _import_bert_classifier method and sys.path.insert calls * Fix zero-test case reporting logic in CI pipeline - Detect when no boolean tests are executed (total_tests == 0) - Set success_rate = 0.0 explicitly for zero-test scenarios - Display explicit failure message: 'No boolean tests were executed. Treating pipeline as failed.' - Update exit logic to fail when no tests are executed - Prevent false 'All tests passed' reports when actually no tests ran * Add explicit else clauses for test result handling - Add else: clauses to run_ci_script, run_unit_tests, and run_e2e_tests methods - Make control flow more explicit and clear for developers and AI tools - Prevent any confusion about when error logging occurs (only on failure) - Maintain existing functionality while improving code readability * Fix unused variable warning in CI pipeline - Rename unused 'model' variable to '_' in _measure_model_loading_time method - Add comment explaining why model instantiation is needed (for timing measurement) - Resolve PYL-W0612 linter warning for unused variable * Fix variable shadowing warnings for 'time' import - Remove redundant local 'import time' statements in _measure_model_loading_time and _measure_inference_time methods - Use module-level 'time' import instead to avoid PYL-W0621 shadowing warnings - Maintain functionality while following Python best practices for imports * feat: add comprehensive CI pipeline orchestration system Resolved issues in scripts/ci/run_full_ci_pipeline.py with DeepSource Autofix * Fix PYL-W1203 logging format warnings - Replace f-string logging with lazy % formatting for better performance - Convert all logger calls to use % formatting instead of f-strings - Fixes 8 occurrences of formatted string passed to logging module - Maintains all logging functionality while improving performance when logging is disabled * Fix line length violations (FLK-E501) - Break long function signatures across multiple lines - Split long string literals in report generation - Reformat multi-line logger.error calls to stay within 88 char limit - Ensure all lines comply with configured maximum line length * Fix remaining line length violation (FLK-E501) - Break long logger.info call in GPU forward pass test to stay within 88 char limit - Ensure all lines comply with maximum line length configuration * Fix Python 3.9 compatibility in is_truthy function - Replace PEP 604 union syntax (str | None) with Optional[str] for Python 3.9 compatibility - Add Optional import from typing module - Maintain function behavior unchanged --------- Co-authored-by: Claude Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com> --- docs/site/comprehensive-demo.html | 2 +- docs/site/css/styles.css | 171 ++++ docs/site/demo.html | 881 ------------------- docs/site/index.html | 484 ++--------- docs/site/integration.html | 1274 ---------------------------- scripts/ci/run_full_ci_pipeline.py | 491 +++++++---- 6 files changed, 526 insertions(+), 2777 deletions(-) create mode 100644 docs/site/css/styles.css delete mode 100644 docs/site/demo.html delete mode 100644 docs/site/integration.html diff --git a/docs/site/comprehensive-demo.html b/docs/site/comprehensive-demo.html index 05df81eb1..b573b1f9f 100644 --- a/docs/site/comprehensive-demo.html +++ b/docs/site/comprehensive-demo.html @@ -17,7 +17,7 @@ - + - - - - - - -
-
-
-
-

- Live Emotion Detection Demo -

-

- Experience SAMO-DL's emotion detection API in real-time. Test with your own text and see instant results. -

- -
-
-
-
-
-

>90%

- F1 Score -
-
-
-
-

<50ms

- Latency -
-
-
-
-

28

- Emotions -
-
-
-
-

2.3x

- Faster -
-
-
-
-
-
-
- - -
-
-
-
-
-

Interactive Emotion Detection

-

- Enter any text below and watch our AI analyze emotions in real-time -

-
-
- - -
-
-
- - -
- -
- - -
-
-
- - -
-
- Loading... -
-

Analyzing emotions...

-
- - -
-
-
-

Analysis Results

- - -
-
-
Detected Emotions:
-
-
-
- - -
-
-
-
-
Emotion Confidence Distribution
-
- -
-
-
-
-
- - -
-
-
-
-
-
- Response Time - - -
-
- API Status - - -
-
- Avg Confidence - - -
-
- Model Version - v2.1.0 -
-
-
-
-
-
-
-
-
-
-
-
- - -
-
-
-
-
-
-
- -
-
Lightning Fast
-

- Sub-50ms response times with ONNX optimization. -

-
-
-
-
-
-
-
- -
-
High Accuracy
-

- >90% F1 score across 28 emotion categories. -

-
-
-
-
-
-
-
- -
-
Production Ready
-

- Deployed on Google Cloud Run with 99.9% uptime. -

-
-
-
-
-
-
- - -
-
-
-
-
- - SAMO-DL -
-

- Production-ready emotion detection API with enterprise-grade reliability. -

-
-
-
Product
- -
-
-
Resources
- -
-
-
Company
- -
-
-
Connect
- -
-
-
-
-
-

- ยฉ 2024 SAMO-DL. All rights reserved. -

-
-
-

- Powered by Google Cloud Run -

-
-
-
-
- - - - - - - diff --git a/docs/site/index.html b/docs/site/index.html index 38103159e..59c4aaf91 100644 --- a/docs/site/index.html +++ b/docs/site/index.html @@ -3,139 +3,19 @@ - SAMO Deep Learning - Production Emotion Detection API - + SAMO Deep Learning - Emotion Detection API + - - - + + -