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

hashar created this task.Apr 2 2020, 2:33 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptApr 2 2020, 2:33 PM
hashar added a comment.EditedApr 2 2020, 2:34 PM

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

LarsWirzenius added a comment.EditedApr 2 2020, 2:50 PM

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

hashar closed this task as Resolved.Apr 2 2020, 3:25 PM

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