feat(sis): Adding deployment_id and gpu_spec_id and index for them to instances table - #602
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (2)
📝 WalkthroughWalkthroughThe Cassandra schema adds ChangesInstance lookup schema
Estimated code review effort: 1 (Trivial) | ~2 minutes Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 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
`@migrations/cassandra/keyspaces/sis_api/07_add_deployment_and_gpu_spec_id.up.sql`:
- Line 2: Extend migrations/cassandra/tests/test-execute-sqls.sh to cover
migrations 07 and 08: verify both UUID columns, both indexes, migration
ordering, and successful repeat application; the migration SQL files require no
direct changes. If coverage is intentionally omitted, document the reason in the
Pull Request description.
🪄 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: 82eab019-e4ef-4424-b25f-8a2d7e6adcc1
📒 Files selected for processing (2)
migrations/cassandra/keyspaces/sis_api/07_add_deployment_and_gpu_spec_id.up.sqlmigrations/cassandra/keyspaces/sis_api/08_add_indexes_for_deployment_and_gpu_spec_id.up.sql
sanjay-saxena
left a comment
There was a problem hiding this comment.
@dmikhaylovnv -- Is there a reason why we need separate sql files for these DDLs that are related to the same columns?
I'm following the same approach we have in helenus. My gut feeling is the order of commands in a single file is not guaranteed in some cases while files order is always guaranteed. We need to make sure the columns are created before we add indexes. |
|
/rebase |
e394713 to
a9e1c87
Compare
|
Note GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer. |
|
🎉 This PR is included in version nvcf-cassandra-migrations-v0.16.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
TL;DR
Adding deployment_id and gpu_spec_id and their indexes for them to instances table
Issues
Resolves NVIDIA/nvcf#11152
Summary by CodeRabbit