Skip to content

Run package substitution tests outside the parallel suite#1276

Open
gerrod3 wants to merge 1 commit into
pulp:mainfrom
gerrod3:fix/parallel-substitution-tests
Open

Run package substitution tests outside the parallel suite#1276
gerrod3 wants to merge 1 commit into
pulp:mainfrom
gerrod3:fix/parallel-substitution-tests

Conversation

@gerrod3

@gerrod3 gerrod3 commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Remove @pytest.mark.parallel from test_disallow_package_substitution and test_package_substitution_allowed_by_default
  • These tests upload a different artifact under the shelf-reader-0.1.tar.gz filename, leaving incorrect global content that breaks parallel PyPI JSON checks (e.g. test_pypi_json)

Test plan

  • CI passes on test (pulp) without test_pypi_json digest mismatches
  • Substitution tests still pass in the non-parallel phase

Made with Cursor

Tests that upload a different artifact under the shelf-reader tar.gz
filename leave incorrect global content that can break parallel PyPI JSON
checks. Legit shelf-reader uploads and syncs remain parallel.

Assisted-by: Cursor
Co-authored-by: Cursor <cursoragent@cursor.com>
Comment on lines 203 to 276
@@ -272,7 +271,6 @@ def test_disallow_package_substitution(
assert repo.latest_version_href.endswith("/2/")


@pytest.mark.parallel
def test_package_substitution_allowed_by_default(
monitor_task,
python_bindings,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it safe to omit delete_orphans_pre here?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If other tests need a clean Pulp then they should call delete_orphans_pre. The general thinking behind tests is that they should remove any object they create, but artifacts and content are fine to leave hanging around.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants