Failure#f1
A push that failed during a GitHub outage was reported as successful, so the job was dropped from the queue and its work lost
- Trigger
GitHub, which hosts the index repository, had an outage and gave an unexpected response to the push.
Near: triggered by an unexpected response during
- How it failed
In some corner cases the code that pushes new commits to the index returned a successful status although the push had failed. The job scheduler took the upload as done and removed the job from the queue, so the commits were lost and the published crates did not appear in the index.
Section: Root cause of the outage
- Why defences did not hold
Monitoring covered jobs that fail to execute, and this job was wrongly marked as correct, so nobody was paged. The team calls it luck that two members with access to both the support mailbox and production were online. Logging recorded neither index pushes nor background job runs, and the publish API log line lacked the crate name.
Section: Postmortem
- Impact
Versions of the crates kaze, wasmer-runtime-core and wasmer-win-exception-handler published at 21:17 UTC on 2020-02-20 were missing from the index. The fix reached production 1 hour and 31 minutes after the incident began; deploying it took far longer than expected because changes merged but not yet live lengthened the build and raised the risk. A later check of the database found no other crate affected.
Section: Timeline of events | Section: Postmortem | Near: finds out no other
- Fix
A fix for the misreported success was written by one team member, reviewed by another and deployed directly to production. The broken entries were removed from the database by hand and the reporter asked to upload again. Planned: logging for index publishing, background jobs and the publish API call; a periodic check of index against database that allows for crates still queued and pages on a mismatch; a look at self-healing; and hotfixes branched off the deployed commit.
Section: Resolution | Section: Action items | Section: Postmortem