Skip to content

Add subcommand to dump task profile urls#1173

Merged
mdellweg merged 1 commit intopulp:mainfrom
mdellweg:task_profiling
Apr 22, 2025
Merged

Add subcommand to dump task profile urls#1173
mdellweg merged 1 commit intopulp:mainfrom
mdellweg:task_profiling

Conversation

@mdellweg
Copy link
Copy Markdown
Member

fixes #1172

@mdellweg mdellweg marked this pull request as ready for review April 16, 2025 13:29
@mdellweg mdellweg enabled auto-merge (rebase) April 16, 2025 13:29
Comment thread pulpcore/cli/core/task.py Outdated
uuid = uuid_match.group("uuid")
with requests.session() as session:
for name, url in urls.items():
profile_artifact_path = Path(".") / f"task-{uuid}-{name}"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I'm not against this structure necessarily, but wdyt about creating a directory named task-{uuid} and putting artifacts inside it?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

or even {task_name} - {uuid}.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Creating a deeper directory structure is mainly a matter of taste...
Please have another look.

Copy link
Copy Markdown
Contributor

@dralley dralley Apr 22, 2025

Choose a reason for hiding this comment

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

It's a matter of taste until there's more than one or two artifacts being generated, then it's a practical matter

@mdellweg mdellweg merged commit 8b96b27 into pulp:main Apr 22, 2025
19 checks passed
@mdellweg mdellweg deleted the task_profiling branch April 22, 2025 13:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The CLI should facilitate downloading profile artifacts from tasks

2 participants