Skip to content

Conversation

@dagardner-nv
Copy link
Contributor

@dagardner-nv dagardner-nv commented Apr 9, 2025

Description

  • Importing code from aiq, and specifically aiq.runtime.loader caused the coverage tool to under-report our coverage. I suspect the issue is that either our plugin was being loaded before the coverage plugin, or the coverage plugin explicitly attempts to ignore modules loaded by other plugins.
  • Added a few more tests
  • Update to pytest-cov 6.1
  • Replace deprecated pydantic validator in src/aiq/tool/github_tools/get_github_issue.py

Closes #102

By Submitting this PR I confirm:

  • I am familiar with the Contributing Guidelines.
  • We require that all contributors "sign-off" on their commits. This certifies that the contribution is your original work, or you have rights to submit it under the same license, or a compatible license.
    • Any contribution which contains commits that are not Signed-Off will not be accepted.
  • When the PR is ready for review, new or existing tests cover these changes.
  • When the PR is ready for review, the documentation is up to date with these changes.

Signed-off-by: David Gardner <[email protected]>
Signed-off-by: David Gardner <[email protected]>
Signed-off-by: David Gardner <[email protected]>
Signed-off-by: David Gardner <[email protected]>
…e reports to be artificially low

Signed-off-by: David Gardner <[email protected]>
@dagardner-nv dagardner-nv added bug Something isn't working non-breaking Non-breaking change labels Apr 9, 2025
@dagardner-nv dagardner-nv self-assigned this Apr 9, 2025
@dagardner-nv dagardner-nv requested a review from a team as a code owner April 9, 2025 00:01
Signed-off-by: David Gardner <[email protected]>
@dagardner-nv
Copy link
Contributor Author

/merge

@rapids-bot rapids-bot bot merged commit 7336a1b into NVIDIA:develop Apr 9, 2025
10 checks passed
@dagardner-nv dagardner-nv deleted the david-test-cov branch April 9, 2025 16:33
ericevans-nv pushed a commit to ericevans-nv/agent-iq that referenced this pull request Apr 14, 2025
…rted (NVIDIA#105)

* Importing code from `aiq`, and specifically `aiq.runtime.loader` caused the coverage tool to under-report our coverage. I suspect the issue is that either our plugin was being loaded before the coverage plugin, or the coverage plugin explicitly attempts to ignore modules loaded by other plugins. 
* Added a few more tests
* Update to pytest-cov 6.1
* Replace deprecated pydantic validator in `src/aiq/tool/github_tools/get_github_issue.py`

Closes NVIDIA#102

## By Submitting this PR I confirm:
- I am familiar with the [Contributing Guidelines](https://github.com/NVIDIA/AgentIQ/blob/develop/docs/source/advanced/contributing.md).
- We require that all contributors "sign-off" on their commits. This certifies that the contribution is your original work, or you have rights to submit it under the same license, or a compatible license.
  - Any contribution which contains commits that are not Signed-Off will not be accepted.
- When the PR is ready for review, new or existing tests cover these changes.
- When the PR is ready for review, the documentation is up to date with these changes.

Authors:
  - David Gardner (https://github.com/dagardner-nv)

Approvers:
  - Will Killian (https://github.com/willkill07)
  - Michael Demoret (https://github.com/mdemoret-nv)

URL: NVIDIA#105
yczhang-nv pushed a commit to yczhang-nv/NeMo-Agent-Toolkit that referenced this pull request Apr 21, 2025
…rted (NVIDIA#105)

* Importing code from `aiq`, and specifically `aiq.runtime.loader` caused the coverage tool to under-report our coverage. I suspect the issue is that either our plugin was being loaded before the coverage plugin, or the coverage plugin explicitly attempts to ignore modules loaded by other plugins.
* Added a few more tests
* Update to pytest-cov 6.1
* Replace deprecated pydantic validator in `src/aiq/tool/github_tools/get_github_issue.py`

Closes NVIDIA#102

## By Submitting this PR I confirm:
- I am familiar with the [Contributing Guidelines](https://github.com/NVIDIA/AgentIQ/blob/develop/docs/source/advanced/contributing.md).
- We require that all contributors "sign-off" on their commits. This certifies that the contribution is your original work, or you have rights to submit it under the same license, or a compatible license.
  - Any contribution which contains commits that are not Signed-Off will not be accepted.
- When the PR is ready for review, new or existing tests cover these changes.
- When the PR is ready for review, the documentation is up to date with these changes.

Authors:
  - David Gardner (https://github.com/dagardner-nv)

Approvers:
  - Will Killian (https://github.com/willkill07)
  - Michael Demoret (https://github.com/mdemoret-nv)

URL: NVIDIA#105
Signed-off-by: Yuchen Zhang <[email protected]>
yczhang-nv pushed a commit to yczhang-nv/NeMo-Agent-Toolkit that referenced this pull request May 8, 2025
…rted (NVIDIA#105)

* Importing code from `aiq`, and specifically `aiq.runtime.loader` caused the coverage tool to under-report our coverage. I suspect the issue is that either our plugin was being loaded before the coverage plugin, or the coverage plugin explicitly attempts to ignore modules loaded by other plugins.
* Added a few more tests
* Update to pytest-cov 6.1
* Replace deprecated pydantic validator in `src/aiq/tool/github_tools/get_github_issue.py`

Closes NVIDIA#102

## By Submitting this PR I confirm:
- I am familiar with the [Contributing Guidelines](https://github.com/NVIDIA/AgentIQ/blob/develop/docs/source/advanced/contributing.md).
- We require that all contributors "sign-off" on their commits. This certifies that the contribution is your original work, or you have rights to submit it under the same license, or a compatible license.
  - Any contribution which contains commits that are not Signed-Off will not be accepted.
- When the PR is ready for review, new or existing tests cover these changes.
- When the PR is ready for review, the documentation is up to date with these changes.

Authors:
  - David Gardner (https://github.com/dagardner-nv)

Approvers:
  - Will Killian (https://github.com/willkill07)
  - Michael Demoret (https://github.com/mdemoret-nv)

URL: NVIDIA#105
Signed-off-by: Yuchen Zhang <[email protected]>
AnuradhaKaruppiah pushed a commit to AnuradhaKaruppiah/oss-agentiq that referenced this pull request Aug 4, 2025
…rted (NVIDIA#105)

* Importing code from `aiq`, and specifically `aiq.runtime.loader` caused the coverage tool to under-report our coverage. I suspect the issue is that either our plugin was being loaded before the coverage plugin, or the coverage plugin explicitly attempts to ignore modules loaded by other plugins. 
* Added a few more tests
* Update to pytest-cov 6.1
* Replace deprecated pydantic validator in `src/aiq/tool/github_tools/get_github_issue.py`

Closes NVIDIA#102

## By Submitting this PR I confirm:
- I am familiar with the [Contributing Guidelines](https://github.com/NVIDIA/AgentIQ/blob/develop/docs/source/advanced/contributing.md).
- We require that all contributors "sign-off" on their commits. This certifies that the contribution is your original work, or you have rights to submit it under the same license, or a compatible license.
  - Any contribution which contains commits that are not Signed-Off will not be accepted.
- When the PR is ready for review, new or existing tests cover these changes.
- When the PR is ready for review, the documentation is up to date with these changes.

Authors:
  - David Gardner (https://github.com/dagardner-nv)

Approvers:
  - Will Killian (https://github.com/willkill07)
  - Michael Demoret (https://github.com/mdemoret-nv)

URL: NVIDIA#105
scheckerNV pushed a commit to scheckerNV/aiq-factory-reset that referenced this pull request Aug 22, 2025
…rted (NVIDIA#105)

* Importing code from `aiq`, and specifically `aiq.runtime.loader` caused the coverage tool to under-report our coverage. I suspect the issue is that either our plugin was being loaded before the coverage plugin, or the coverage plugin explicitly attempts to ignore modules loaded by other plugins. 
* Added a few more tests
* Update to pytest-cov 6.1
* Replace deprecated pydantic validator in `src/aiq/tool/github_tools/get_github_issue.py`

Closes NVIDIA#102

## By Submitting this PR I confirm:
- I am familiar with the [Contributing Guidelines](https://github.com/NVIDIA/AgentIQ/blob/develop/docs/source/advanced/contributing.md).
- We require that all contributors "sign-off" on their commits. This certifies that the contribution is your original work, or you have rights to submit it under the same license, or a compatible license.
  - Any contribution which contains commits that are not Signed-Off will not be accepted.
- When the PR is ready for review, new or existing tests cover these changes.
- When the PR is ready for review, the documentation is up to date with these changes.

Authors:
  - David Gardner (https://github.com/dagardner-nv)

Approvers:
  - Will Killian (https://github.com/willkill07)
  - Michael Demoret (https://github.com/mdemoret-nv)

URL: NVIDIA#105
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working non-breaking Non-breaking change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEA]: Improve unittest code coverage

3 participants