Project

Profile

Help

Task #3487

closed

Fix Pulp2 jenkins job failure

Added by ipanova@redhat.com about 6 years ago. Updated about 5 years ago.

Status:
CLOSED - COMPLETE
Priority:
Normal
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Platform Release:
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Sprint 34
Quarter:

Description

PR builer fails testcase on fedora and yet passes on rhel. [0]

[0] https://github.com/pulp/pulp_docker/pull/229

It looks like env. script is different. Some observations from email thread discussion.

The restorecon fix looks good to me; for the remaining problem, it seems
to be a bug in the test environment/script.

I noticed that the failure is *exactly* what would happen if the fix was
not actually present.  From adding extra debug logs I found that the
tests on Fedora are using the code from pulp-docker-plugins installed
via RPM, rather than the version from git.  So, the test is running
against the old, buggy version of the code, and it correctly detects the
bug it was meant to detect.

See here in RHEL7: the test loads the code from the Jenkins workspace,
and as expected, order of last two steps is RedirectFileStep,
AtomicDirectoryPublishStep:

https://pulp-jenkins.rhev-ci-vms.eng.rdu2.redhat.com/job/unittest-pulp_docker-pr/469/node-type=rhel7-np/consoleText

-------------------- >> begin captured logging << --------------------
test_publish_steps: DEBUG: publish_steps comes from /home/jenkins/workspace/unittest-pulp_docker-pr/node-type/rhel7-np/plugin/plugins/pulp_docker/plugins/distributors/publish_steps.py
pulp.plugins.util.publish_step: DEBUG: Copying tree from /tmp/tmpWYEMZP/work to /tmp/tmpWYEMZP/publish/v2/master/foo/1520898214.84
pulp.plugins.util.misc: DEBUG: Clearing out directory: /tmp/tmpWYEMZP/publish/v2/master/foo
test_publish_steps: DEBUG: publish_steps comes from /home/jenkins/workspace/unittest-pulp_docker-pr/node-type/rhel7-np/plugin/plugins/pulp_docker/plugins/distributors/publish_steps.py
test_publish_steps: DEBUG: Child of step: <class 'pulp_docker.plugins.distributors.publish_steps.PublishBlobsStep'>
test_publish_steps: DEBUG: Invariant check: /tmp/tmpWYEMZP/publish/v2/app/foo.json => /tmp/tmpWYEMZP/publish/v2/master/foo/1520898214.84/foo.json
test_publish_steps: DEBUG: Child of step: <class 'pulp_docker.plugins.distributors.publish_steps.PublishManifestsStep'>
test_publish_steps: DEBUG: Invariant check: /tmp/tmpWYEMZP/publish/v2/app/foo.json => /tmp/tmpWYEMZP/publish/v2/master/foo/1520898214.84/foo.json
test_publish_steps: DEBUG: Child of step: <class 'pulp_docker.plugins.distributors.publish_steps.PublishManifestListsStep'>
test_publish_steps: DEBUG: Invariant check: /tmp/tmpWYEMZP/publish/v2/app/foo.json => /tmp/tmpWYEMZP/publish/v2/master/foo/1520898214.84/foo.json
test_publish_steps: DEBUG: Child of step: <class 'pulp_docker.plugins.distributors.publish_steps.PublishTagsStep'>
test_publish_steps: DEBUG: Invariant check: /tmp/tmpWYEMZP/publish/v2/app/foo.json => /tmp/tmpWYEMZP/publish/v2/master/foo/1520898214.84/foo.json
test_publish_steps: DEBUG: Child of step: <class 'pulp_docker.plugins.distributors.publish_steps.RedirectFileStep'>
test_publish_steps: DEBUG: Invariant check: /tmp/tmpWYEMZP/publish/v2/app/foo.json => /tmp/tmpWYEMZP/publish/v2/master/foo/1520898214.84/foo.json
test_publish_steps: DEBUG: Child of step: <class 'pulp.plugins.util.publish_step.AtomicDirectoryPublishStep'>
test_publish_steps: DEBUG: Invariant check: /tmp/tmpWYEMZP/publish/v2/app/foo.json => /tmp/tmpWYEMZP/publish/v2/master/foo/1520898214.84/foo.json
pulp.plugins.util.publish_step: DEBUG: Copying tree from /tmp/tmpWYEMZP/work to /tmp/tmpWYEMZP/publish/v2/master/foo/1520898214.9
pulp.plugins.util.misc: DEBUG: Clearing out directory: /tmp/tmpWYEMZP/publish/v2/master/foo
--------------------- >> end captured logging << ---------------------

Compare with Fedora: the code has been loaded from /usr/lib/python2.7.
The behavior is as it was before the bug was fixed; last two steps are
AtomicDirectoryPublishStep followed by RedirectFileStep:

https://pulp-jenkins.rhev-ci-vms.eng.rdu2.redhat.com/job/unittest-pulp_docker-pr/469/node-type=f27-np/consoleText

-------------------- >> begin captured logging << --------------------
test_publish_steps: DEBUG: publish_steps comes from /usr/lib/python2.7/site-packages/pulp_docker/plugins/distributors/publish_steps.pyc
pulp.plugins.util.publish_step: DEBUG: Copying tree from /tmp/tmppG6u6n/work to /tmp/tmppG6u6n/publish/v2/master/foo/1520898110.38
pulp.plugins.util.misc: DEBUG: Clearing out directory: /tmp/tmppG6u6n/publish/v2/master/foo
test_publish_steps: DEBUG: publish_steps comes from /usr/lib/python2.7/site-packages/pulp_docker/plugins/distributors/publish_steps.pyc
test_publish_steps: DEBUG: Child of step: <class 'pulp_docker.plugins.distributors.publish_steps.PublishBlobsStep'>
test_publish_steps: DEBUG: Invariant check: /tmp/tmppG6u6n/publish/v2/app/foo.json => /tmp/tmppG6u6n/publish/v2/master/foo/1520898110.38/foo.json
test_publish_steps: DEBUG: Child of step: <class 'pulp_docker.plugins.distributors.publish_steps.PublishManifestsStep'>
test_publish_steps: DEBUG: Invariant check: /tmp/tmppG6u6n/publish/v2/app/foo.json => /tmp/tmppG6u6n/publish/v2/master/foo/1520898110.38/foo.json
test_publish_steps: DEBUG: Child of step: <class 'pulp_docker.plugins.distributors.publish_steps.PublishManifestListsStep'>
test_publish_steps: DEBUG: Invariant check: /tmp/tmppG6u6n/publish/v2/app/foo.json => /tmp/tmppG6u6n/publish/v2/master/foo/1520898110.38/foo.json
test_publish_steps: DEBUG: Child of step: <class 'pulp_docker.plugins.distributors.publish_steps.PublishTagsStep'>
test_publish_steps: DEBUG: Invariant check: /tmp/tmppG6u6n/publish/v2/app/foo.json => /tmp/tmppG6u6n/publish/v2/master/foo/1520898110.38/foo.json
test_publish_steps: DEBUG: Child of step: <class 'pulp.plugins.util.publish_step.AtomicDirectoryPublishStep'>
test_publish_steps: DEBUG: Invariant check: /tmp/tmppG6u6n/publish/v2/app/foo.json => /tmp/tmppG6u6n/publish/v2/master/foo/1520898110.38/foo.json
pulp.plugins.util.publish_step: DEBUG: Copying tree from /tmp/tmppG6u6n/work to /tmp/tmppG6u6n/publish/v2/master/foo/1520898110.44
pulp.plugins.util.misc: DEBUG: Clearing out directory: /tmp/tmppG6u6n/publish/v2/master/foo
test_publish_steps: DEBUG: Child of step: <class 'pulp_docker.plugins.distributors.publish_steps.RedirectFileStep'>
test_publish_steps: DEBUG: Invariant check: /tmp/tmppG6u6n/publish/v2/app/foo.json => /tmp/tmppG6u6n/publish/v2/master/foo/1520898110.44/foo.json
--------------------- >> end captured logging << ---------------------

So I conclude that the Jenkins setup or test scripts are buggy.  This
probably resulted in accurate test results for various pull requests
already.
<pre>
Actions #1

Updated by ipanova@redhat.com about 6 years ago

  • Subject changed from Investigaete jenkins job failure to Investigate jenkins job failure
Actions #2

Updated by dalley about 6 years ago

  • Project changed from Pulp to Docker Support
  • Triaged changed from No to Yes
  • Sprint set to Sprint 34
Actions #3

Updated by dalley about 6 years ago

  • Project changed from Docker Support to Pulp
Actions #4

Updated by dkliban@redhat.com about 6 years ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to dkliban@redhat.com
Actions #5

Updated by dkliban@redhat.com about 6 years ago

  • Status changed from ASSIGNED to POST
Actions #6

Updated by dkliban@redhat.com about 6 years ago

  • Status changed from POST to MODIFIED
Actions #7

Updated by bmbouter about 6 years ago

  • Tracker changed from Issue to Task
  • Subject changed from Investigate jenkins job failure to Fix Pulp2 jenkins job failure
  • Status changed from MODIFIED to CLOSED - COMPLETE
  • % Done set to 0

The changes were all in pulp-ci so this code will never go into a release. I've moved it to be a Task and marked as CLOSED - COMPLETE

Actions #8

Updated by bmbouter about 5 years ago

  • Tags Pulp 2 added

Also available in: Atom PDF