Repository navigation
fix: paykit fixtures on paykit-rs 0.1.1-rc8 - #38
Conversation
Move the payment request peers to paykit-rs adbe24a (v0.1.1-rc8, Pubky 0.16.2) and Paykit Server to pubky/paykit-server#131 (b441977) with a lock patch from rc6 to rc8, the version both apps pin. The testnet homeserver stays at 0.14.0.
talosmachina
left a comment
There was a problem hiding this comment.
1 finding (1 P1). Moves the payment request peers, Paykit Server and the driver to paykit-rs v0.1.1-rc8, with a lock patch on top of pubky/paykit-server#131. Reviewed 864da21, full tier for this PR's own commit (864da21), not the #32 commits it carries or the merge of main.
What I checked, and 3 candidates I ruled out
Read in full: 864da21 (compose pins, pubky-marketplace pins, docs, test_paykit_pins.py), marketplace/patches/paykit-server-paykit-rs-rc8.patch, apply_paykit_server_patches / fetch_pinned / check_lock_pins in pubky-marketplace
Run: the patch checked with git apply --check against paykit-server b441977 (applies), 662dca06 and 0ffd4da (neither); apply_paykit_server_patches from this head run against a 662dca06 checkout (exit 1)
Not run: the Python tests and the image builds. talos-pr-run refused (it could not read the author's permission on this repo), so nothing from this branch ran here.
CI: none reported on this branch
Ruled out
- Patch left behind on a pin change:
fetch_pinnedrunsgit checkout -- .before it moves the tree, so the rc8 edit does not leak into another revision. - Lock check against the unpatched tree:
fetch_sourcesapplies the patches beforecheck_lock_pins, so the check reads the rc8 lock. - Fixture tag:
PAYKIT_RS_TAG=v0.1.1-rc8givesrc8-sharedthrough${paykit_version##*-}, which matches the compose defaults and the newtest_paykit_pins.pycase.
Merge confidence: 3/5, one P1, and no CI ran on the branch.
Reviewer model: claude-opus-5-5
Reasoning effort: Not exposed
Metadata note: the review session reports the model but not its reasoning setting.
|
Scoped the Paykit Server rc8 patch to its base revision, so
Re-review is needed only because of this push: 864da21...0410f81 |
talosmachina
left a comment
There was a problem hiding this comment.
Re-review of 0410f81 after 864da21. 1 earlier finding: 1 fixed. 0 new findings. The rc8 lock patch now carries Applies-to: b4419772... and apply_paykit_server_patches skips it on any other PAYKIT_SERVER_REV. Full tier on the diff since 864da21.
What I checked, and 2 candidates I ruled out
Earlier finding: the rc8 patch stops build-paykit on other Paykit Server pins. Fixed. The Applies-to: check runs before git apply --check, so on 662dca06 (the README's rc11 route) and on any server scripts/follow-app-paykit picks, the patch is skipped, and the loop goes on to the Upstream: logic for the other two patches as before.
Read in full: apply_paykit_server_patches, ensure_sources, fetch_sources, the pin block of pubky-marketplace, the scripts/follow-app-paykit patch-label comparison, and scripts/test_paykit_patches.py.
Run: git apply --check of the shipped patch file against paykit-server b441977 (it applies) and 662dca06 (it fails on Cargo.lock, which the header now skips). Nothing from the branch ran. talos-pr-run refused (it could not read the author's permission on this repo), so the new Python tests did not run here either.
CI: none reported on this branch.
Ruled out
- Patch label lists a skipped patch:
PAYKIT_SERVER_PATCHESstill names the rc8 file on a662dca06build, but it lists the files inmarketplace/patches, not the ones applied. The proposal-expiry patch, skipped throughUpstream:, was already listed the same way.follow-app-paykitcompares that list on both sides, so it stays consistent. - Re-apply on an existing tree: on a
b441977tree that is already patched,ensure_sourcescalls the loop again and the--reversecheck makes that a no-op.
Merge confidence: 4/5. No open findings, but no CI ran on the branch and its tests did not run here.
|
Merged Re-review is needed only because of this push: https://github.com/synonymdev/bitkit-docker/compare/0410f81c0..5f6c9b7 |
piotr-iohk
left a comment
There was a problem hiding this comment.
QA review
Scope: full review. I reviewed the whole PR diff against its merge base 96b597c at 5f6c9b7. There was no saved baseline, so nothing is inherited. Covered: compose pins, image tags and labels; the pubky-marketplace pins and the Applies-to: patch scoping; the rc8 Paykit Server patch; the fixture's Cargo.toml/Cargo.lock; the docs and script tests. I also traced the affected callers: scripts/follow-app-paykit, payment-requests/Dockerfile, scripts/paykit-lock.py, scripts/paykit-classic-dockerfile.py and the driver's trust rewrite.
1 actionable finding — resolve or provide an evidence-backed rebuttal.
What the PR gets right. The rc8 patch applies cleanly to upstream pubky/paykit-server b441977. Its Cargo.lock edit matches paykit-rs adbe24a: compared with rc6, only the version changes and paykit-sdk adds base32, which the server lock already resolves. The repo's own paykit-lock.py accepts the patched lock with locks-core 3013d8c / v0.1.1-rc2. On b441977, the proposal-expiry patch is correctly skipped, because its Upstream: fix ee82ab4 is an ancestor. The reader-metadata patch still applies. The driver's [locks] → [signed_services] rewrite matches this server, which rejects [locks] trusted_public_key. The fixture's Dockerfile reads pubky = "0.16.2" from paykit-lib at adbe24a, which matches the new =0.16.2 pin. The earlier patch-scoping thread is marked resolved. Its fix (the Applies-to: skip) holds at this head.
One LOW finding. The new lock patch means the server image's recorded upstream revision no longer locks the paykit-rs commit in its label. scripts/follow-app-paykit re-checks against that upstream lock when it saves pins, so it fails for the apps' current rc8 pin after a default build.
Validation: python3 -m unittest scripts/test_paykit_patches.py passes 5/5 at the head. I ran the full scripts/test_*.py discovery at head and at base. Failures at head (6 failures, 1 error) match base (5 failures, 1 error) apart from the new v0.1.1-rc8 subtest, which fails the same way as its existing siblings. The cause is this host's Python 3.10 without tomli; the sandbox blocked installing it or a newer Python. So I could not reproduce the author's report that all 13 test modules pass. I ran paykit-lock.py against the upstream and patched b441977 lockfiles using pip's vendored tomli. No Docker or cargo builds were run. Image builds, the fixture compiling against Pubky 0.16.2, and rc8 peers working on the 0.14.0 testnet homeserver come from the author's reported runs. GitHub reports no CI checks on this branch.
Suggested additional test cases
- Host with Docker. Setup: run
./pubky-marketplace buildwith the default pins. Action: runscripts/follow-app-paykit synonymdev/bitkit-ios <master head sha>(an app pinned to paykit-rs 0.1.1-rc8) without--check. Expected: exit 0, and.marketplace/paykit-pins.jsonrecordsb4419772…/adbe24ac…. Not exit 4 after reporting that the images are current. - Host with Docker. Setup: export the README's rc11 route pins (
PAYKIT_SERVER_REV=662dca06…and the matching paykit-rs/locks pins). Action: run./pubky-marketplace build-paykit. Expected: the log printsskipped paykit-server-paykit-rs-rc8.patch: it applies only to paykit-server b4419772, the build completes, and the662dca0image labels record paykit-rs rc72. This is a full build, not just patch application on a checkout.
Findings
- [LOW] follow-app-paykit fails to save pins for rc8 apps after a default build — inline at
docker-compose.yml:520.
Reviewer model: claude-opus-5-5
Reasoning effort: high
|
Pushed e7752aa for the QA review's finding: Re-review is needed only because of this push: 5f6c9b7...e7752aa |
pwltr
left a comment
There was a problem hiding this comment.
Reviewed e7752aa. No issues found.
The fixtures, Paykit Server and the driver move to paykit-rs v0.1.1-rc8 consistently across Compose, pubky-marketplace and the docs. The rc8 lock patch is scoped to b441977, so other server pins still build, and follow-app-paykit checks and saves pins against the patched lock the build uses.
Review details
General review
Model: Claude Opus 5.5
Reasoning effort: high
piotr-iohk
left a comment
There was a problem hiding this comment.
QA review
Scope: follow-up review at e7752aa. I re-reviewed the changes since the previous reviewed head 5f6c9b7, including affected code paths, and carried over coverage from the baseline review. The base and merge base are unchanged (96b597c). The only new commit changes scripts/follow-app-paykit and scripts/test_paykit_patches.py. I also listed every file in the full PR diff to check that nothing new was missed.
No new actionable code findings.
No new actionable code findings in the follow-up. The new server_lock helper takes upstream's Cargo.lock for the chosen Paykit Server revision. It then applies only the Cargo.lock part of patches whose Applies-to: matches that revision. This is the same lock that pubky-marketplace build-paykit checks in check_lock_pins, because fetch_sources applies the patches before that check. Both callers use it: the rebuild check and the pin save. So an image already built on b4419772 with the rc8 patch now passes the pin-save check instead of failing on upstream's rc6 lock. Server revisions without a scoped patch, such as master or a linked PR, still get upstream's lock, which matches what the build uses. The lock check ignores unscoped patches. That has no effect today: none of the shipped unscoped patches edit Cargo.lock.
Validation: python3 -m unittest scripts/test_paykit_patches.py passes all 7 tests at e7752aa, including the 2 new ServerLockTests (Python 3.10.12). bash -n scripts/follow-app-paykit passes. I ran the extracted server_lock against the real upstream paykit-server b4419772dde2. It exits 0, and its output locks paykit-lib and paykit-sdk to 0.1.1-rc8 (adbe24a). A missing revision makes it return 1.
Limitations: I could not run scripts/paykit-lock.py on that output. It needs Python 3.11+ or tomli, and package installation was blocked in the review environment. The baseline review covered that check on the same patch. No Docker build or end-to-end run of follow-app-paykit was performed.
Earlier findings reconciled at this revision: 2 verified fixed.
Reviewer model: claude-opus-5-5
Reasoning effort: high
|
Merging: @pwltr approved e7752aa, and @piotr-iohk's QA review of the same head found no issues. No threads are open, and this repository has no CI checks. |
Refs: #32
Description
fixture-issuer,rc56-peer,homeserver-proxy) to paykit-rsadbe24a(v0.1.1-rc8, Pubky 0.16.2), the version bitkit-ios and bitkit-android master lock, so contact journeys run against peers on the apps' own Paykit SDK.b441977, paykit-rs v0.1.1-rc6, Pubky 0.16.2), the nearest revision, withmarketplace/patches/paykit-server-paykit-rs-rc8.patch. The patch moves the server's lock to rc8 (Cargo.tomltags,Cargo.lockentries, the exact pinscripts/prepare-local-docker-sources.shchecks). No upstream revision locks rc8 yet. MovePAYKIT_SERVER_REVto the first that does and drop the patch. The patch namesApplies-to: b4419772…, andapply_paykit_server_patchesskips it on any otherPAYKIT_SERVER_REV, so other pins (the README's rc11 route,scripts/follow-app-paykit) build as before.3013d8c), the version chore: adopt Paykit v0.1.1-rc8 pubky/paykit-server#131 locks. Thepaykit-server-reader-accepts-proposal-expiry.patchis skipped because that revision contains its fix. The reader-metadata patch still applies.accept_payment_requestcall needs no new code: since rc74 it takes the approved proposal'sexpected_proposal_stream_item_id, and Support app-aligned Paykit fixtures for native Android QA #32's feature gate already passes the claimed record'sproposal_stream_item_id. rc8's private intake over SSE (Codex/paykit sse private intake pubky/paykit-rs#243) is opt-in and Rust-only, and the write-slot check (fix: check Encrypted Link write slots before publishing pubky/paykit-rs#252) needs nothing from the peer, so both need no fixture change either.HEADchecks work there.payment-request-fixture:rc8-shared, and the image labels record the paykit-rs commit.This PR builds on #32, now merged into
main: it uses that PR's acceptance feature gate andPAYKIT_RS_REVbuild arguments.Out of Scope
marketplace/pubky-testnet: the homeserver stays at 0.14.0 because rc8 peers link on it. paykit-rs names 0.16.2 as its supported minimum.marketplace/driver: stays on@synonymdev/pubky0.14.0. The compose entrypoint already rewrites the driver's[locks]trust into the[signed_services]form thatb441977reads.QA Notes
Automated Checks
cargo update -p paykit-lib -p paykit-sdkon the fixture, thendocker build payment-requests: builds with--features=versioned-payment-request-acceptance, and the image records paykit-rsadbe24a../pubky-marketplace build-paykitwith the rc8 pins: Paykit Server and the driver build. The lock check passes, and the patch applies atb441977.scripts/test_*.pypass.test_paykit_pins.pynow covers the v0.1.1-rc8 torc8-sharedtag, and the newtest_paykit_patches.pycovers revision-scoped patches.apply_paykit_server_patcheson a662dca06checkout: skips the rc8 patch and patches the tree as before.Manual Tests
readyon every component../payment-requests/prepare --link-only:{"link":"linked"}in 8 s../payment-requests/prepare: the one-time and monthly requests, a paid txid andverified.bbf02ca86) and Android (2f18eb69b) on paykit-rs 0.1.1-rc8, each with a fresh profile on the local testnet: saving thefixture-issueras a contact completes the private link within seconds. The fixture's/syncthen reportslinkedand carries the app's private payment list, and the app logs norecovery_required.