-
Notifications
You must be signed in to change notification settings - Fork 10k
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
Upgrade to Gulp 4 #10266
Upgrade to Gulp 4 #10266
Conversation
/botio-linux preview |
It looks like the global @brendandahl Could you perhaps update |
What version of gulp-cli do we need on the bots? |
Hm, it looks like |
It looks like Gulp 4 got the |
35e66cf
to
1cf959c
Compare
/botio-linux preview |
From: Bot.io (Linux m4)ReceivedCommand cmd_preview from @timvandermeij received. Current queue size: 0 Live output at: http://54.67.70.0:8877/bd8161ddbad6eaf/output.txt |
From: Bot.io (Linux m4)SuccessFull output at http://54.67.70.0:8877/bd8161ddbad6eaf/output.txt Total script time: 4.87 mins Published |
/botio lint |
From: Bot.io (Linux m4)ReceivedCommand cmd_lint from @timvandermeij received. Current queue size: 0 Live output at: http://54.67.70.0:8877/f2bf6e0cd97ea82/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_lint from @timvandermeij received. Current queue size: 0 Live output at: http://54.215.176.217:8877/a845b3e3ac01316/output.txt |
From: Bot.io (Linux m4)SuccessFull output at http://54.67.70.0:8877/f2bf6e0cd97ea82/output.txt Total script time: 0.76 mins
|
From: Bot.io (Windows)SuccessFull output at http://54.215.176.217:8877/a845b3e3ac01316/output.txt Total script time: 2.28 mins
|
/botio unittest |
From: Bot.io (Linux m4)ReceivedCommand cmd_unittest from @timvandermeij received. Current queue size: 0 Live output at: http://54.67.70.0:8877/a8203b5f0d8a8d3/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_unittest from @timvandermeij received. Current queue size: 0 Live output at: http://54.215.176.217:8877/30e2d4e4534fa1c/output.txt |
From: Bot.io (Linux m4)FailedFull output at http://54.67.70.0:8877/a8203b5f0d8a8d3/output.txt Total script time: 2.38 mins
|
From: Bot.io (Windows)SuccessFull output at http://54.215.176.217:8877/30e2d4e4534fa1c/output.txt Total script time: 4.60 mins
|
/botio-linux unittest |
From: Bot.io (Linux m4)ReceivedCommand cmd_unittest from @timvandermeij received. Current queue size: 0 Live output at: http://54.67.70.0:8877/1b45bb6179e5dab/output.txt |
From: Bot.io (Linux m4)SuccessFull output at http://54.67.70.0:8877/1b45bb6179e5dab/output.txt Total script time: 2.37 mins
|
@Snuffleupagus Could you perhaps review this so we can resolve the build failures? |
Looks generally OK, based on a quick look :-) However, there's two things which seem odd/wrong, but in the interest of un-breaking the builds I suppose that you could fix them in a follow-up PR (assuming it happens relatively soon) rather than here:
|
FYI: This should fix tests on master |
I'm not entirely sure what happened for the |
Well, that's because you Gulp 4 don't have dependencies! Here's more info and how to fix: https://fettblog.eu/gulp-4-parallel-and-series/ CtrlF TL;DR gulp.task("after-this", afterThis));
gulp.task("do-this-1", ["after-this"], doThis1));
gulp.task("do-this-2", ["after-this"], doThis2)); --> gulp.task("after-this", afterThis));
gulp.task("do-this-1", doThis1));
gulp.task("do-this-2", doThis2));
gulp.series("after-this", gulp.parallel("do-this-1", "do-this-2"); |
This required the following changes in the Gulpfile: - Defining a series of tasks is no longer done with arrays, but with the `gulp.series` function. The `web` target is refactored to use a smaller number of tasks to prevent tasks from running multiple times. - Getting all tasks must now be done through the task registry. - Tasks that don't return anything must call `done` upon completion. Moreover, this upgrade allows us to use the latest Node.js on Travis CI again.
1cf959c
to
fa85f86
Compare
/botio-linux preview |
From: Bot.io (Linux m4)ReceivedCommand cmd_preview from @timvandermeij received. Current queue size: 0 Live output at: http://54.67.70.0:8877/1ec3a87e513f2b5/output.txt |
From: Bot.io (Linux m4)SuccessFull output at http://54.67.70.0:8877/1ec3a87e513f2b5/output.txt Total script time: 1.67 mins Published |
/botio test |
From: Bot.io (Linux m4)ReceivedCommand cmd_test from @timvandermeij received. Current queue size: 0 Live output at: http://54.67.70.0:8877/d7c45c1c832a660/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_test from @timvandermeij received. Current queue size: 0 Live output at: http://54.215.176.217:8877/d4e7ff4823b07db/output.txt |
From: Bot.io (Linux m4)SuccessFull output at http://54.67.70.0:8877/d7c45c1c832a660/output.txt Total script time: 17.80 mins
|
From: Bot.io (Windows)SuccessFull output at http://54.215.176.217:8877/d4e7ff4823b07db/output.txt Total script time: 23.16 mins
|
/botio lint |
From: Bot.io (Linux m4)ReceivedCommand cmd_lint from @timvandermeij received. Current queue size: 0 Live output at: http://54.67.70.0:8877/dcff95b202cdfec/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_lint from @timvandermeij received. Current queue size: 0 Live output at: http://54.215.176.217:8877/4ef198432368768/output.txt |
From: Bot.io (Linux m4)SuccessFull output at http://54.67.70.0:8877/dcff95b202cdfec/output.txt Total script time: 0.77 mins
|
From: Bot.io (Windows)SuccessFull output at http://54.215.176.217:8877/4ef198432368768/output.txt Total script time: 2.36 mins
|
Thank you for the feedback, @Snuffleupagus and @wojtekmaj! The builds should succeed again now, we got rid of quite a few old dependencies and Node.js doesn't report vulnerabilities anymore. I'll create a follow-up issue for the remaining improvements. |
This required the following changes in the Gulpfile:
gulp.series
function. Theweb
target is refactored to use a smaller number of tasks to prevent tasks from running multiple times.done
upon completion.Moreover, this upgrade allows us to use the latest Node.js on Travis CI again.
Fixes most parts of #10177.