Page MenuHomePhabricator

beta-publish-deb fails to find a .deb artifact from parent job
Closed, ResolvedPublic

Description

The beta-publish-deb job keeps failing to fetch *.deb artifacts from the parent job scap-beta-deb. The console shows:

ERROR: Failed to copy artifacts from scap-beta-deb with filter: *.deb

Event Timeline

I am pretty sure it is a race condition, the sequence would be:

scap-beta-deb passes and is a success
scap-beta-deb triggers beta-publish-deb job without waiting
beta-publish-deb looks for the last successful scap-beta-deb build and tries to retrieve the artifacts. It fails
scap-beta-deb archives the artifacts

Change 585506 had a related patch set uploaded (by Hashar; owner: Hashar):
[integration/config@master] jjb: fix race in beta-publish-deb

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

I find it odd that the "Failed to copy artifacts" error happens so often. It happens, in fact, almost every time.

So now we have the proper order:

scap-beta-deb
00:01:28.287 Archiving artifacts
00:01:28.424 [PostBuildScript] - [INFO] Executing post build scripts.
00:01:28.425 Waiting for the completion of beta-publish-deb
00:01:28.480 beta-publish-deb #470 started.

:]

Change 585506 merged by jenkins-bot:
[integration/config@master] jjb: fix race in beta-publish-deb

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