KEMBAR78
Scripts for running CI locally by dagardner-nv · Pull Request #59 · NVIDIA/NeMo-Agent-Toolkit · GitHub
Skip to content

Conversation

@dagardner-nv
Copy link
Contributor

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

Description

  • Adds a ci/scripts/run_ci_local.sh script allowing for executing CI scripts locally mirroring the GHA CI pipeline as closely as possible.
  • uv and pre-commit packages are cached in .tmp/local_ci_tmp/cache
  • uv's venv is located in .tmp/local_ci_tmp/local_ci_workspace/.venv
  • By default the script will perform a git clone and checkout the latest commit. This requires the latest commit to be pushed.
  • Alternately setting the environment variable USE_HOST_GIT=1 the host's repo will be mounted inside the CI container, avoiding the need to commit/push changes. (Note: Doing so requires all git-lfs files to be checked out first).
  • Fix escape sequences in ci/scripts/gitutils.py

Usage:

  • Run the entire CI pipeline:
./ci/scripts/run_ci_local.sh all
  • Run just the checks stage:
./ci/scripts/run_ci_local.sh checks
  • Debug a CI issue with the bash pseudo-stage. This will perform a git clone & checkout, and then drop you in a bash shell with all of the CI variables set.
./ci/scripts/run_ci_local.sh bash

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 <dagardner@nvidia.com>
Signed-off-by: David Gardner <dagardner@nvidia.com>
Signed-off-by: David Gardner <dagardner@nvidia.com>
Signed-off-by: David Gardner <dagardner@nvidia.com>
Signed-off-by: David Gardner <dagardner@nvidia.com>
Signed-off-by: David Gardner <dagardner@nvidia.com>
Signed-off-by: David Gardner <dagardner@nvidia.com>
Signed-off-by: David Gardner <dagardner@nvidia.com>
Signed-off-by: David Gardner <dagardner@nvidia.com>
Signed-off-by: David Gardner <dagardner@nvidia.com>
Signed-off-by: David Gardner <dagardner@nvidia.com>
Signed-off-by: David Gardner <dagardner@nvidia.com>
Signed-off-by: David Gardner <dagardner@nvidia.com>
@dagardner-nv dagardner-nv self-assigned this Apr 2, 2025
@dagardner-nv dagardner-nv requested a review from a team as a code owner April 2, 2025 15:28
@dagardner-nv dagardner-nv added improvement Improvement to existing functionality non-breaking Non-breaking change labels Apr 2, 2025
Signed-off-by: David Gardner <dagardner@nvidia.com>
Signed-off-by: David Gardner <dagardner@nvidia.com>
@dagardner-nv dagardner-nv marked this pull request as draft April 2, 2025 16:33
@dagardner-nv dagardner-nv added the skip-ci Optionally Skip CI for this PR label Apr 2, 2025
…-local

Signed-off-by: David Gardner <dagardner@nvidia.com>
Signed-off-by: David Gardner <dagardner@nvidia.com>
Signed-off-by: David Gardner <dagardner@nvidia.com>
…t repo, just assume the user has already done this

Signed-off-by: David Gardner <dagardner@nvidia.com>
Signed-off-by: David Gardner <dagardner@nvidia.com>
@dagardner-nv dagardner-nv removed the skip-ci Optionally Skip CI for this PR label Apr 2, 2025
Signed-off-by: David Gardner <dagardner@nvidia.com>
@dagardner-nv dagardner-nv marked this pull request as ready for review April 2, 2025 17:50
@dagardner-nv dagardner-nv marked this pull request as draft April 2, 2025 18:09
Signed-off-by: David Gardner <dagardner@nvidia.com>
Signed-off-by: David Gardner <dagardner@nvidia.com>
@dagardner-nv dagardner-nv marked this pull request as ready for review April 2, 2025 18:47
Signed-off-by: David Gardner <dagardner@nvidia.com>
Signed-off-by: David Gardner <dagardner@nvidia.com>
@dagardner-nv dagardner-nv mentioned this pull request Apr 2, 2025
@AnuradhaKaruppiah
Copy link
Contributor

/merge

@rapids-bot rapids-bot bot merged commit c151736 into NVIDIA:develop Apr 3, 2025
9 checks passed
rapids-bot bot pushed a commit that referenced this pull request Apr 4, 2025
* Run the test CI stage on both Amd64 and Arm64.
* Document installing QEMU to run CI for Arm64 on an Amd64 system.
* Disable `examples/simple/tests/test_web_query_tool.py` test on Arm due to a known issue with Faiss #72

Requires #59 to be merged first

## 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:
  - Anuradha Karuppiah (https://github.com/AnuradhaKaruppiah)

URL: #73
ericevans-nv pushed a commit to ericevans-nv/agent-iq that referenced this pull request Apr 14, 2025
* Adds a `ci/scripts/run_ci_local.sh` script allowing for executing CI scripts locally mirroring the GHA CI pipeline as closely as possible.
* uv and pre-commit packages are cached in `.tmp/local_ci_tmp/cache`
* uv's venv is located in `.tmp/local_ci_tmp/local_ci_workspace/.venv`
* By default the script will perform a `git clone` and checkout the latest commit. This requires the latest commit to be pushed.
* Alternately setting the environment variable `USE_HOST_GIT=1` the host's repo will be mounted inside the CI container, avoiding the need to commit/push changes. (Note: Doing so requires all git-lfs files to be checked out first).
* Fix escape sequences in `ci/scripts/gitutils.py`

Usage:
* Run the entire CI pipeline:
```bash
./ci/scripts/run_ci_local.sh all
```

* Run just the checks stage:
```bash
./ci/scripts/run_ci_local.sh checks
```

* Debug a CI issue with the `bash` pseudo-stage. This will perform a git clone & checkout, and then drop you in a bash shell with all of the CI variables set.
```bash
./ci/scripts/run_ci_local.sh bash
```


## 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:
  - Anuradha Karuppiah (https://github.com/AnuradhaKaruppiah)

URL: NVIDIA#59
ericevans-nv pushed a commit to ericevans-nv/agent-iq that referenced this pull request Apr 14, 2025
* Run the test CI stage on both Amd64 and Arm64.
* Document installing QEMU to run CI for Arm64 on an Amd64 system.
* Disable `examples/simple/tests/test_web_query_tool.py` test on Arm due to a known issue with Faiss NVIDIA#72

Requires NVIDIA#59 to be merged first

## 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:
  - Anuradha Karuppiah (https://github.com/AnuradhaKaruppiah)

URL: NVIDIA#73
yczhang-nv pushed a commit to yczhang-nv/NeMo-Agent-Toolkit that referenced this pull request Apr 21, 2025
* Adds a `ci/scripts/run_ci_local.sh` script allowing for executing CI scripts locally mirroring the GHA CI pipeline as closely as possible.
* uv and pre-commit packages are cached in `.tmp/local_ci_tmp/cache`
* uv's venv is located in `.tmp/local_ci_tmp/local_ci_workspace/.venv`
* By default the script will perform a `git clone` and checkout the latest commit. This requires the latest commit to be pushed.
* Alternately setting the environment variable `USE_HOST_GIT=1` the host's repo will be mounted inside the CI container, avoiding the need to commit/push changes. (Note: Doing so requires all git-lfs files to be checked out first).
* Fix escape sequences in `ci/scripts/gitutils.py`

Usage:
* Run the entire CI pipeline:
```bash
./ci/scripts/run_ci_local.sh all
```

* Run just the checks stage:
```bash
./ci/scripts/run_ci_local.sh checks
```

* Debug a CI issue with the `bash` pseudo-stage. This will perform a git clone & checkout, and then drop you in a bash shell with all of the CI variables set.
```bash
./ci/scripts/run_ci_local.sh bash
```

## 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:
  - Anuradha Karuppiah (https://github.com/AnuradhaKaruppiah)

URL: NVIDIA#59
Signed-off-by: Yuchen Zhang <134643420+yczhang-nv@users.noreply.github.com>
yczhang-nv pushed a commit to yczhang-nv/NeMo-Agent-Toolkit that referenced this pull request Apr 21, 2025
* Run the test CI stage on both Amd64 and Arm64.
* Document installing QEMU to run CI for Arm64 on an Amd64 system.
* Disable `examples/simple/tests/test_web_query_tool.py` test on Arm due to a known issue with Faiss NVIDIA#72

Requires NVIDIA#59 to be merged first

## 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:
  - Anuradha Karuppiah (https://github.com/AnuradhaKaruppiah)

URL: NVIDIA#73
Signed-off-by: Yuchen Zhang <134643420+yczhang-nv@users.noreply.github.com>
yczhang-nv pushed a commit to yczhang-nv/NeMo-Agent-Toolkit that referenced this pull request May 8, 2025
* Adds a `ci/scripts/run_ci_local.sh` script allowing for executing CI scripts locally mirroring the GHA CI pipeline as closely as possible.
* uv and pre-commit packages are cached in `.tmp/local_ci_tmp/cache`
* uv's venv is located in `.tmp/local_ci_tmp/local_ci_workspace/.venv`
* By default the script will perform a `git clone` and checkout the latest commit. This requires the latest commit to be pushed.
* Alternately setting the environment variable `USE_HOST_GIT=1` the host's repo will be mounted inside the CI container, avoiding the need to commit/push changes. (Note: Doing so requires all git-lfs files to be checked out first).
* Fix escape sequences in `ci/scripts/gitutils.py`

Usage:
* Run the entire CI pipeline:
```bash
./ci/scripts/run_ci_local.sh all
```

* Run just the checks stage:
```bash
./ci/scripts/run_ci_local.sh checks
```

* Debug a CI issue with the `bash` pseudo-stage. This will perform a git clone & checkout, and then drop you in a bash shell with all of the CI variables set.
```bash
./ci/scripts/run_ci_local.sh bash
```

## 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:
  - Anuradha Karuppiah (https://github.com/AnuradhaKaruppiah)

URL: NVIDIA#59
Signed-off-by: Yuchen Zhang <134643420+yczhang-nv@users.noreply.github.com>
yczhang-nv pushed a commit to yczhang-nv/NeMo-Agent-Toolkit that referenced this pull request May 8, 2025
* Run the test CI stage on both Amd64 and Arm64.
* Document installing QEMU to run CI for Arm64 on an Amd64 system.
* Disable `examples/simple/tests/test_web_query_tool.py` test on Arm due to a known issue with Faiss NVIDIA#72

Requires NVIDIA#59 to be merged first

## 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:
  - Anuradha Karuppiah (https://github.com/AnuradhaKaruppiah)

URL: NVIDIA#73
Signed-off-by: Yuchen Zhang <134643420+yczhang-nv@users.noreply.github.com>
AnuradhaKaruppiah pushed a commit to AnuradhaKaruppiah/oss-agentiq that referenced this pull request Aug 4, 2025
* Adds a `ci/scripts/run_ci_local.sh` script allowing for executing CI scripts locally mirroring the GHA CI pipeline as closely as possible.
* uv and pre-commit packages are cached in `.tmp/local_ci_tmp/cache`
* uv's venv is located in `.tmp/local_ci_tmp/local_ci_workspace/.venv`
* By default the script will perform a `git clone` and checkout the latest commit. This requires the latest commit to be pushed.
* Alternately setting the environment variable `USE_HOST_GIT=1` the host's repo will be mounted inside the CI container, avoiding the need to commit/push changes. (Note: Doing so requires all git-lfs files to be checked out first).
* Fix escape sequences in `ci/scripts/gitutils.py`

Usage:
* Run the entire CI pipeline:
```bash
./ci/scripts/run_ci_local.sh all
```

* Run just the checks stage:
```bash
./ci/scripts/run_ci_local.sh checks
```

* Debug a CI issue with the `bash` pseudo-stage. This will perform a git clone & checkout, and then drop you in a bash shell with all of the CI variables set.
```bash
./ci/scripts/run_ci_local.sh bash
```


## 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:
  - Anuradha Karuppiah (https://github.com/AnuradhaKaruppiah)

URL: NVIDIA#59
AnuradhaKaruppiah pushed a commit to AnuradhaKaruppiah/oss-agentiq that referenced this pull request Aug 4, 2025
* Run the test CI stage on both Amd64 and Arm64.
* Document installing QEMU to run CI for Arm64 on an Amd64 system.
* Disable `examples/simple/tests/test_web_query_tool.py` test on Arm due to a known issue with Faiss NVIDIA#72

Requires NVIDIA#59 to be merged first

## 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:
  - Anuradha Karuppiah (https://github.com/AnuradhaKaruppiah)

URL: NVIDIA#73
scheckerNV pushed a commit to scheckerNV/aiq-factory-reset that referenced this pull request Aug 22, 2025
* Adds a `ci/scripts/run_ci_local.sh` script allowing for executing CI scripts locally mirroring the GHA CI pipeline as closely as possible.
* uv and pre-commit packages are cached in `.tmp/local_ci_tmp/cache`
* uv's venv is located in `.tmp/local_ci_tmp/local_ci_workspace/.venv`
* By default the script will perform a `git clone` and checkout the latest commit. This requires the latest commit to be pushed.
* Alternately setting the environment variable `USE_HOST_GIT=1` the host's repo will be mounted inside the CI container, avoiding the need to commit/push changes. (Note: Doing so requires all git-lfs files to be checked out first).
* Fix escape sequences in `ci/scripts/gitutils.py`

Usage:
* Run the entire CI pipeline:
```bash
./ci/scripts/run_ci_local.sh all
```

* Run just the checks stage:
```bash
./ci/scripts/run_ci_local.sh checks
```

* Debug a CI issue with the `bash` pseudo-stage. This will perform a git clone & checkout, and then drop you in a bash shell with all of the CI variables set.
```bash
./ci/scripts/run_ci_local.sh bash
```


## 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:
  - Anuradha Karuppiah (https://github.com/AnuradhaKaruppiah)

URL: NVIDIA#59
scheckerNV pushed a commit to scheckerNV/aiq-factory-reset that referenced this pull request Aug 22, 2025
* Run the test CI stage on both Amd64 and Arm64.
* Document installing QEMU to run CI for Arm64 on an Amd64 system.
* Disable `examples/simple/tests/test_web_query_tool.py` test on Arm due to a known issue with Faiss NVIDIA#72

Requires NVIDIA#59 to be merged first

## 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:
  - Anuradha Karuppiah (https://github.com/AnuradhaKaruppiah)

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

Labels

improvement Improvement to existing functionality non-breaking Non-breaking change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants