Skip to content

Conversation

@steiler
Copy link
Collaborator

@steiler steiler commented Sep 11, 2025

We where not excluding the Deviation resources from the blame calculation, which results in the deviation intent being the highest precedence. The result was false formatting.

                             -----    │     ├── 📦 interface
                             -----    │     │   ├── 📦 ethernet-1/1
          default.intent1-srl-srl1    │     │   │   ├── 🍃 admin-state -> enable
deviation:default.intent1-srl-srl1    │     │   │   ├── 🍃 description -> otherval
deviation:default.intent1-srl-srl1    │     │   │   ├── 🍃 name -> ethernet-1/1

vs.

                   -----    │     ├── 📦 interface
                   -----    │     │   ├── 📦 ethernet-1/1
default.intent1-srl-srl1    │     │   │   ├── 🍃 admin-state -> enable
default.intent1-srl-srl1(*) │     │   │   ├── 🍃 description -> intent1 [-> otherval]
default.intent1-srl-srl1    │     │   │   ├── 🍃 name -> ethernet-1/1

We where not excluding the Deviation resources from the blame calculation, which results in the deviation intent being the highest precedence. The result was false formatting.

                             -----    │     ├── 📦 interface
                             -----    │     │   ├── 📦 ethernet-1/1
          default.intent1-srl-srl1    │     │   │   ├── 🍃 admin-state -> enable
deviation:default.intent1-srl-srl1    │     │   │   ├── 🍃 description -> otherval
deviation:default.intent1-srl-srl1    │     │   │   ├── 🍃 name -> ethernet-1/1

                   -----    │     ├── 📦 interface
                   -----    │     │   ├── 📦 ethernet-1/1
default.intent1-srl-srl1    │     │   │   ├── 🍃 admin-state -> enable
default.intent1-srl-srl1(*) │     │   │   ├── 🍃 description -> intent1 [-> otherval]
default.intent1-srl-srl1    │     │   │   ├── 🍃 name -> ethernet-1/1
@steiler steiler marked this pull request as ready for review September 11, 2025 07:55
Copy link
Contributor

@alexandernorth alexandernorth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@steiler steiler merged commit e522fe3 into main Sep 15, 2025
6 checks passed
@codecov
Copy link

codecov bot commented Sep 15, 2025

Codecov Report

❌ Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
pkg/datastore/datastore_rpc.go 0.00% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

3 participants