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

Automate PR creation when updating steps #2999

Closed
Marigold opened this issue Jul 23, 2024 · 5 comments
Closed

Automate PR creation when updating steps #2999

Marigold opened this issue Jul 23, 2024 · 5 comments
Labels
priority 3 - nice to have wontfix This will not be worked on

Comments

@Marigold
Copy link
Collaborator

Our guide for updating data suggests creating reference and review branches as best practice. We already use etl d draft-pr command which has proven to be handy for automatic PR creation. We could do similar automation for updating data:

  1. Create reference branch
  2. Update steps (by using functions from ETL dashboard)
  3. Commit new steps and push reference branch to Github
  4. Create a review branch with PR

@lucasrodes suggested

Maybe, we want to add that when updating the steps in ETL Dashboard? E.g a checkbox or something ‘create reference and review branches’. Title and name of the branch could be dynamically generated based on the datasets selected for update (edited)

@pabloarosado suggested

I don't think all that can easily be done automatically (because step 2. can get a bit tricky). But maybe there's a better way around it.

It'd make sense to at least create reference & review branches automatically, and then see whether it's worth automating the rest. Leveraging etl d draft-pr could make it relatively easy.

@lucasrodes
Copy link
Member

lucasrodes commented Jul 23, 2024

One minor thing: I'd rename the command to something shorter, so it is easier to adopt by the team.

From the top of my head, I'm thinking etl pr, but I'm open to suggestions.

@larsyencken
Copy link
Collaborator

We discussed that you can suggest to review a subset of commits, to make the review more relevant.

@pabloarosado
Copy link
Contributor

We discussed that you can suggest to review a subset of commits, to make the review more relevant.

Yes, Lars suggested an alternative to creating a reference branch and a subbranch. You can simply create a PR that attempts to merge a branch to master. Then, on the upper left corner, you can choose which commits to consider when reviewing. You can skip the commit(s) that duplicated old code. Once you select the ones you want to consider, we can copy that URL and add it to the description of the PR, to point the reviewer to a more convenient view of the changes.

Screenshot 2024-07-25 at 12 06 08

I haven't tried this workflow yet, but it looks promising. If it works well, we can avoid creating a reference branch (and of course it's corresponding staging server). I'll try it out and update the docs accordingly.

Copy link

stale bot commented Sep 28, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix This will not be worked on label Sep 28, 2024
@Marigold
Copy link
Collaborator Author

Marigold commented Oct 1, 2024

Closing. We tried to automate it, but the process is often too complex and automation hurts rather than helps.

@Marigold Marigold closed this as completed Oct 1, 2024
@larsyencken larsyencken closed this as not planned Won't fix, can't repro, duplicate, stale Oct 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority 3 - nice to have wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

4 participants