phacility/phabricator · error · Exception
This diff (" ") is not associated with a repository. A diff…
Error message
This diff ("%s") is not associated with a repository. A diff must belong to a tracked repository to be built by CircleCI. What it means
Association guard in DifferentialDiff::getCircleCIGitHubRepositoryURI: the diff object has no repository PHID set (getRepositoryPHID returned empty), so CircleCI build generation cannot proceed. This interface must produce a GitHub repository URI for the change, and a diff that is not linked to a tracked repository has no such URI to return.
Solutions
- Ensure the revision/diff is created against a repository Phabricator tracks (e.g. via 'arc diff' from a working copy of a tracked repo)
- Check that the repository the diff was pushed to is not archived or untracked in Phabricator's repository configuration
- If the diff predates repository association, create a new diff from a proper working copy so it inherits the repository PHID
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at src/applications/differential/storage/DifferentialDiff.php:579 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/04d076054725f812.
Report an issue: GitHub.
Appendix: source
Thrown at src/applications/differential/storage/DifferentialDiff.php:579
pht('The URI of the staging repository.'),
'repository.staging.ref' =>
pht('The ref name for this change in the staging repository.'),
);
}
public function newBuildableEngine() {
return new DifferentialBuildableEngine();
}
/* -( HarbormasterCircleCIBuildableInterface )----------------------------- */
public function getCircleCIGitHubRepositoryURI() {
$diff_phid = $this->getPHID();
$repository_phid = $this->getRepositoryPHID();
if (!$repository_phid) {
throw new Exception(
pht(
'This diff ("%s") is not associated with a repository. A diff '.
'must belong to a tracked repository to be built by CircleCI.',
$diff_phid));
}
$repository = id(new PhabricatorRepositoryQuery())
->setViewer(PhabricatorUser::getOmnipotentUser())
->withPHIDs(array($repository_phid))
->executeOne();
if (!$repository) {
throw new Exception(
pht(
'This diff ("%s") is associated with a repository ("%s") which '.
'could not be loaded.',
$diff_phid,
$repository_phid));
}View on GitHub (pinned to 5720a38cfe)