phacility/phabricator · error · Exception

No commit exists with identifier

Error message

No commit exists with identifier "%s".

What it means

Lookup failure in DiffusionUpdateCoverageConduitAPIMethod::execute: the repository resolved fine, but DiffusionCommitQuery found no commit in that repository matching the supplied commit identifier. The coverage report references a commit Phabricator has not discovered or imported yet, so there is no commit row to attach coverage data to.

Solutions

  1. Wait for Phabricator's daemons to discover and import the commit, then re-run the coverage update
  2. Verify the commit identifier string is the full, correct hash for the repository's VCS
  3. If discovery is stalled, check the daemon/worker logs for the repository and re-trigger discovery
Defensive patterns

Strategy: retry

When it happens

Trigger: Thrown at src/applications/diffusion/conduit/DiffusionUpdateCoverageConduitAPIMethod.php:58 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of phacility/phabricator@5720a38cfe (2026-08-21). Data as JSON: /api/errors/8792a900b092a35b. Report an issue: GitHub.

Appendix: source

Thrown at src/applications/diffusion/conduit/DiffusionUpdateCoverageConduitAPIMethod.php:58

    $repository_phid = $request->getValue('repositoryPHID');
    $repository = id(new PhabricatorRepositoryQuery())
      ->setViewer($viewer)
      ->withPHIDs(array($repository_phid))
      ->executeOne();

    if (!$repository) {
      throw new Exception(
        pht('No repository exists with PHID "%s".', $repository_phid));
    }

    $commit_name = $request->getValue('commit');
    $commit = id(new DiffusionCommitQuery())
      ->setViewer($viewer)
      ->withRepository($repository)
      ->withIdentifiers(array($commit_name))
      ->executeOne();
    if (!$commit) {
      throw new Exception(
        pht('No commit exists with identifier "%s".', $commit_name));
    }

    $branch = PhabricatorRepositoryBranch::loadOrCreateBranch(
      $repository->getID(),
      $request->getValue('branch'));

    $coverage = $request->getValue('coverage');
    $path_map = id(new DiffusionPathIDQuery(array_keys($coverage)))
      ->loadPathIDs();

    $conn = $repository->establishConnection('w');

    $sql = array();
    foreach ($coverage as $path => $coverage_info) {
      $sql[] = qsprintf(
        $conn,
        '(%d, %d, %d, %s)',

View on GitHub (pinned to 5720a38cfe)