-
Notifications
You must be signed in to change notification settings - Fork 119
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
bot no longer autostarts CI? #235
Comments
Thanks for reporting! You're definitively onto something, seeing this in the logs:
After that, the bot process dies and starts up again few seconds later. Not sure if all the above is related to the fatal explosion at the bottom, but sharing those logs anyway. |
That's my fault, I guess, though I might be triggering a bug elsewhere. I deleted the unused (I thought) staging branches, since we'll never do a v7.x release again (and can make a staging branch if we really needed it). But, I'm a bit confused, why should @richardlau 's PR, |
These lines are interesting, too. I suspect that the bot has no longer necessary (but still running) code that is checking whether commits cherry-pick clean onto LTS branches, except that I think we removed that feature (inability to cherrypick happens all the time, but doesn't mean they won't cherry pick when the whole branch is picked down), and we certainly don't care if commits don't pick clean onto unsupported release lines.
I'm going to repush those staging branches, but I think this is indicative of a code cleanup needed in the bot. |
I pushed v6.x-staging and v7.x-staging. Perhaps the issue should be retitled? |
Those log lines are from https://github.com/nodejs/github-bot/blob/b6e54da9741460fd85fda1931bfb3aeaaba4fc28/scripts/attempt-backport.js. Given that it references 7, 6 and 4 which are long EOL it either needs updating or removal: github-bot/scripts/attempt-backport.js Lines 9 to 12 in b6e54da
|
probably removal, along with github-bot/scripts/attempt-backport.js Lines 52 to 54 in b6e54da
github-bot/scripts/attempt-backport.js Lines 24 to 41 in b6e54da
github-bot/scripts/attempt-backport.js Lines 73 to 153 in b6e54da
|
So it looks like jobs are now attempted to start but something's still going wrong, e.g. nodejs/node#28098 (comment)
|
With #237 rolled out, we luckily have more error details to work with:
|
IIRC we've seen this happen before when changes has been made in Jenkins, including plugin upgrades, does that ring a bell to anyone in @nodejs/build? |
I'm not aware of anything that's changed on our end. There were some plugin security updates earlier this week but I didn't update them because they didn't seem to impact us. Maybe someone else did though. There's some updates queued right now so I've run them and restarted Jenkins. Maybe try again now to see if that's fixed anything. |
Thanks for the quick reply. Good point about also logging the body, snook it into master now (7ced2a7). I'll post an example later when I see this error happening again. |
The 403 response body consists of HTML, where the only human readable message I see is: <h1>Access Denied</h1><p class="error">nodejs-github-bot is missing the Job/Build permission</p> @nodejs/jenkins-admins help? |
sorry, I'm not sure what's up with this, the bot has this config:
in the node-test-pull-request-lite-pipeline job, it has that build token (replaced here with
I'm hesitant to just add one of those teams or the user itself to Jenkins without understanding how we got here. There's 3 obvious reasons that I see:
Aside from that 🤷♂ |
As the bot is does not have permission to trigger Jenkins Lite-CI builds for some reason at the moment, and there's feedback about these error comments not being useful to collaborators anyways, those comments are muted for now. Ideally github-bot maintainers should get notified about these errors, as they're obviously not meant to be raised at all. But using node core collaborators as proxy, manually telling bot maintainers about errors surely isn't idealy either. Refs nodejs#238 Refs nodejs#235 (comment)
As the bot is does not have permission to trigger Jenkins Lite-CI builds for some reason at the moment, and there's feedback about these error comments not being useful to collaborators anyways, those comments are muted for now. Ideally github-bot maintainers should get notified about these errors, as they're obviously not meant to be raised at all. But using node core collaborators as proxy, manually telling bot maintainers about errors surely isn't idealy either. Refs #238 Refs #235 (comment)
@mmarchini from the sound of your work related to nodejs/node#34089, this might suddenly start working again since the bot gets privileges enough to start CI? Or wouldn't that affect the existing Jenkins token the bot is already using? |
Ahhhh, I thought I saw an auto started CI in one PR. Yeah, my guess is this should be working now. |
There it is: nodejs/node#34558 (comment) The bot is alive! |
Hooray! Thanks for diving into getting those privileges fixed 💯 |
For some reason, this only worked once 🤔 Probably not worth reopening though, once we have the auto start via label on nodejs/node, collaborators will be able to add the label while opening the PR, therefore starting a full CI run right away :) (we also have Actions now that make the -lite pipeline redundant, we might consider disabling that functionality if the bot starts autorunning -lite again) |
Opened a PR to remote Lite-CI since it starts but fails instantly. |
Opened a new PR (nodejs/node#28076) an hour ago and the bot hasn't autostarted a lite CI run as expected.
The text was updated successfully, but these errors were encountered: