Title: Bot failing to start: `TypeError: glob.sync is not a function` · Issue #376 · nodejs/github-bot · GitHub
Open Graph Title: Bot failing to start: `TypeError: glob.sync is not a function` · Issue #376 · nodejs/github-bot
X Title: Bot failing to start: `TypeError: glob.sync is not a function` · Issue #376 · nodejs/github-bot
Description: @tniessen reports that Jenkins status is still not being posted to pull requests. Looking at https://ci.nodejs.org/job/post-build-status-update runs, e.g. https://ci.nodejs.org/job/post-build-status-update/1837783/flowGraphTable/, I can ...
Open Graph Description: @tniessen reports that Jenkins status is still not being posted to pull requests. Looking at https://ci.nodejs.org/job/post-build-status-update runs, e.g. https://ci.nodejs.org/job/post-build-statu...
X Description: @tniessen reports that Jenkins status is still not being posted to pull requests. Looking at https://ci.nodejs.org/job/post-build-status-update runs, e.g. https://ci.nodejs.org/job/post-build-statu...
Opengraph URL: https://github.com/nodejs/github-bot/issues/376
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Bot failing to start: `TypeError: glob.sync is not a function`","articleBody":"@tniessen [reports](https://openjs-foundation.slack.com/archives/C03BJP63CH0/p1678138229956679?thread_ts=1678104091.867669\u0026cid=C03BJP63CH0) that Jenkins status is still not being posted to pull requests. \r\n\r\nLooking at https://ci.nodejs.org/job/post-build-status-update runs, e.g. https://ci.nodejs.org/job/post-build-status-update/1837783/flowGraphTable/, I can see that although the jobs are green, the HTTP request to the bot has failed:\r\n\r\n\r\nhttps://ci.nodejs.org/job/post-build-status-update/1837783/execution/node/17/\r\n```console\r\nhudson.AbortException: Fail: Status code 408 is not in the accepted range: 100:399\r\n```\r\n\r\nIf I log into the server for the github-bot, I can see that the service isn't running:\r\n```console\r\nroot@infra-rackspace-debian8-x64-1:~# systemctl status github-bot\r\n● github-bot.service - github-bot\r\n Loaded: loaded (/lib/systemd/system/github-bot.service; enabled)\r\n Active: activating (auto-restart) (Result: exit-code) since Tue 2023-03-07 12:19:55 UTC; 41ms ago\r\n Process: 25524 ExecStart=/usr/bin/node server.js (code=exited, status=1/FAILURE)\r\n Main PID: 25524 (code=exited, status=1/FAILURE)\r\n\r\nMar 07 12:19:55 infra-rackspace-debian8-x64-1 systemd[1]: github-bot.service: main process exited, code=exited, status=1/FAILURE\r\nMar 07 12:19:55 infra-rackspace-debian8-x64-1 systemd[1]: Unit github-bot.service entered failed state.\r\nroot@infra-rackspace-debian8-x64-1:~#\r\n```\r\n\r\nand from the syslog:\r\n\r\n```console\r\nMar 7 12:13:26 infra-rackspace-debian8-x64-1 systemd[1]: Started github-bot.\r\nMar 7 12:13:26 infra-rackspace-debian8-x64-1 node[24754]: /home/iojs/github-bot/server.js:13\r\nMar 7 12:13:26 infra-rackspace-debian8-x64-1 node[24754]: glob.sync(scriptsToLoad).forEach((file) =\u003e {\r\nMar 7 12:13:26 infra-rackspace-debian8-x64-1 node[24754]: ^\r\nMar 7 12:13:26 infra-rackspace-debian8-x64-1 node[24754]: TypeError: glob.sync is not a function\r\nMar 7 12:13:26 infra-rackspace-debian8-x64-1 node[24754]: at Object.\u003canonymous\u003e (/home/iojs/github-bot/server.js:13:6)\r\nMar 7 12:13:26 infra-rackspace-debian8-x64-1 node[24754]: at Module._compile (internal/modules/cjs/loader.js:1063:30)\r\nMar 7 12:13:26 infra-rackspace-debian8-x64-1 node[24754]: at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)\r\nMar 7 12:13:26 infra-rackspace-debian8-x64-1 node[24754]: at Module.load (internal/modules/cjs/loader.js:928:32)\r\nMar 7 12:13:26 infra-rackspace-debian8-x64-1 node[24754]: at Function.Module._load (internal/modules/cjs/loader.js:769:14)\r\nMar 7 12:13:26 infra-rackspace-debian8-x64-1 node[24754]: at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)\r\nMar 7 12:13:26 infra-rackspace-debian8-x64-1 node[24754]: at internal/main/run_main_module.js:17:47\r\nMar 7 12:13:26 infra-rackspace-debian8-x64-1 systemd[1]: github-bot.service: main process exited, code=exited, status=1/FAILURE\r\nMar 7 12:13:26 infra-rackspace-debian8-x64-1 systemd[1]: Unit github-bot.service entered failed state.\r\n```","author":{"url":"https://github.com/richardlau","@type":"Person","name":"richardlau"},"datePublished":"2023-03-07T12:20:30.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":11},"url":"https://github.com/376/github-bot/issues/376"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:56e80823-f31c-d8c1-226e-d59a399fd443 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B482:10A5B6:DF4EC7:132613A:6969EF1C |
| html-safe-nonce | cf014a3f23edb5e7ca31e7e580e9fe5b95d340a0adc4e2e2eacc0c241f12a9c5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNDgyOjEwQTVCNjpERjRFQzc6MTMyNjEzQTo2OTY5RUYxQyIsInZpc2l0b3JfaWQiOiI1Nzk2MTY0OTU1OTIzOTM1MDA0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 1155daf85fbe724491fedeab58ac8dbaccfed907b332eba3ce042782f9fa85b6 |
| hovercard-subject-tag | issue:1613331906 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodejs/github-bot/376/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f0364a7346140d618b4046e4852f502d91cba1b7106605a7f1a9fef213ede0bf/nodejs/github-bot/issues/376 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f0364a7346140d618b4046e4852f502d91cba1b7106605a7f1a9fef213ede0bf/nodejs/github-bot/issues/376 |
| og:image:alt | @tniessen reports that Jenkins status is still not being posted to pull requests. Looking at https://ci.nodejs.org/job/post-build-status-update runs, e.g. https://ci.nodejs.org/job/post-build-statu... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | richardlau |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7b32f1c7c4549428ee399213e8345494fc55b5637195d3fc5f493657579235e8 |
| turbo-cache-control | no-preview |
| go-import | github.com/nodejs/github-bot git https://github.com/nodejs/github-bot.git |
| octolytics-dimension-user_id | 9950313 |
| octolytics-dimension-user_login | nodejs |
| octolytics-dimension-repository_id | 55435270 |
| octolytics-dimension-repository_nwo | nodejs/github-bot |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 55435270 |
| octolytics-dimension-repository_network_root_nwo | nodejs/github-bot |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | bdde15ad1b403e23b08bbd89b53fbe6bdf688cad |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width