Repository navigation
Fix AIX processor-cache detection using the hostname as the POWER version - #3504
Conversation
…ersion getCachesForModel selected the cache topology from getFirstIntValue(uname -n) -- but uname -n is the network hostname, so on a POWER8 box named e.g. "gcc119" it parsed 119, matched no switch case, and returned an empty cache list. Read the POWER generation from prtconf's "Processor Version" line instead (e.g. PV_8_Compat -> 8), via a new testable parsePowerVersion(prtconf) seam. Verified against real prtconf/uname output from an IBM,8284-22A (POWER8) cfarm host. CHANGELOG entry to be added when the PR is opened (after #3503 lands).
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
📜 Recent review details⏰ Context from checks skipped due to timeout. (1)
🧰 Additional context used🧠 Learnings (3)📚 Learning: 2026-04-12T19:22:09.716ZApplied to files:
📚 Learning: 2026-04-12T19:34:56.879ZApplied to files:
📚 Learning: 2026-07-06T19:25:59.225ZApplied to files:
🔇 Additional comments (3)
📝 WalkthroughWalkthroughAIX cache-topology detection now parses the POWER generation from ChangesAIX POWER cache detection
Estimated code review effort: 2 (Simple) | ~10 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #3504 +/- ##
============================================
+ Coverage 71.82% 76.44% +4.61%
Complexity 76 76
============================================
Files 591 591
Lines 21695 21695
Branches 3611 3611
============================================
+ Hits 15583 16584 +1001
+ Misses 4316 3169 -1147
- Partials 1796 1942 +146
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Summary
AixCentralProcessor.getCachesForModelselected the processor-cache topology fromParseUtil.getFirstIntValue(runNative("uname -n"))— butuname -nis the network hostname, not the processor version. On a POWER8 cfarm host namedgcc119, that parses to119, matches noswitchcase, andCentralProcessor.getProcessorCaches()returns an empty list.This reads the POWER generation from
prtconf'sProcessor Versionline instead (e.g.PV_8_Compat→ 8), via a new testableparsePowerVersion(prtconf)seam.Validation
Confirmed on the actual AIX box (
sshto cfarmgcc119, anIBM,8284-22APOWER8):The new
parsePowerVersiontest is grounded in that exactprtconfoutput.Testing
oshi-commonfull gate green: spotless, checkstyle, install + forbiddenapis, javadoc; clean full-reactorinstallgreen.AixCentralProcessorTestpasses, including the newtestParsePowerVersion.Summary by CodeRabbit