-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
build: auto-run generation and submit prs #1905
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1905 +/- ##
=========================================
- Coverage 40.5% 37.91% -2.6%
=========================================
Files 5 6 +1
Lines 995 1063 +68
Branches 7 7
=========================================
Hits 403 403
- Misses 592 660 +68
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like the idea of running this as part of sythtool, but my gut is that it might just be better to let synthtool
create the PR, if we want to run this through synthtool
; we have projects in the works to track PRs through the whole stack, and it feels a bit weird that this would have its own approach.
I'm pretty sure we'll know that the PRs that change the whole apis
directory came from API generation, is my thinking.
Aye, thought had occurred to me as well. A few thoughts:
The reason I suddenly started to care - I want to start releasing scoped mini-packages (finally). I started trying to help people solve the angular and react bugs, and at the end of the day we're generating 3.4MB of JavaScript that unsuspecting souls are serving the from the client. Until we have mini-packages ... it's just not going to be reasonable. All that having been said - if you're interested - may be worth chatting with @chingor13 to see how he solved synth+apiary+mini-packages, since I'm pretty sure they have this rolling well in Java land. |
If we're going to make publishing individual clients a priority, I think it would be good for us to pull together a design document, so that I can better understand the goals (I want to be careful about adding such a big change organically; questions come up for me like, do we intend to create dozens of individual npm modules, if so, in what namespace, and will they create confusion with our GAPIC libraries). Also, I'd love to solve the problem of generating PRs in a more holistic way; Could we have a GitHub App that runs both this generation, and our template generation, perhaps updates to the micro-generator as well? (decoupling syntactic changes from upstream API changes). |
Codecov Report
@@ Coverage Diff @@
## master #1905 +/- ##
=========================================
Coverage ? 37.91%
=========================================
Files ? 6
Lines ? 1063
Branches ? 7
=========================================
Hits ? 403
Misses ? 660
Partials ? 0 Continue to review full report at Codecov.
|
If you're feeling good about this approach, I'm comfortable with giving it a shot; we probably shouldn't land until we have some cycles to debug any issues though? |
ab762f3
to
b84a3ab
Compare
I am comfortable with at least trying it - we can always turn it off :) Honestly the thing I'm most scared about is breaking all of synth in nodejs (again) due to timeouts on the synth job. Worst case scenario - it's busted and we just close all the PRs and turn it off 🤷♂ Happy to work out the kinks though. One last thing - I'd like take your inch and turn it into a mile. How do you feel about the github action I just sprinkled in? |
@JustinBeckwith if we have concerns about timeouts in synthtool, I think using a GitHub action might be a good experiment; I believe its timeout is 360 minutes? |
No description provided.