Skip to content

[WIP] Update model loading enhancements and .gitignore#54

Merged
suzukimain merged 2 commits intoupdate-v9from
copilot/sub-pr-49-one-more-time
Dec 16, 2025
Merged

[WIP] Update model loading enhancements and .gitignore#54
suzukimain merged 2 commits intoupdate-v9from
copilot/sub-pr-49-one-more-time

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Dec 16, 2025

Progress on addressing nested try-except double-counting issue

  • Understand the problem: nested try-except blocks cause failed_count to be incremented twice
  • Analyze the current code structure (lines 1212-1269 in pipeline_easy.py)
  • Restructure the code to avoid double-counting failed_count
    • Separated search and pipeline loading into sequential try-except blocks
    • Search failures are caught first and increment failed_count once
    • Pipeline loading failures are caught separately and increment failed_count once
    • No more nested exception re-raising that causes double-counting
  • Run code review - 1 minor comment about pre-existing code duplication (not introduced by this change)
  • Run security scan - No issues found
  • Reply to comment

Security Summary

No vulnerabilities were discovered in this change. CodeQL analysis returned 0 alerts.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: suzukimain <131413573+suzukimain@users.noreply.github.com>
@suzukimain suzukimain marked this pull request as ready for review December 16, 2025 10:40
Copilot AI review requested due to automatic review settings December 16, 2025 10:40
@suzukimain suzukimain merged commit c1555e0 into update-v9 Dec 16, 2025
4 checks passed
Copilot AI requested a review from suzukimain December 16, 2025 10:41
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR addresses a critical bug where nested try-except blocks in the pipeline loading logic caused failed_count to be incremented twice for the same failure. The refactoring separates search and pipeline loading into sequential try-except blocks, ensuring accurate error tracking.

Key Changes:

  • Restructured nested try-except blocks into sequential blocks to prevent double-counting of failures
  • Search failures are now caught and handled independently from pipeline loading failures
  • Each failure type now increments failed_count exactly once

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants