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

Alert if website is down/not up-to-date. #226

Open
LukeMoll opened this issue Mar 5, 2024 · 0 comments · May be fixed by #228
Open

Alert if website is down/not up-to-date. #226

LukeMoll opened this issue Mar 5, 2024 · 0 comments · May be fixed by #228
Labels
enhancement GitHub Actions Relating to existing or new GitHub Actions workflows. Correct test failures don't count.

Comments

@LukeMoll
Copy link
Member

LukeMoll commented Mar 5, 2024

Since the website is hosted on Runciman, occasionally something falls over that means that the website goes down, or it doesn't update when a new commit is pushed to GitHub. This may go unnoticed for some time.

To make the Infrastructure team's lives easier, a simple "cron job" could be set up using GitHub Actions. This could check:

  • That the website responds to HTTP requests
  • That the Git commit SHA in the HTML comment at the start of the response matches the current HEAD of main. For an example, try View Source on any HackSoc.org page, or see git.jinja2.

Especially when this job is failing, email notifications could be spammy. For this reason, the job should not run too often (daily at most).

See also:
https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#schedule

@LukeMoll LukeMoll added enhancement GitHub Actions Relating to existing or new GitHub Actions workflows. Correct test failures don't count. labels Mar 5, 2024
@LukeMoll LukeMoll linked a pull request Mar 7, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement GitHub Actions Relating to existing or new GitHub Actions workflows. Correct test failures don't count.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant