Page MenuHomePhabricator

Jenkins jobs failing with Composer TransportException: 404 Not Found (October 2019)
Closed, ResolvedPublic

Description

... and the issue is back from last month, again:

20:10:56   [Composer\Downloader\TransportException]                                                                                                                                   
20:10:56   The "https://packagist.org/p/provider-2017%2462534e44c7215c59b58e5ae6fba06ba61a46d713507c3a58bd130e1940517d96.json" file could not be downloaded (HTTP/1.1 404 Not Found)

See also:

Event Timeline

Change 546324 had a related patch set uploaded (by Hoo man; owner: Hoo man):
[mediawiki/core@master] HACK! Temporarily hardcode IP for packagist

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

Change 546325 had a related patch set uploaded (by Hoo man; owner: Hoo man):
[mediawiki/vendor@master] HACK! Temporarily hardcode IP for packagist

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

Change 546325 merged by jenkins-bot:
[mediawiki/vendor@master] HACK! Temporarily hardcode IP for packagist

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

Change 546324 merged by jenkins-bot:
[mediawiki/core@master] HACK! Temporarily hardcode IP for packagist

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

With the above patches, core tests pass - however other repositories are still broken. Ugh.

With the above patches, core tests pass - however other repositories are still broken. Ugh.

Yeah, we seem to invoke composer in extension dirs… in order to address this we would (at least if addressing this like I did for core+vendor) also alter all the relevant extension composer.jsons.

Composer seems to also load some global configuration files: https://getcomposer.org/doc/03-cli.md#composer-home-config-json But setting these for all relevant CI builds is probably quite some work.

Composer seems to also load some global configuration files: https://getcomposer.org/doc/03-cli.md#composer-home-config-json But setting these for all relevant CI builds is probably quite some work.

Why? That should be a single config setting that can be shared by all CI. There will be a long tail of custom CI tools (Travis etc) but for most repos this would be a quick fix.

In any case, seems like it's not happening anymore.

In any case, seems like it's not happening anymore.

Nope, still happening, just less frequent (or maybe I just got lucky).

Change 546413 had a related patch set uploaded (by Hashar; owner: Hashar):
[mediawiki/vendor@master] Revert "HACK! Temporarily hardcode IP for packagist"

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

The hack in mediawiki/core might have worked for MediaWiki core itself, but would not work for other repositories that use composer :]

System is back: https://github.com/composer/packagist/issues/940#issuecomment-546829958

Change 546413 merged by jenkins-bot:
[mediawiki/vendor@master] Revert "HACK! Temporarily hardcode IP for packagist"

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