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

webhook "build-site.sh already running" #2760

Open
richardlau opened this issue Sep 10, 2021 · 9 comments
Open

webhook "build-site.sh already running" #2760

richardlau opened this issue Sep 10, 2021 · 9 comments

Comments

@richardlau
Copy link
Member

Reported as happened with 16.9.0 and now has happened with 16.9.1 -- publishing the release blog post to https://github.com/nodejs/nodejs.org is triggering the webhook but the logs show it is discarded as the website is currently being built

https://nodejs.org/github-webhook.log

event="push", match="ref == "refs/heads/master" && repository.full_name == "nodejs/nodejs.org"", exec="/home/nodejs/build-site.sh nodejs"
Wed Sep 08 2021 08:02:24 GMT+0000 (Coordinated Universal Time)
Took 295248 ms
stdout: build-site.sh already running
event="push", match="ref == "refs/heads/master" && repository.full_name == "nodejs/nodejs.org"", exec="/home/nodejs/build-site.sh nodejs"
Fri Sep 10 2021 19:54:04 GMT+0000 (Coordinated Universal Time)
Took 147 ms
stdout: build-site.sh already running
event="push", match="ref == "refs/heads/master" && repository.full_name == "nodejs/nodejs.org"", exec="/home/nodejs/build-site.sh nodejs"
Fri Sep 10 2021 19:54:04 GMT+0000 (Coordinated Universal Time)
Took 23 ms
@richardlau
Copy link
Member Author

nodejs/nodejs.org#4105 was my original publish (not picked up as OP).
I've just pushed nodejs/nodejs.org#4106 and it appears to be working 🤷.

@richardlau
Copy link
Member Author

Possibly a race with check-build-site.sh triggering a website rebuild and the webhook coming in while it's still in progress?

@XhmikosR
Copy link
Contributor

Probably unrelated but it seems that the live site hasn't been updated with the latest patch from the repo. Could the https://nodejs.org/github-webhook.log be rotated more frequently? Now it's huge making it hard to view/search it.

@Trott
Copy link
Member

Trott commented Mar 2, 2022

https://nodejs.org/github-webhook.log is giving me a 403. Is that to be expected and I need a login or something?

@richardlau
Copy link
Member Author

https://nodejs.org/github-webhook.log is giving me a 403. Is that to be expected and I need a login or something?

No, not expected. Maybe a side effect of #2840? cc @rvagg

@rvagg
Copy link
Member

rvagg commented Mar 2, 2022

fixed in #2882

@github-actions
Copy link

This issue is stale because it has been open many days with no activity. It will be closed soon unless the stale label is removed or a comment is made.

@github-actions github-actions bot added the stale label Dec 28, 2022
@targos targos reopened this Mar 15, 2023
@targos targos added never stale and removed stale labels Mar 15, 2023
@targos
Copy link
Member

targos commented Mar 15, 2023

Idea: When the webhook is called, create an empty file that means "rebuild is needed".
In build-site.sh, make the build in a loop. at the end of the loop, if the file exists, delete it and build again, otherwise break.

@nschonni
Copy link
Member

Probably need to do it with some queue, because you could get out of order publishing with polling alone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants