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

Fuse label_new_pr and label_pr workflows #897

Closed
dhruvkb opened this issue Mar 11, 2023 · 3 comments
Closed

Fuse label_new_pr and label_pr workflows #897

dhruvkb opened this issue Mar 11, 2023 · 3 comments
Labels
💻 aspect: code Concerns the software code in the repository ✨ goal: improvement Improvement to an existing user-facing feature good first issue New-contributor friendly help wanted Open to participation from the community 🟩 priority: low Low priority and doesn't need to be rushed 🧱 stack: mgmt Related to repo management and automations ⛔ status: blocked Blocked & therefore, not ready for work
Projects
Milestone

Comments

@dhruvkb
Copy link
Member

dhruvkb commented Mar 11, 2023

Historical context

The task of labelling a new PR is divided into two workflows because of pre-monorepo reasons. Because the Python code to fetch the related issue and detect labels was located in the WordPress/openverse repo, it had to invoked remotely from all others repos.

The label_new_pr.yml workflow was synced to all repositories, while the label_pr.yml workflow was centralised. The latter was called by the former for all new PRs with info about the PR.

Problem

These workflows are extremely coupled and should be unified into one when there is no multi-repo complexity left. Since the labelling Python code would live in the same repo as all PRs the workflow can directly run it for all incoming PRs.

@dhruvkb dhruvkb added good first issue New-contributor friendly help wanted Open to participation from the community 🟩 priority: low Low priority and doesn't need to be rushed ✨ goal: improvement Improvement to an existing user-facing feature 💻 aspect: code Concerns the software code in the repository ⛔ status: blocked Blocked & therefore, not ready for work 🧱 stack: mgmt Related to repo management and automations labels Mar 11, 2023
@dhruvkb dhruvkb added this to the Monorepo milestone Mar 11, 2023
@openverse-bot openverse-bot added this to Backlog in Openverse Mar 11, 2023
@dhruvkb
Copy link
Member Author

dhruvkb commented Mar 11, 2023

This is ⛔ blocked till the monorepo project is completed.

@dhruvkb dhruvkb moved this from Backlog to Blocked in Openverse Mar 30, 2023
dhruvkb pushed a commit that referenced this issue Apr 14, 2023
* Add rawpixel media metric to popularity recalculation logic

* Add tests to ensure that DDL matches python logic for popularity steps
@dhruvkb dhruvkb removed the ⛔ status: blocked Blocked & therefore, not ready for work label Apr 21, 2023
@dhruvkb dhruvkb moved this from Blocked to Backlog in Openverse Apr 28, 2023
@dhruvkb dhruvkb added the ⛔ status: blocked Blocked & therefore, not ready for work label Oct 6, 2023
@dhruvkb
Copy link
Member Author

dhruvkb commented Oct 6, 2023

This issue is still blocked because the monorepo does not include the WordPress/openverse-infrastructure repo which still uses the label_new_pr workflow. When it is unblocked, #3125 must be reopened and merged.

@dhruvkb dhruvkb closed this as completed Oct 6, 2023
@dhruvkb dhruvkb reopened this Oct 6, 2023
@dhruvkb
Copy link
Member Author

dhruvkb commented Dec 14, 2023

With #3443, we decided to abandon the two separate workflows and now PR labelling is handled by the "PR automations" workflow.

- name: Perform PR labelling

@dhruvkb dhruvkb closed this as completed Dec 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💻 aspect: code Concerns the software code in the repository ✨ goal: improvement Improvement to an existing user-facing feature good first issue New-contributor friendly help wanted Open to participation from the community 🟩 priority: low Low priority and doesn't need to be rushed 🧱 stack: mgmt Related to repo management and automations ⛔ status: blocked Blocked & therefore, not ready for work
Projects
Archived in project
Openverse
  
Backlog
1 participant