Page MenuHomePhabricator

Git hashes for SyntaxHighlight_GeSHi not recognised in Phabricator (due to Pygments fork repo import)
Closed, ResolvedPublic

Event Timeline

Krinkle raised the priority of this task from to Needs Triage.
Krinkle updated the task description. (Show Details)
Krinkle added a project: Phabricator.
Krinkle subscribed.

Weird, why the difference in behavior?

Weird, why the difference in behavior?

Figured it out. The plain hash is ambiguous in Phabricator because there is a fork of the SyntaxHighlight_GeSHi repo as SyntaxHighlight_Pygments. It has since been archived, but it did get imported to Phabricator.

Gerrit doesn't have duplicate entries of the commits as Gerrit only is aware of changed reviewed/merged through its system. So it only has commits in the Pygments repo from after the repos diverged. The ones from before are exclusively indexed as belonging to the Geshi repo.

rESHG7a46e84d69a3: ResourceLoaderGeSHiModule: Cache file mtime of __FILE__
rESHG7a46e84d69a3: ResourceLoaderGeSHiModule: Cache file mtime of __FILE__

also {rESHP7a46e84d69a3c912ba9e3c19c0943dba13026ae3}

rESHG4ebdd607f5de: ResourceLoaderGeSHiModule: Use GESHI_VERSION instead of file mtime
rESHG4ebdd607f5de: ResourceLoaderGeSHiModule: Use GESHI_VERSION instead of file mtime

also {rESHP4ebdd607f5de4fbdf2cfba732452c4df239847c8}

Let's nuke that repo?

Aklapper renamed this task from Git hashes for mediawiki/extensions/SyntaxHighlight_GeSHi not recognised in Phabricator to Git hashes for SyntaxHighlight_GeSHi not recognised in Phabricator (due to Pygments fork repo import).Jan 20 2016, 12:53 PM
Aklapper triaged this task as Low priority.
Aklapper set Security to None.
Aklapper added a subscriber: demon.

Let's nuke that repo?

+1 if that has no other side effects.

mediawiki/extensions/SyntaxHighlight_Pygments, which was created and only used for a very short time before we realised the mistake and then archived it again.

Due to this bad repo, and the correct one (_GeSHi) both existing in Phab, all commits that exist in both repo's history are ambiguous to Phab, and thus not linked. All commits between 2009 and 2017 are affected, despite the bad repo only having been used for a month, this is because we imported the Git history at the time (proper fork).

Aklapper claimed this task.

Resolved by deleting that repository:

aklapper@phab1004:~$ sudo /srv/phab/phabricator/bin/remove destroy rESHP

This object will be destroyed forever:

    - rESHP (PhabricatorRepository) rESHP mediawiki/extensions/SyntaxHighlight_Pygments

    Are you absolutely certain you want to destroy this object? [y/N] y

Destroying objects...
Destroying PhabricatorRepository rESHP...
[2023-06-08 16:40:41] EXCEPTION: (Exception) Unknown edge constant "25"! at [<phabricator>/src/infrastructure/edges/type/PhabricatorEdgeType.php:214]
arcanist(), ava(), phabricator(), translations(), wmf-ext-misc()
  #0 <#2> PhabricatorEdgeType::getByConstant(string) called at [<phabricator>/src/infrastructure/edges/editor/PhabricatorEdgeEditor.php:179]
  #1 <#2> PhabricatorEdgeEditor::buildEdgeSpecs(string, string, string) called at [<phabricator>/src/infrastructure/edges/editor/PhabricatorEdgeEditor.php:78]
  #2 <#2> PhabricatorEdgeEditor::removeEdge(string, string, string) called at [<phabricator>/src/infrastructure/edges/engineextension/PhabricatorEdgesDestructionEngineExtension.php:32]
  #3 phlog(Exception) called at [<phabricator>/src/infrastructure/edges/engineextension/PhabricatorEdgesDestructionEngineExtension.php:39]
  #4 PhabricatorEdgesDestructionEngineExtension::destroyObject(PhabricatorDestructionEngine, PhabricatorRepository) called at [<phabricator>/src/applications/system/engine/PhabricatorDestructionEngine.php:88]
  #5 PhabricatorDestructionEngine::destroyObject(PhabricatorRepository) called at [<phabricator>/src/applications/system/management/PhabricatorSystemRemoveDestroyWorkflow.php:158]
  #6 PhabricatorSystemRemoveDestroyWorkflow::execute(PhutilArgumentParser) called at [<arcanist>/src/parser/argument/PhutilArgumentParser.php:492]
  #7 PhutilArgumentParser::parseWorkflowsFull(array) called at [<arcanist>/src/parser/argument/PhutilArgumentParser.php:377]
  #8 PhutilArgumentParser::parseWorkflows(array) called at [<phabricator>/scripts/setup/manage_remove.php:21]
Permanently destroyed 1 object.
      - Database records for repository "rESHP" were destroyed, but this
        script does not remove working copies on disk. If you also want to
        destroy the repository working copy, manually remove
        "/srv/repos/ESHP/".

Exception shown 63 times thus edited for readability; underlying issue is https://we.phorge.it/T15125