update tests#151
Conversation
Signed-off-by: Susan Hooks <shooks@nvidia.com>
📝 WalkthroughWalkthroughThe Python CI job now provisions Redis. Redis lock tests use per-run unique keys, and IB PKey workflow tests validate canonical host lock keys and enforce canonicalization for host-keyed workflows. ChangesLock test validation
Estimated code review effort: 2 (Simple) | ~10 minutes 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (4 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 2
🧹 Nitpick comments (1)
.github/workflows/public-ci.yml (1)
149-149: 🔒 Security & Privacy | 🔵 Trivial | ⚡ Quick winPin the Redis image to an immutable reference.
redis:7-alpineis mutable, so future CI runs can silently consume a different image. Pin a reviewed digest (or repository-approved immutable reference) for reproducible lock-test infrastructure.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In @.github/workflows/public-ci.yml at line 149, Update the Redis service image configuration in the CI workflow from the mutable redis:7-alpine tag to a reviewed immutable digest or repository-approved immutable reference, preserving the existing Redis service setup.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In @.github/workflows/public-ci.yml:
- Around line 157-159: Update the Redis fixture’s client.ping() failure handling
so explicitly configured CI Redis connections raise the failure instead of
calling pytest.skip(...). Preserve pytest.skip(...) only for the intentional
local opt-in path, and use the existing REDIS_HOST/REDIS_PORT configuration
symbols to distinguish these modes.
In `@src/tests/temporal/ngc/workflows/test_ib_pkey_lock.py`:
- Around line 82-97: The test test_host_keyed_lock_requires_canonicalization
currently checks only that canonicalize_input is overridden, allowing no-op
implementations. Add a behavior-level assertion using equivalent hostname and IP
inputs to verify workflow_class.canonicalize_input produces the same canonical
host value, or strengthen the registration validation to enforce this contract
for every workflow returned by _host_keyed_locked_workflows.
---
Nitpick comments:
In @.github/workflows/public-ci.yml:
- Line 149: Update the Redis service image configuration in the CI workflow from
the mutable redis:7-alpine tag to a reviewed immutable digest or
repository-approved immutable reference, preserving the existing Redis service
setup.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Enterprise
Run ID: ab3f53b4-c9f2-469d-abfa-4ce4f7d96aab
📒 Files selected for processing (3)
.github/workflows/public-ci.ymlsrc/tests/common/test_lock_redis.pysrc/tests/temporal/ngc/workflows/test_ib_pkey_lock.py
|
/ok to test a488dfc |
|
/kind test |
|
/kind test |
|
Queued Kind integration for a488dfc: https://github.com/NVIDIA/nv-config-manager/actions/workflows/kind-integration.yml |
Description
Validation
The kind integration test is manual due to taking ~30 min to complete. When the PR is ready for
review, approve the current commit and start the suite with these PR comments:
As a fallback, run Actions -> Kind Integration -> Run workflow against the copy-pr-bot generated
pull-request/<PR_NUMBER>branch. Use the defaulttest_pathfor the full suite, or narrow itonly while debugging.
The completed workflow updates this PR description with its conclusion and exact run URL.
Passing Kind Integration run, if not automatically reported:
Kind integration completed with success for
a488dfc3c0e2.Checklist
CONTRIBUTING.md.docs screenshots, or Helm/rendered outputs.
Summary by CodeRabbit
Tests
Chores