Actions
Issue #6481
closedtest_delete_middle_version is sporadically failing
Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
Category:
-
Sprint/Milestone:
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Sprint 70
Quarter:
Description
This happens roughly one in six times (16 out of a sample of 100).
INCIDENTS=0; for i in $(seq 100); do pulpcore-manager test pulpcore.tests.functional.api.using_plugin.test_repo_versions.AddRemoveRepoVersionTestCase.test_delete_middle_version || INCIDENTS=$(($INCIDENTS + 1)); done ; echo $INCIDENTS
Delete a middle version.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/vagrant/devel/pulpcore/pulpcore/tests/functional/api/using_plugin/test_repo_versions.py", line 363, in test_delete_middle_version
self.assertIn(self.content[index]['artifact'], artifact_paths)
AssertionError: '/pulp/api/v3/artifacts/e4d865d1-3335-4ddb-aeaa-81ac3802722a/' not found in {'/pulp/api/v3/artifacts/09dd8e86-11c3-4ca5-8769-c8023c338328/', '/pulp/api/v3/artifacts/3431332e-2ea9-4076-aa72-c4529eed135b/', '/pulp/api/v3/artifacts/f49a9851-8455-4b3a-b700-2f3a47c8ad22/', '/pulp/api/v3/artifacts/fbf7ccf0-fdc3-4118-886b-a8738587fb9e/', '/pulp/api/v3/artifacts/22081b36-cbad-4ad5-a9c2-266f06472d40/'}```
Actions
Adds orphan cleanup to begining of repository version tests
fixes: #6481 https://pulp.plan.io/issues/6481