Page MenuHomePhabricator

Wikimedia CI is failing for REL1_35 (both core and extension repos) due to missing wikimedia/avro package
Closed, ResolvedPublicBUG REPORT

Description

wikimedia/avro went away on github (possibly due to T278569, although it seems like that got reversed). This is breaking CI for REL1_35 branches, including for MW extensions.

Example: https://integration.wikimedia.org/ci/job/quibble-composer-mysql-php73-noselenium-docker/38814/console

...
[13.4MiB/2.21s]   - Locking wikimedia/avro (v1.9.0)
...
[17.4MiB/2.23s]   - Downloading wikimedia/avro (v1.9.0)

[17.2MiB/2.64s]     Failed to download wikimedia/avro from dist: The "https://api.github.com/repos/wikimedia/avro-php/zipball/b2e0c9d750da03d95ba979215397f62a6121ddea" file could not be downloaded (HTTP/2 404 ):
{"message":"Not Found","documentation_url":"https://docs.github.com/rest/reference/repos#download-a-repository-archive"}
[17.2MiB/2.64s]     Now trying to download from source
[17.2MiB/2.66s]   - Syncing wikimedia/avro (v1.9.0) into cache


In Git.php line 471:
                                                                               
  [RuntimeException]                                                           
  Failed to clone https://github.com/wikimedia/avro-php.git via https, ssh pr  
  otocols, aborting.                                                           
                                                                               
  - https://github.com/wikimedia/avro-php.git                                  
    Cloning into bare repository '/cache/composer/vcs/https---github.com-wiki  
  media-avro-php.git'...                                                       
    remote: Support for password authentication was removed on August 13, 202  
  1.                                                                           
    remote: Please see https://docs.github.com/en/get-started/getting-started  
  -with-git/about-remote-repositories#cloning-with-https-urls for information  
   on currently recommended modes of authentication.                           
    fatal: Authentication failed for 'https://github.com/wikimedia/avro-php.g  
  it/'                                                                         
                                                                               
  - git@github.com:wikimedia/avro-php.git                                      
    Cloning into bare repository '/cache/composer/vcs/https---github.com-wiki  
  media-avro-php.git'...                                                       
    error: cannot run ssh: No such file or directory                           
    fatal: unable to fork

See also T329605

Event Timeline

wikimedia/avro went away on github (possibly due to T278569, although it seems like that got reversed).

The avro-php git repository has been archived in Gerrit by https://gerrit.wikimedia.org/r/c/avro-php/+/865209 . All files have been removed in that last commit. The repository is synced from Gerrit to GitHub and the tags are still present https://github.com/wikimedia/avro-php/tags

Looks like composer fails to git clone over https. Maybe cause on CI we use an oauth token to workaround the api/download rate limits:

composer config -g github-oauth.github.com "${COMPOSER_GITHUB_OAUTHTOKEN}"

Then I don't see why it would fail solely for that repository?

The summary from T278569#8613493 and below is the GitHub mirrored repository has been deleted as part of a routine cleanup. As a result avro-php could no more be retrieved by composer from GitHub ;)