Repository navigation
Conversation
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Apex Sentinel: 2 new findings on 0996eea. The verdict and the full list are in the summary comment.
- 🟡 Minor · Upload's own 420 s timeout is a literal copy of the install budget constant ·
packages/provider-revyl/src/artifact-upload.ts:20 - 🟡 Minor · Upload failure reason no longer distinguishes network errors from refusals ·
packages/provider-revyl/src/artifact-upload.ts:54
Size Report
Startup median (7 runs, lower is better):
Affected plugins
|
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Apex Sentinel: 1 new finding on 9fee0bd. The verdict and the full list are in the summary comment.
- 🟡 Minor · Body-stream failure after the response resolves is swallowed; upload can report success on a truncated build ·
packages/provision-kit/src/install-source-network-transport.ts:120
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
The code at 6140203 has one gap: the Revyl install path has no live run yet. CI is green, with 18 checks passing at this head, and no conflicts are known. The Revyl install route ( Not blocking, and fine to take or leave: when storage answers a large PUT early with 403 and closes the connection, the pipeline in install-source-network-transport.ts:87 can reject with EPIPE or ECONNRESET, so users see The three earlier inline threads are fixed at this head and can be resolved: the upload now goes through admission and the pinned transport (#5337 (comment)), admission now comes before the source open (#5337 (comment)), and the early-response race is fixed in fe48b74 (#5337 (comment)). Not verified here: tests were not run, the early-response behavior against real S3 or GCS presigned storage, and the plugin size at this head. |
6140203 to
f6b02b1
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Apex Sentinel: 1 new finding on f6b02b1. The verdict and the full list are in the summary comment.
- 🟡 Minor · fetch resolves on headers, so a build that fails to stream uploads reports success ·
packages/provider-revyl/src/artifact-upload.ts:48
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Apex Sentinel: 1 new finding and 1 moved to a new line on c5463c2. The verdict and the full list are in the summary comment.
- 🟡 Minor · Docs and reason comment say redirects raise revyl_upload_unreachable; code raises rejected ·
packages/provider-revyl/src/artifact-upload.ts:12 - 🟡 Minor · Upload reports success when the build file fails to stream after headers arrive ·
packages/provider-revyl/src/artifact-upload.ts:54(moved)
c5463c2 to
866d80b
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Apex Sentinel: 2 new findings on c24a114. The verdict and the full list are in the summary comment.
- 🟡 Minor · A known non-2xx answer is discarded when the request stream then errors ·
packages/provider-revyl/src/artifact-upload.ts:67 - 🟡 Minor · Reading the local build file is reported as Revyl storage refusing the upload ·
packages/provider-revyl/src/artifact-upload.ts:76
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
All reported issues were addressed across 8 files
Reply with feedback, questions, or to request a fix.
View guided diff | Turn on auto-fix | Re-trigger cubic
|
At 8ca32a6 the earlier findings (#5337 (comment)) are fixed in code: the reason comments, the early-200 settle rule and the non-2xx status handling now match, and a redirect is rejected. The new PUT transport still has five problems, and the live install it needs is still missing. All 27 checks pass at this head. No conflicts. The install route (deployRevylApp -> uploadSessionArtifact -> uploadRevylArtifact) now sends a hand-built https.request PUT with a pinned lookup and a streamed Content-Length body (artifact-upload.ts:44). Every test stubs https.request or redirects it to a plain-HTTP fixture, so no real presigned storage has accepted this request shape. If S3 or GCS rejects it, every local-build install on a rented Revyl device fails, and CI cannot show that. Before merge, please post one live A second independent pass found that the default HTTPS agent can bypass the pinned lookup when Node environment proxying is on (artifact-upload.ts:44). The proxy receives a CONNECT for the hostname and picks the destination itself. If it resolves the name to private storage with a valid certificate, that storage gets the build and the signed upload query. The previous transport sent CONNECT to the approved numeric address. Please use a fresh direct HTTPS connection for this request, such as agent: false, with the existing pinned lookup. If the upload must go through a proxy, tunnel to the approved numeric address and keep the hostname for TLS and Host. A second independent pass found a related gap at artifact-upload.ts:50. Two jobs can receive URLs on the same storage origin. The default agent pools by origin, so the second upload can reuse the first job's socket and skip the second lookup. The build then goes to the previous job's address, not the one admitted for this job. Disabling shared-agent reuse for the upload, for example with agent: false, makes every request dial its own admitted address. A second independent pass found that a request error after the body finishes is lost (artifact-upload.ts:72). If storage closes the connection, or the caller cancels, after the PUT is written and before response headers arrive, the ClientRequest error comes after the pipeline callback. Nothing passes it to fail, so the promise never settles. The previous transport and base fetch both rejected here. On the install route the 420 s budget in deployment.ts:96 eventually aborts it, so the user waits about seven minutes. Please register an error listener on the ClientRequest that calls fail for its whole lifetime, including after the body pipeline ends. A second independent pass found that the upload can stream more bytes than the ticket issued (artifact-upload.ts:72). Deployment sizes the file at deployment.ts:89 and uses that size in the ticket request. If a build process appends to the file while the ticket request waits, the new transport streams to EOF under the old Content-Length with no length check, and a 2xx can advance the worker install. Base fetch enforced the declared length. Please make the source stream enforce the ticket's exact byte count, including zero bytes and early EOF, and fail before sending anything beyond it. The open inline thread on the lost request error at artifact-upload.ts:72 still stands (#5337 (comment)), and it is the same fix as above. Two lower-priority threads still apply, both on test strength: the fixture dropping url.search and the upload test never asserting the forwarded signal. The threads on the reason comments (#5337 (comment)), the early-200 settle (#5337 (comment)), the non-2xx status (#5337 (comment)) and the file-size race (#5337 (comment)) no longer apply and can be resolved. The first three are fixed at this head. The last is a benign race, since deployment.ts:89 stats the packed build right before the upload and keeps the fs error as the cause. Tests were not run here. CI is green at this head. Before merge, the live Revyl install above is still required, and the five transport fixes above need to land. |
|
Live Revyl install attempt at 76541ff (Android, branch CLI after Result: not verified. The key was |
76541ff to
4835963
Compare
Apex Sentinel · ✅ Approve · review of
|
| Where | Finding |
|---|---|
packages/provider-revyl/src/revyl-client.ts:364 |
🆕 Injected fetch no longer covers the artifact upload path |
packages/provider-revyl/src/artifact-upload.ts:41 |
🆕 An empty build is reported as storage refusing an upload that was never sent |
Reviewed with this repository's own Sentinel configuration (64dd30eae755).
💬 Talking to Sentinel
In a finding's thread, reply with:
| Command | What it does |
|---|---|
@apex-sentinel-staging note <context> |
Adds context; Sentinel re-checks the cited code |
@apex-sentinel-staging pivot <why> |
Says the finding is wrong; Sentinel re-checks the cited code |
@apex-sentinel-staging like |
Marks the finding as useful |
@apex-sentinel-staging dislike <why> |
Marks it as not useful, so it is not raised again |
On this conversation, comment @apex-sentinel-staging review to run a full review once again.
There was a problem hiding this comment.
Apex Sentinel: 2 new findings on 4835963. The verdict and the full list are in the summary comment.
- 🟡 Minor · Injected fetch no longer covers the artifact upload path ·
packages/provider-revyl/src/revyl-client.ts:364 - 🟡 Minor · An empty build is reported as storage refusing an upload that was never sent ·
packages/provider-revyl/src/artifact-upload.ts:41
|
The upload path is still unproven against real storage at 4835963, so this needs one live run before merge. The late request error handling from the earlier review (#5337 (comment)) is now fixed, and the code diff has no other open problem. The install route ( The inline thread on late request errors is fixed at this head, so it can be resolved: #5337 (comment). The other four threads do not apply and can be resolved. The fixture dropping The only failing check is Body rules. It grades the PR title and body against docs/agents/pull-requests.md, not code, so it is likely unrelated to the diff. The body lacks a tested SHA and receipt in Validation, and its Before / after section is prose instead of base and head calls with output. The other 19 checks pass. No conflicts are known. No tests were run here. The new tests were traced by reading them against the code. Not verified here: that Before merge, the live install above is required. After that, fix the PR body so Body rules passes. |
Summary
The build uploads only to an HTTPS URL from the Revyl API that resolves to a public address, over a connection to that approved address. Private, loopback and link-local hosts are refused, redirects are refused, and the Revyl bearer token is never attached.
website/docs/docs/revyl.mdnotes that a backend returning private storage URLs cannot install local builds.Before / after
Before: the upload URL went straight to
fetch, so an internal host could receive the build.After:
uploadRevylArtifactrequireshttps:and approves the URL withapproveDownloadSourceUrl. It sends a PUT withhttps.requestandagent: false, using alookuppinned to the approved address. The URL host still sets SNI, certificate checks and Host. No pooled socket or proxy agent can skip the pin.A request error at any time fails the upload. The body is exactly the stat'ed size. An empty or shortened file fails with
revyl_upload_unreachable.Reasons:
revyl_upload_destination_refused,revyl_upload_rejected(with status),revyl_upload_unreachable.Validation
Tested at 4835963:
artifact-upload.test.ts15 passed, provider-revyl tests 46 passed, hosted CI green. Removing the late error listener or the byte check fails its test.Production delta versus 0.22: about +82 lines.
Risk: no live Revyl run yet;
connectreturns HTTP 401 "Invalid API key" with the available key. A live install receipt follows once a working key is available.