Page MenuHomePhabricator

wikibase/javascript-api composer package is not installable (mainly due to a repo move)
Closed, ResolvedPublic

Description

Builds of the wikibase docker images are currently failing due to this.
https://travis-ci.org/wmde/wikibase-docker/jobs/422572315

 - Installing wikibase/javascript-api (2.2.2): Downloading (failed)    Failed to download wikibase/javascript-api from dist: The "https://api.github.com/repos/wikimedia/mediawiki-extensions-WikibaseJavaScriptApi/zipball/64d0f11dc3357e72b60344dd516e48d62b7100fa" file could not be downloaded (HTTP/1.1 404 Not Found)
    Now trying to download from source
  - Installing wikibase/javascript-api (2.2.2): Cloning 64d0f11dc3
                                                                                                                                   
  [RuntimeException]                                                                                                               
  Failed to clone https://github.com/wikimedia/mediawiki-extensions-WikibaseJavaScriptApi.git via https, ssh protocols, aborting.  
                                                                                                                                   
  - https://github.com/wikimedia/mediawiki-extensions-WikibaseJavaScriptApi.git                                                    
    Cloning into '/Wikibase/vendor/wikibase/javascript-api'...                                                                     
    remote: Invalid username or password.                                                                                          
    fatal: Authentication failed for 'https://github.com/wikimedia/mediawiki-extensions-WikibaseJavaScriptApi.git/'                
                                                                                                                                   
  - git@github.com:wikimedia/mediawiki-extensions-WikibaseJavaScriptApi.git                                                        
    Cloning into '/Wikibase/vendor/wikibase/javascript-api'...                                                                     
    Host key verification failed.                                                                                                  
    fatal: Could not read from remote repository.                                                                                  
                                                                                                                                   
    Please make sure you have the correct access rights                                                                            
    and the repository exists.                                                                                                     
                                                                                                                                   
install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--no-suggest] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--ignore-platform-reqs] [--] [<packages>]...
The command '/bin/sh -c composer install --no-dev' returned a non-zero code: 1

It looks like the primary cause was a repo move from https://github.com/wikimedia/mediawiki-extensions-WikibaseJavaScriptApi to wikibase-javascript-api

Event Timeline

Change 456396 had a related patch set uploaded (by Addshore; owner: Addshore):
[wikibase/javascript-api@master] Re add basic composer.json (Needed to update info on packagist)

https://gerrit.wikimedia.org/r/456396

I have got access to the package on packagist, but it require a composer.json file to be on master in order to update the git URL to a new one.

Change 456396 merged by jenkins-bot:
[wikibase/javascript-api@master] Re add basic composer.json (Needed to update info on packagist)

https://gerrit.wikimedia.org/r/456396

This should now be resolved, the package on packagist points to the right place, but it seems the API requests might take some time to start reporting the update URL

Still open as the package is still not installable:

Addshore renamed this task from https://github.com/wikimedia/mediawiki-extensions-WikibaseJavaScriptApi has vanished causing wikibase/javascript-api composer package to break to wikibase/javascript-api composer package is not installable (mainly due to a repo move).Aug 31 2018, 7:22 AM
Addshore triaged this task as High priority.
Addshore updated the task description. (Show Details)

This likely relates to issue with packagist:

But these are marked as resolved so I'll keep digging.

After trying a few more things on our side I have added a comment to the issue linked above on the packagist issue tracker: https://github.com/composer/packagist/issues/451#issuecomment-417581365

As there was no responce on the old ticket on github I created a new one @ https://github.com/composer/packagist/issues/947

Fixed by doing what is described in https://github.com/composer/packagist/issues/947#issuecomment-419182935:

It appears the source URLs are updated for branches (e.g. dev-master), but URLs for any tags aren't.

I was able to work around this by deleting the tags and manually updating. Tags showed up, and the URLs were accurate.