Skip to content

Make cli tests run in parallel - #1045

Merged
mdellweg merged 1 commit into
pulp:mainfrom
gerrod3:p-cli-tests
Aug 14, 2026
Merged

Make cli tests run in parallel#1045
mdellweg merged 1 commit into
pulp:mainfrom
gerrod3:p-cli-tests

Conversation

@gerrod3

@gerrod3 gerrod3 commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

https://redhat.atlassian.net/browse/PULP-2236

📜 Checklist

  • Commits are cleanly separated with meaningful messages (simple features and bug fixes should be squashed to one commit)
  • A changelog entry or entries has been added for any significant changes
  • Follows the Pulp policy on AI Usage
  • (For new features) - User documentation and test coverage has been added

See: Pull Request Walkthrough

Comment on lines 164 to 170
else
PULP_CA_BUNDLE="/usr/local/share/ca-certificates/pulp_webserver.crt" make livetest PYTEST_MARK="live and ({{ cli_plugin_markers }})"
PULP_CA_BUNDLE="/usr/local/share/ca-certificates/pulp_webserver.crt" make paralleltest PYTEST_MARK="live and ({{ cli_plugin_markers }})"
fi

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.

This looks like a "is this cli new enough" heuristic. But I believe it's not accurate anymore.
What we can do however (by the new power of uv), is ignore the version of pulp_glue installed for pulpcore completely and run the cli (always the latest release) in an isolated environment.
WDYT?

https://docs.astral.sh/uv/reference/cli/#uv-run--isolated

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.

Which line are you talking about? 166? I'm not sure what you are asking for.

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.

The whole if "test_requirements.txt".
Which is i think rooted in the fact that since pulpcore chooses one version of glue the one of the cli was pinned. But with an isolated environment, we can make that obstacle go away completely. And we would never need to touch an old cli branch because some plugin CI happened to install from it again.

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.

The original if check was because plugins with their own CLI didn't all have the new uv logic in their repo. Maven and ostree still both don't have it. I'll go update them and then update this.

@mdellweg
mdellweg merged commit 635765c into pulp:main Aug 14, 2026
13 checks passed
@gerrod3
gerrod3 deleted the p-cli-tests branch August 14, 2026 12:27
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