Monitoring and incident reporting for docs site builds (prod and stg) #53
Labels
No labels
Contributors' Guidance
Improve written Material
Contributors' Guidance
technical support measures
effort
high
effort
low
effort
medium
good first issue
help wanted
meeting topic
needs changes
needs reporter feedback
needs review
needs vote
priority
high
priority
low
priority
medium
priority
on hold
type/content
type/misc
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
docs/tickets#53
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
When changes are pushed to
docs-fp-o, the production docs site sometimes rebuilds successfully while the staging site does not. This has happened multiple times with no automated detection, sometimes going unnoticed for weeks. There is no documented process for where or how to report these failures.Context
This issue was discussed in the #docs:fedoraproject.org Matrix room where the following points were raised:
docs-fp-o, production rebuilt but staging did not, and that this has happened before.docs/ticketsordocs/docs-fp-oas reporting locations, and raised the idea of automated alerting in Matrix when builds break.Proposed actions
docs/tickets,docs/docs-fp-o, or Matrix) and document it so contributors know where to go.Related issues
Assisted-by: Claude Opus 4.6 (1M context)
Discussed in 2026-07-14 Fedora Docs Team meeting.
@hricky volunteered to take on this issue, as it connects to the CI/infrastructure work he is already doing on docs/tickets#49. @pbokoc described the core problem: the site sometimes fails to build silently, and the OpenShift error logs are only accessible to a few people (currently @pbokoc and @darknao). The ideal solution would be a watchdog connected to OpenShift that alerts in
#docs:fedoraproject.orgon Matrix and publishes error logs publicly. @hricky confirmed that Forgejo Actions build failure alerts have recently been set up and are now posting to#docs:fedoraproject.org, and the CI work in docs/docs-fp-o PR#46 may address some log visibility. However, @pbokoc clarified that the OpenShift logs currently only report fatal errors, not content warnings like broken xrefs or missing images — so there is still a gap between what CI catches and what a full production build reports.Follow-up:
Assisted-by: Claude Opus 4.6 (1M context)
Proposal: Improve Build Workflow for Fedora Documentation Site
Containerfile(renamed fromDockerfile).justfilefor local build automation that simplifies the workflow, with recipes for:README.mdand/or dedicated documentation pages.So, monitoring. Infra use Zabbix to do our monitoring, and I've been working with the COPR folks to enable them to have their own space inside that. They have their own checks, triggers, a Matrix room for alerts, and a UI dashboard to look at.
I think we could perhaps do the same here, if it makes sense. The key questions I have to answer are:
These matter because all the Zabbix config lives in the Infra Ansible repo, which in practice means I need either a host (eg, proxy01 or koji02) to attach checks too. However, I am working on how to store OpenShift monitoring for individual apps (as we have quite a few) so that would work too.
Thoughts?
I don't have access to Zabbix, but from what I see on the official site it looks neat.
@gwmngilfen wrote in #53 (comment):
AFAIK, there are some logs, but I don't have access to OpenShift, so I don't know the details.
@gwmngilfen wrote in #53 (comment):
AFAIK, the script that builds the site is running in OpenShift hourly for the English version, and daily for the translated versions.
Although Zabbix seems comprehensive, I think it is too complex for our current needs. I would suggest a simple solution, at least for now, that I have been testing for a few weeks. It's kind of hackish, but it works and everyone can see if the deployed sites are older than a few hours. You can check it out at Monitor timestamps on Docs sites.
For testing the site building, we can set up a workflow that aims to replicate the process in the Fedora Forge CI. The logs are also visible for everyone. You can check it out at Build container image for testing the Fedora Council Docs. Please note that the workflow currently fails because the Containerfile is very different from the one in the
docs-fp-orepo on the Fedora Forge prod instance. Initially, we will not touch the Dockerfile, so we'll replicate the site build in OpenShift as much as we can.Also please note that the links to the workflows' logs are not permanent, as we will delete the testing repo once we implement the changes in the prod instance.
All FAS accounts have guest access, use the "Sign in with Single Sign-on (SAML)" option on https://zabbix.fedoraproject.org
As you wish - though I'll note Zabbix is only complex in the setup phase, the individual monitoring items can be very simple, and there is a native type for monitoring a file timestamp (which is what your action seems to do?).
We already have some OpenShift monitoring for the Forge itself, and I have an open item to make this more re-usable for other OpenShift apps. Let me know if you want to revisit this, I'll be happy to help out.
@gwmngilfen wrote in #53 (comment):
This way I can login, thanks!
@gwmngilfen wrote in #53 (comment):
That's what I meant and I don't know how much time you have. Also I don't know if I can help with the setup.
@gwmngilfen wrote in #53 (comment):
I know about the Forge monitoring.
@gwmngilfen wrote in #53 (comment):
That would be great, but as I mentioned, I don't know if I can help.
I think we can do both. We can set up the workflows quite easily and quickly, as they are already tested, and we can start setting up Zabbix in the meantime.
We implemented simple monitoring in docs/docs-fp-o#54.
@hricky Thanks for all of your work on this! Is it okay to close this ticket as complete now?
I think that @gwmngilfen will try to implement Zabbix for Fedora Docs. Also as I mentioned in an earlier comment, for testing the site building, I can try to set up a workflow that aims to replicate the process in the Fedora Forge CI. I think this would be useful, so let's leave this issue open for now.
Zabbix monitoring would be fantastic to have too.
Not alone, though. I am willing to work with folks to have monitoring here, but I do not understand the problems space well enough to do it by myself. If there is interest from someone on the team to help set this up, then great - but if you're happy with what you've built here then I would say stick with that.