-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Combine Drone release steps #9338
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
Combine Drone release steps #9338
Conversation
Codecov Report
@@ Coverage Diff @@
## master #9338 +/- ##
==========================================
- Coverage 41.42% 41.41% -0.01%
==========================================
Files 568 568
Lines 74045 74045
==========================================
- Hits 30671 30669 -2
- Misses 39547 39552 +5
+ Partials 3827 3824 -3
Continue to review full report at Codecov.
|
I don't see how this does change things as checked out directory are shared between steps except if there are not in the same pipeline. Also imho js/css build step should be in different drone step |
Yes, they should be shared but the only logical explanation for #9324 is that they aren't for some reason. I do think it should be possible to produce a working release locally via |
So embedding works (we can see this with vendor'd css/js, as well as templates are embedded, this means go generate with bindata env is working. I'm hesitant to merge this without testing, luckily drone allows us to run specific pipelines via CLI. I will test this change via CLI (which will allow me to also put in some debugging into drone that'll show more info (ex. Edit: woops. I had this page loaded up before your most recent comment @silverwind, I had same thought except after you :) |
This change means we lose testing on node10 doesn't it? |
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.
Just ran drone exec --pipeline release-master
with the changes I suggested to this PR and it builds as expected.
Thank you for this PR @silverwind :)
@zeripath nope, this is just for the release steps, the node10 container is still in the testing pipeline. |
@techknowlogick Can you also debug an existing step in master? To understand why it's not worked, maybe this can help avoid similar errors in the future. |
Oh, I know what's going on! I can't believe I missed it. The build & static step are run at the same time, this means that even though the files exist where they should, the go generate command ends up being run before the JS/CSS files are finished being generated. the "depends_on" needs to be removed from each step in the release pipelines to force each step to be run in sequence. |
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.
Blocking per my most recent comment.
@techknowlogick thanks for finding it. It's now clear to me that as soon as a |
Fixes missing JS/CSS because drone did unwanted parallelization of the js/css task and the generate task. Combined the tasks into one and made 'make release' work standalone. Fixes: go-gitea#9324 Fixes: go-gitea#9362
815bf08
to
ad01e10
Compare
Squashed and added new commit message. |
One more tweak pushed which make |
One more tweak: Removed useless The |
|
Thanks @silverwind for all of your work on this :) |
See #9324. I don't know if this will fix the issue but it seems worth a try to land this on master just to watch the release-master task run. If it does not work out, we can revert it.