-
Notifications
You must be signed in to change notification settings - Fork 166
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
[WIP] jenkins: add a node-ci pipeline for running tests #1156
Conversation
Should replace node-test-pull-request. In future it should also replace node-test-commit.
Just one note for now: it might not be straightforward to replace |
Makes sense. If I get node-test-pull-request working I'll land this and we can iterate, I'd like to make changes incrementally as much as possible 😁 . A path forward might be to modify this job to do the same thing Or maybe it should continue to be a separate job, IDK. |
This demonstrates my critique of pipelines pretty well - how are our users going to adapt to this? They have to go into the console to find a link to node-test-commit, and the console is full of useless and confusing messages so you have to filter through the blue links. I thought blue-ocean was meant to make these things easier? Is there a way to make this less opaque to the user who doesn't care whether we are using pipelines or traditional jobs? |
Good question
I'd say that's not the end of the world, although a less useless status view of the pipeline would be really useful.
Most of that is debugging info and can be removed. The irrelevant text is greyed out, so it's pretty easy to find the blue links right? This is the minimal console output you can get (AFAIK).
In my experience the only thing blue ocean offers is the ability to show multi-config jobs (i.e. the picture below) and it is currently unbelievably slow to load, even with a super-simple job like this. Apparently there's a bug on their roadmap.
This is definitely a good question, and we should have a look at whether there are any solutions out there. To be honest for me the benefits of pipelines outweigh that cost, but there may well be other costs we haven't hit yet that will make them infeasible. Also the user shouldn't really be looking at |
Actually thinking about it further, if the Blue Ocean bug was fixed, and it's on their roadmap then I think that would resolve the issue. |
Our current plan is not to use pipelines, as I understand from recent discussion, the pipeline experiment was not found to be worth continuing. Closing, but it can be reopened if we ever decide to give pipelines a try again. |
Should hopefully be able to replace node-test-pull-request. In future it might also replace node-test-commit if it's possible to easily subsume it's features. Whether we should end up with one giant pipeline containing all the test jobs is a question for later.
Current progress is mostly documented in the pipeline (in comments).
Note that scripted pipelines have to run on master, but for anything that might be more intensive you can just run a custom script on an executor (see the commented out bit in this script).
For the difference between scripted and declarative pipelines, see this.
Progress:
I haven't tested anything after the start of theSeems to be working okay.node-test-commit
run yet, I assume it will crash immediately after that.Latest run: https://ci.nodejs.org/job/node-ci/16/console
Benefits vs
node-test-pull-request
:TBD if we should keep this name (to make sure we update everything) or just rename this to
node-test-pull-request
if it gets good enough.