Diff Analyzer
jnkn.analysis.diff_analyzer
Diff Analyzer - Analyze semantic changes between two dependency graphs.
Identifies: 1. Added/Removed/Modified Nodes (Infrastructure, Code, Data) 2. Added/Removed Edges (Lineage, Dependencies) 3. Impact Assessment (Breaking Changes)
Classes
DiffAnalyzer
Compares two DependencyGraphs to detect structural and semantic changes.
Source code in src/jnkn/analysis/diff_analyzer.py
132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 | |
Functions
compare(base_graph, head_graph)
Compare base (original) vs head (new) graph.
Source code in src/jnkn/analysis/diff_analyzer.py
137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 | |
DiffReport
dataclass
Complete report of graph differences.
Source code in src/jnkn/analysis/diff_analyzer.py
Attributes
has_breaking_changes
property
Heuristic for breaking changes: - Removing an Env Var that is read by code? (Edge removal) - Removing an Infra resource?
Functions
to_markdown()
Generate a human-readable markdown report.
Source code in src/jnkn/analysis/diff_analyzer.py
EdgeChange
dataclass
Represents a change to a dependency (edge).
Source code in src/jnkn/analysis/diff_analyzer.py
NodeChange
dataclass
Represents a change to a single node.