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

(IGNORE THIS PR) - HTTPS in package.json / homepage #375

Closed
wants to merge 1 commit into from

Conversation

phillipj
Copy link
Member

Hi there,

please ignore this PR. I'm testing a custom Jenkins job made to report Jenkins CI build statuses inline in PRs. I need an actual PR to play with.

Refs #358

@gdams gdams added the CI label Feb 28, 2017
@gdams
Copy link
Member

gdams commented Feb 28, 2017

@phillipj thanks for doing this work!

@gdams
Copy link
Member

gdams commented Feb 28, 2017

@phillipj it would be nice to just have 3 jobs shown in the pending checks: eg: Jenkins CI: $NODE_VERSION

SO

Jenkins CI: V4 - checking for errors
Jenkins CI: V6 - checking for errors
Jenkins CI: V7 - checking for errors

@phillipj
Copy link
Member Author

@gdams thanks for following along! I assumed you meant $NODE_VERSION since that is what your recent example had.

I'm still experimenting a with the curl / shell scripts executed when job starts/succeeds/fails.

If I find something that works, I'll try to automate one build started resulting in all three Node.js versions tested as you have requested.

@gdams
Copy link
Member

gdams commented Feb 28, 2017

yes that's perfect, we don't really want the individual machines to report back, just the overall job :)

@gdams
Copy link
Member

gdams commented Feb 28, 2017

@phillipj is there a reason that it links to the osx job rather than the overall job ?

@phillipj
Copy link
Member Author

It seems to push the "started status" for every child job (axis in Jenkins terms) as they are started. I'm still looking, but haven't found the correct Jenkins setting making started status is only reported once by the overall job (matrix in Jenkins terms).

FYI gotta leave soon, might have to continue working on this another day.

@gdams
Copy link
Member

gdams commented Feb 28, 2017

It's pretty much there tbh, once the job is finished it reverts to showing the overall job

@gdams
Copy link
Member

gdams commented Feb 28, 2017

@phillipj I have set the job up to run citgm on the "$GIT_REMOTE_REF parameter rather than using the $BRANCH parameter

@gdams
Copy link
Member

gdams commented Feb 28, 2017

@phillipj this is really cool, and I think it's working fine as is. Lets see if we can get the github-bot to automate kicking off the job with GIT_REMOTE_REF parameter when we give it a certain command I think we are done :)

@phillipj
Copy link
Member Author

phillipj commented Feb 28, 2017 via email

@gdams
Copy link
Member

gdams commented Feb 28, 2017

I have just changed it so that instead of installing with NPM we use:

git clone https://github.com/nodejs/citgm.git
cd citgm
git fetch origin $GIT_REMOTE_REF:testBranch
git checkout testBranch
npm install

@phillipj
Copy link
Member Author

phillipj commented Mar 1, 2017

I'm not a Jenkins expert, so suggestions getting v4, v6 and v7 triggered automagically would be much appreciated.

First thought that came into mind was getting another level of matrix in the mix, but I might be going in the wrong direction (?).

@jbergstroem any thoughts?

                                       <Build with params>
                            ------------------------------------------
                               /                |                  \
                              /                 |                   \
 (new matrix?)              v4                  v6                  v7
                            |                   |                    |
                        --------            ---------            ---------
                       /        \          /         \          /         \
 (current matrix)  fedora22   debian8   fedora22   debian8   fedora22   debian8

@gdams
Copy link
Member

gdams commented Mar 1, 2017

@phillipj There are two ways to do this:

  1. Use the jenkins api to automatically kick off the 3 jobs on the PR branch, one on v4, v6 and v7

  2. Make a jenkins flow which passes the parameters down to each job, I can do this if you like ?

@gibfahn
Copy link
Member

gibfahn commented Mar 1, 2017

Make a jenkins flow which passes the parameters down to each job, I can do this if you like ?

Of course only a Jenkins Admin can create the job, so @phillipj would have to create a new citgm job. Once that's done we can edit it. EDIT: @mhdawson created one for us.

@gdams
Copy link
Member

gdams commented Mar 1, 2017

@phillipj I have set up a pipeline job for the CI job that will run all 3 versions in parallel, all you will need to do is run the job with the git ref as a parameter and it will do all the rest: https://ci.nodejs.org/job/citgm-continuous-integration-pipeline/.

Should just be a case of getting the github-bot to kick off the pipeline with an API request

@phillipj
Copy link
Member Author

phillipj commented Mar 7, 2017

Sorry for dropping the ball on this. Haven't had the time to work on this lately, hoping to squeeze in some hours this week tho.

@gdams nice work on the pipeline 👍

So the next step now is triggering that pipeline via the bot by mentioning @nodejs-github-bot in a comment?

@gdams
Copy link
Member

gdams commented Mar 7, 2017

yup that would be ideal perhaps by commenting @nodejs-github-bot run CI or something. BUT it can only be by a member of the nodejs/citgm team

@addaleax
Copy link
Member

@nodejs-github-bot run CI

@phillipj
Copy link
Member Author

Thx @addaleax 👍 At first glance no webhook request seemed to be delivered to the bot because of that comment.. I'm suspecting the current webhook setup for the bot on this repo doesn't send comment events, which is required for this to work.

I've been testing it with a webhook that sends all events. Though I'm guessing checking the Issue comment checkbox as shown below, should do the trick.

screen shot 2017-04-14 at 22 21 12

@addaleax
Copy link
Member

@nodejs-github-bot run CI

@nodejs-github-bot
Copy link
Collaborator

@addaleax build started: https://ci.nodejs.org/job/citgm-continuous-integration-pipeline/

@gdams gdams closed this Apr 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants