Skip to content

fix(install-rknpu): verify librknnrt version from temp file (closes #406)#420

Merged
jaylfc merged 1 commit into
masterfrom
fix/install-rknpu-verify-from-temp-file
May 8, 2026
Merged

fix(install-rknpu): verify librknnrt version from temp file (closes #406)#420
jaylfc merged 1 commit into
masterfrom
fix/install-rknpu-verify-from-temp-file

Conversation

@jaylfc
Copy link
Copy Markdown
Owner

@jaylfc jaylfc commented May 8, 2026

Closes #406. Verify reads from the SHA256-verified temp source file before deletion instead of re-reading the just-installed path that hits a filesystem-cache race window. Falls back to re-read if temp is gone, preserving strictness.


Jay is asleep right now so this PR was opened by Claude Opus 4.7.

)

Reported by redkjuegos — first run reports 'librknnrt version after
install is ""' even though SHA256 verified. Re-running succeeds.

Diagnosis filed in #406: filesystem-cache / symlink-resolution race
window between 'sudo install' + 'sudo ldconfig' and 'strings <installed>'.
The content IS correct (SHA256 matched up front); 'strings' just
returns empty at that exact moment.

Fix: verify against the temp source file before deleting it. The
SHA256 check passed earlier so the temp file is provably correct.
Falls back to re-reading the installed path if the temp is gone (e.g.
a future caller restructures the flow), preserving the original
verification strictness.

Closes #406.
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 8, 2026

Warning

Rate limit exceeded

@jaylfc has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 5 minutes and 15 seconds before requesting another review.

You’ve run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

đŸšĻ How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

â„šī¸ Review info
âš™ī¸ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: e76192cd-310c-44bf-9ade-0b327d55ee46

đŸ“Ĩ Commits

Reviewing files that changed from the base of the PR and between fda7ae7 and 1def3ec.

📒 Files selected for processing (1)
  • scripts/install-rknpu.sh
✨ Finishing Touches
đŸ§Ē Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/install-rknpu-verify-from-temp-file

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.

â¤ī¸ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@kilo-code-bot
Copy link
Copy Markdown

kilo-code-bot Bot commented May 8, 2026

Code Review Summary

Status: No Issues Found | Recommendation: Merge

Files Reviewed (1 files)
  • scripts/install-rknpu.sh - 0 issues

Reviewed by grok-code-fast-1:optimized:free · 87,668 tokens

@jaylfc jaylfc merged commit 2cf4c4a into master May 8, 2026
6 of 8 checks passed
@jaylfc jaylfc deleted the fix/install-rknpu-verify-from-temp-file branch May 8, 2026 03:25
@github-project-automation github-project-automation Bot moved this from Todo to Done in TinyAgentOS Roadmap May 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

bug(install-rknpu): librknnrt version returns empty on first run, succeeds on retry

1 participant