You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
platform upgrade: post-activation lineage check fails on a stale deployments read ("changed concurrently after activation") #868
void platform upgrade <installation> --yes on void@1.10.0 (upgrading from 1.9.1) failed during the Worker cutover with:
platform: Worker void-platform-tail changed concurrently after activation; refusing to overwrite the newer deployment.
Nothing else had deployed to that Worker. Every deployment entry on the platform Workers that day was a Void platform activation … or Void platform restoration … written by these CLI runs. The upgrade stopped mid-cutover, and the hosted applications answered 503 until the upgrade was re-run. The CLI's own recovery command (void platform upgrade <installation> --yes) failed once more the same way, on the api Worker this time, and then completed on the second retry. The applications were unavailable for about 12 minutes in total.
Where it comes from
In dist/platform-lifecycle-*.mjs (1.10.0), the activation path runs versions.deploy for the new version and then reads the deployment list once:
constdeploymentsAfterActivation=awaitreadPlatformWorkerDeployments(...);constlineage=classifyPlatformWorkerDeploymentLineage(deploymentsAfterActivation,uploadedVersionId,previousDeploymentId);if(lineage.kind==="concurrent-after"){ ... thrownewError(`... changed concurrently after activation ...`)}
classifyPlatformWorkerDeploymentLineage returns concurrent-after whenever deployments[0] does not yet run only the uploaded version at 100%. The deployments list is read immediately after versions.deploy, so a read that is stale for a moment (the new deployment not yet listed first) looks the same as a real concurrent deployment. A later read of the same Worker's deployment history showed the activation as expected, with no foreign deployment.
Expected
Treat a stale read as a transient condition and do not abort the cutover over it. For example:
Re-read the deployment list a few times with a short backoff while deployments[0] is still the previous deployment (previousDeploymentId). Throw concurrent-after only when the head is a deployment that is neither the previous one nor the new one.
Optionally, look the new deployment up by the id or message returned from versions.deploy instead of relying on list order.
It happened twice in a row on two different platform Workers (tail, then api), and the third run succeeded with nothing changed in between. That points to a read-after-write timing window rather than a real concurrent deployer.
Happy to provide timestamps or a redacted CLI stream if useful.
Activity
Retry stale deployment reads after platform activation, closes voidze…
fix: pre-release audit findings since v1.10.0 (#874)
fix(platform): name the failing credential in deploy, repair and upgr…