Skip to content

Fix backend-checks CI failure by removing merged duplicate backend code and restoring coherent app wiring - #152

Open
devloperdevesh with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-backend-checks-job-again
Open

Fix backend-checks CI failure by removing merged duplicate backend code and restoring coherent app wiring#152
devloperdevesh with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-backend-checks-job-again

Conversation

Copilot AI commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

backend-checks was failing at the Ruff stage due to duplicate symbols, mid-file imports, and undefined references introduced by conflicting/duplicated backend code blocks. This PR consolidates the affected modules to a single valid implementation and aligns main.py imports with the repository’s actual API layout.

  • CI failure source cleanup (Ruff F811/E402/F401/F821)

    • Removed duplicate/redefined imports and functions in:
      • app/api/routes/auth.py
      • app/core/dependencies.py
      • app/core/security.py
      • app/main.py
      • app/observability/logging.py
      • app/reliability/rate_limit.py
      • app/db/init_db.py
      • app/db/models.py
  • Application wiring corrections

    • Replaced non-existent app.api.v1.* router imports with existing app.api.routes.* modules in app/main.py.
    • Removed duplicated FastAPI app construction and duplicate /metrics handlers, leaving one consistent app definition.
  • DB model registration cleanup

    • Kept model import side effects explicit in app/db/init_db.py while removing dead/unused imports that triggered lint errors.
# before (broken module path)
from app.api.v1.auth import router as auth_router

# after (matches repository structure)
from app.api.routes.auth import router as auth_router

Copilot AI requested review from Copilot and removed request for Copilot July 9, 2026 21:57
@vercel

vercel Bot commented Jul 9, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
enterprise-rag Ready Ready Preview, Comment Jul 9, 2026 10:03pm

Copilot AI requested review from Copilot and removed request for Copilot July 9, 2026 22:03
Copilot AI changed the title [WIP] Fix failing GitHub Actions job backend-checks Fix backend-checks CI failure by removing merged duplicate backend code and restoring coherent app wiring Jul 9, 2026
Copilot AI requested a review from devloperdevesh July 9, 2026 22:04
@devloperdevesh
devloperdevesh marked this pull request as ready for review July 14, 2026 11:11
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.

2 participants