Skip to content

Cleanup#1008

Open
mdellweg wants to merge 5 commits intopulp:mainfrom
mdellweg:cleanup
Open

Cleanup#1008
mdellweg wants to merge 5 commits intopulp:mainfrom
mdellweg:cleanup

Conversation

@mdellweg
Copy link
Member

No description provided.

@mdellweg mdellweg marked this pull request as ready for review February 26, 2026 13:17
@github-actions github-actions bot removed the wip label Feb 26, 2026
Copy link
Member

@pedro-psb pedro-psb left a comment

Choose a reason for hiding this comment

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

There are lot of changes in the before_install / install scripts. From reading it that looks fine, but I would like to see a test PR.
Btw, looking much better, thanks!

echo "No formatting change needed"
fi
fi

Copy link
Member

Choose a reason for hiding this comment

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

The convenience about this (idea) was having a separate commit for formatting, because the CI update PRs squash all changes from plugin-templates in a single PR. But In the end I think this wasn't even working properly, since we have a format call on the plugin-template apply itself.

Copy link
Member

Choose a reason for hiding this comment

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

👍

if: "steps.create_pr_changelog.outputs.pull-request-number"
env:
GH_TOKEN: "{{ '${{ secrets.RELEASE_TOKEN }}' }}"
continue-on-error: true
Copy link
Member

Choose a reason for hiding this comment

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

We've seen some flaky bugs with changes aggregation but 99% it just works.
And we've reviewed the fragment on the PRs already. I'm fine with that.



def check_pyproject_dependencies(repo, from_commit, to_commit):
def check_pyproject_dependencies(repo: Repo, from_commit:str, to_commit:str) -> list[str]:
Copy link
Member

Choose a reason for hiding this comment

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

Why black didn't complain about that from_commit:str in the CI here?
If this file is applied at the target repository and we run black against it, it will fail.

return 1

branches = [branch for branch in available_branches if branch in branches]
branches.reverse()
Copy link
Member

Choose a reason for hiding this comment

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

Reverse doesn't sort the branches. Maybe .sort(reverse=True)?


{% include 'header.j2' %}

set -euo pipefail
Copy link
Member

Choose a reason for hiding this comment

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

Can you put a headline comment here with what is the responsability of this script.
Similar to how you've added in templates/github/.github/workflows/scripts/before_script.sh.j2

cmd_prefix bash -c "usermod -a -G wheel pulp"
echo
echo "# pip list outside the container"

Copy link
Member

Choose a reason for hiding this comment

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

I don't see the pip list foor outside the container.

Copy link
Member

Choose a reason for hiding this comment

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

Hmm, it's on the install.sh. I guess before_script is after install, right? We can move it here, then.

Copy link
Member

Choose a reason for hiding this comment

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

It would be nice to have the github grouping thing, if you agree.

echo ::group::GROUP_NAME
...
echo ::endgroup::

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