Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: use pull request creator from repo-tools, not testeng-ci #137

Merged

Conversation

kdmccormick
Copy link
Member

@kdmccormick kdmccormick commented Jun 5, 2024

Description

testeng-ci is deprecated in favor of repo-tools.
See the DEPR [1] and the PR that moved pull_request_creator to repo-tools [2].

This also includes some cosmetic changes to the upgrade PRs.

Before:

  • branch == jenkins/upgrade-python-requirements-{id}
  • title == Python Requirements Update
  • commit == chore: Updating Python Requirements

After:

  • branch == repo-tools/upgrade-python-requirements-{id}
  • title == chore: Upgrade Python requirements
  • commit == chore: Upgrade Python requirements

NOTE: This leaves behind a testeng-ci reference in the repo-health job. We need to figure out the future of the edx-repo-health repo. This will be a future task [3]

[1] openedx/public-engineering#265
[2] openedx/repo-tools#517
[3] #138

Testing

I tested this on the XBlock repo:

testeng-ci is deprecated in favor of repo-tools [1]

This includes some cosmetic changes to the upgrade PRs.

Before:
* branch == jenkins/upgrade-python-requirements-{id}
* title  == Python Requirements Update
* commit == chore: Updating Python Requirements

After:
* branch == repo-tools/upgrade-python-requirements-{id}
* title  == chore: Upgrade Python requirements
* commit == chore: Upgrade Python requirements

NOTE: This leaves behind a testeng-ci reference in the repo-health job.
We need to figure out whether to fix the repo health dashboard or
deprecate it. This will a follow up task after [1] is closed.

[1] https://github.com/openedx/testeng-ci/issues/419
pip install -r requirements/base.txt
git clone https://github.com/openedx/repo-tools.git
cd $GITHUB_WORKSPACE/repo-tools
pip install -e '.[pull_request_creator]'
Copy link
Contributor

Choose a reason for hiding this comment

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

What about just installing it from PyPI?

https://pypi.org/project/edx-repo-tools/0.9.0/

Copy link
Member Author

Choose a reason for hiding this comment

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

🔥

Copy link
Member Author

Choose a reason for hiding this comment

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

@feanil Can you review openedx/repo-tools#523 ? It'll just push the pull_request_creator change to pypi.

.github/workflows/upgrade-python-requirements.yml Outdated Show resolved Hide resolved
.github/workflows/bulk_repo_update.yml Outdated Show resolved Hide resolved
Copy link
Contributor

@feanil feanil left a comment

Choose a reason for hiding this comment

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

Looks good once the new version of the pull request creator has been published to PyPI

@kdmccormick kdmccormick merged commit e2fbf6d into openedx:master Jun 7, 2024
1 check passed
@kdmccormick kdmccormick deleted the kdmccormick/testeng-ci-to-repo-tools branch June 7, 2024 16:31
@kdmccormick
Copy link
Member Author

It works! openedx/XBlock#758

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.

2 participants