Skip to content

ci: point the type-check step at the real package instead of a nonexistent src/ - #267

Merged
himanshu231204 merged 2 commits into
OpenAgentHQ:mainfrom
Nitjsefnie-OSC:fix/250-mypy-targets-real-package
Aug 1, 2026
Merged

ci: point the type-check step at the real package instead of a nonexistent src/#267
himanshu231204 merged 2 commits into
OpenAgentHQ:mainfrom
Nitjsefnie-OSC:fix/250-mypy-targets-real-package

Conversation

@Nitjsefnie

Copy link
Copy Markdown
Contributor

Description

.github/workflows/ci.yml pointed the type-check step at src, which does not exist — the package is openagent_eval/ at the repo root. mypy exited 2 with Cannot read file 'src', || true swallowed it, and the step reported success, so the package has never actually been type-checked while appearing to be.

This points the step at the real package and adds a test -d openagent_eval guard first, because a path that cannot be read is a configuration error rather than a finding, and should not be able to hide behind || true again.

Your own PR template already names the correct path (uv run mypy openagent_eval/), so the workflow was the only place still carrying src.

Type of Change

  • CI/CD update

Related Issues

Closes #250

How Has This Been Tested?

  • Unit tests pass (uv run pytest) — untouched by this change
  • Linter passes (uv run ruff check .) — untouched
  • Type checker passes (uv run mypy openagent_eval/) — no, and that is the point of the issue

Before, on the old target:

mypy: error: Cannot read file 'src': No such file or directory
Found 1 error in 1 file (errors prevented further checking)

After, on the real package:

Found 121 errors in 46 files (checked 156 source files)

YAML re-parsed to confirm the block is still valid.

I deliberately kept || true. Turning 121 pre-existing findings into a hard CI failure is your call, not something to smuggle into a path fix — and the neighbouring ruff steps are advisory the same way. The number is here so you can decide when it is worth dropping.

Follow-ups / Known Limitations

One honest limit on the guard. The step also carries continue-on-error: true, so a missing target now shows up as a failed step rather than a silently green one — but the job itself still passes. That is a real improvement in visibility over || true reporting success, and it is as far as this change goes; making it actually fail the job means dropping continue-on-error, which is the same kind of decision as dropping || true and equally yours.

I have not touched any of the 121 findings, and no type annotations were added — that backlog is a separate piece of work.

Generated by Claude Opus 5 (brief, review), Kimi K2.7 Code (implementation)

Nitjsefnie and others added 2 commits August 1, 2026 11:17
The CI mypy step targeted src/, which does not exist; the package lives at openagent_eval/. The || true kept the exit invisible.

Point the check at openagent_eval and add a directory guard so a missing target fails loudly instead of being swallowed again.

Co-Authored-By: Kimi K2.7 Code <noreply@kimi.com>
@himanshu231204
himanshu231204 merged commit deae3f2 into OpenAgentHQ:main Aug 1, 2026
8 checks passed
@github-actions

github-actions Bot commented Aug 1, 2026

Copy link
Copy Markdown

🎉 Congratulations @Nitjsefnie!

Your pull request has been successfully merged into main. 🚀

Thank you for contributing to OpenAgentHQ and helping improve the project.

We truly appreciate your contribution and hope to see you back with more amazing PRs!

Happy Open Sourcing! ❤️

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.

CI type-check step targets a non-existent src/ directory, so mypy has never run on the package

2 participants