Repository navigation
fix(node): send core versions with a v prefix to node-serviced - #977
Conversation
NodeCoreUpdate accepted "X.Y.Z" but node-serviced and pg-node look versions up by release tag ("vX.Y.Z"), so a bare version sent through the API failed with 400. The model now adds the missing prefix; "latest" is unchanged.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (2)
Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 6 remain after this review. WalkthroughNodeCoreUpdate now prefixes unprefixed core versions with ChangesCore version validation
Priority: ➖ Normal Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix Suggested reviewers: Merge Risk: ⚪ Minimal · up to Bare release versions are normalized while “latest” remains unchanged. The known limitation for “latest” is outside this change; no introduced merge-blocking risk is evidenced. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 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. A rabbit checks the version string, Comment |
|
@coderabbitai review |
✅ Action performedReview finished.
|
… to ff6e596 Every Port queue line in the panel and side-repository ledgers now says `security: yes` or `security: no`. Security: c9b445a (passkey client rename), eb50bfd, PasarGuard#938, PasarGuard#940, PasarGuard#942, the cryptography 50.0.2 security release, and the ten commits of upstream's PasarGuard#979 permission-leak batch (user list scopes, API-key permissions, HWID visibility, users.read, the Telegram inline search), which no branch ports yet. Checked with git ls-remote on 2026-10-09: upstream dev moved to ff6e596. The PasarGuard#979 batch, the node RPC fixes (PasarGuard#977, PasarGuard#978), the core-deletion restart (PasarGuard#934), dashboard fixes (PasarGuard#852, PasarGuard#907, PasarGuard#949, PasarGuard#952), performance changes (PasarGuard#945, PasarGuard#853, PasarGuard#855) and the merged dependabot bumps (ruff, uvloop, fastapi) join the queue; the ruff and uvloop conditional waivers ended when upstream merged them. Waived: PasarGuard#980 and its branch commit (the Telegram notifier workflow the fork deleted) and the superseded fastapi dependabot head b021d6f. The refs snapshot records the five new heads. Fork core-kit main 90701408 now contains upstream d2ecb5bd, so that ledger is empty. No side repository gained an upstream commit since 2026-10-07.
Problem
NodeCoreUpdateacceptscore_versionvalues with or without a leadingv(pattern^(latest|v?\d+\.\d+\.\d+)$) and forwarded them unchanged.node-serviced and
pg-node core-updatelook versions up by Xray release tag, which always starts withv. So a request like this failed with a 400 from node-serviced:The dashboard is not affected;
update-core-modal.tsxalready adds the prefix.Change
NodeCoreUpdate.add_v_prefixturns25.8.31intov25.8.31.latestandv25.8.31are unchanged.make gen-apiis needed.The default
"latest"is still rejected by node-serviced until PasarGuard/node-serviced#1 is released and installed on the node hosts.Tests
tests/test_node_core_update_model.py(8 cases: prefixing, pass-through, default, rejections).tests/api/test_node.pypasses.ruff checkandruff format --checkare clean.Summary by CodeRabbit
vare now normalized to include one. Thelatestvalue remains unchanged.