Monitoring and incident reporting for docs site builds (prod and stg) #53

Open
opened 2026-06-29 18:23:43 +00:00 by jflory7 · 11 comments
Owner

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:

  • @hricky observed that after recent pushes to docs-fp-o, production rebuilt but staging did not, and that this has happened before.
  • @darknao indicated that reporting in the Matrix room is fine, but @hricky noted that messages can get buried in a busy room.
  • @jflory7 suggested either docs/tickets or docs/docs-fp-o as reporting locations, and raised the idea of automated alerting in Matrix when builds break.

Proposed actions

  1. Document where to report docs site build failures. Decide on a canonical location (e.g. docs/tickets, docs/docs-fp-o, or Matrix) and document it so contributors know where to go.
  2. Investigate why staging sometimes fails to rebuild when production rebuilds successfully from the same push.
  3. Add monitoring or alerting to detect when prod or stg builds fail or diverge. Ideally, post a notification to the #docs:fedoraproject.org Matrix room.
  • #49 — Shared Forgejo Actions workflow for Fedora Docs components (CI for PRs, different scope)
  • #19 — Outdated docsbuilder.sh pulls Antora container w/ EOL nodejs

Assisted-by: Claude Opus 4.6 (1M context)

## 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](https://matrix.to/#/#docs:fedoraproject.org) Matrix room where the following points were raised: - @hricky observed that after recent pushes to `docs-fp-o`, production rebuilt but staging did not, and that this has happened before. - @darknao indicated that reporting in the Matrix room is fine, but @hricky noted that messages can get buried in a busy room. - @jflory7 suggested either `docs/tickets` or `docs/docs-fp-o` as reporting locations, and raised the idea of automated alerting in Matrix when builds break. ## Proposed actions 1. **Document where to report docs site build failures.** Decide on a canonical location (e.g. `docs/tickets`, `docs/docs-fp-o`, or Matrix) and document it so contributors know where to go. 2. **Investigate why staging sometimes fails to rebuild** when production rebuilds successfully from the same push. 3. **Add monitoring or alerting** to detect when prod or stg builds fail or diverge. Ideally, post a notification to the [#docs:fedoraproject.org](https://matrix.to/#/#docs:fedoraproject.org) Matrix room. ## Related issues - #49 — Shared Forgejo Actions workflow for Fedora Docs components (CI for PRs, different scope) - #19 — Outdated docsbuilder.sh pulls Antora container w/ EOL nodejs --- Assisted-by: Claude Opus 4.6 (1M context)
Author
Owner

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.org on 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:

  • @hricky: Assigned to work on this issue
  • @hricky: Will test whether the Forgejo Actions CI can provide full site build error reporting
  • @hricky: Reach out to @gwmngilfen, who offered to help with monitoring efforts
  • If automated monitoring is in place, a manual reporting procedure may not be needed

Assisted-by: Claude Opus 4.6 (1M context)

_Discussed in [2026-07-14 Fedora Docs Team meeting](https://discussion.fedoraproject.org/t/fedora-docs-team-meeting-2026-07-14/196628)._ --- @hricky volunteered to take on this issue, as it connects to the CI/infrastructure work he is already doing on [docs/tickets#49](https://forge.fedoraproject.org/docs/tickets/issues/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.org` on 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](https://forge.fedoraproject.org/docs/docs-fp-o/pulls/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:** - @hricky: Assigned to work on this issue - @hricky: Will test whether the Forgejo Actions CI can provide full site build error reporting - @hricky: Reach out to @gwmngilfen, who offered to help with monitoring efforts - If automated monitoring is in place, a manual reporting procedure may not be needed <sub>_Assisted-by: Claude Opus 4.6 (1M context)_</sub>
Owner

Proposal: Improve Build Workflow for Fedora Documentation Site

  1. Update and refactor the Containerfile (renamed from Dockerfile).
  2. Create a justfile for local build automation that simplifies the workflow, with recipes for:
  • Container image building
  • Docs site generation
  • Local preview
  1. Document the local workflow and the building process of the site in OpenShift in README.md and/or dedicated documentation pages.
  2. Build the CI workflow to produce the generated documentation site. Defer the decision on artifact storage and deployment to a follow-up discussion once the build workflow is stable.
## Proposal: Improve Build Workflow for Fedora Documentation Site 1. Update and refactor the `Containerfile` (renamed from `Dockerfile`). 2. Create a `justfile` for local build automation that simplifies the workflow, with recipes for: - Container image building - Docs site generation - Local preview 3. Document the local workflow and the building process of the site in OpenShift in `README.md` and/or dedicated documentation pages. 4. Build the CI workflow to produce the generated documentation site. Defer the decision on artifact storage and deployment to a follow-up discussion once the build workflow is stable.

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:

  1. How is the build failures detected? Is there an API to hit, a script to run, or a file to read?
  2. Where does the target for (1) live? I think this is an OpenShift app, right?

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?

So, monitoring. Infra use [Zabbix](https://zabbix.fedoraproject.org) 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: 1. How is the build failures detected? Is there an API to hit, a script to run, or a file to read? 2. Where does the target for (1) live? I think this is an OpenShift app, right? 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?
Owner

I don't have access to Zabbix, but from what I see on the official site it looks neat.

@gwmngilfen wrote in #53 (comment):

  1. How is the build failures detected? Is there an API to hit, a script to run, or a file to read?

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):

2. Where does the target for (1) live? I think this is an OpenShift app, right?

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-o repo 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.

I don't have access to Zabbix, but from what I see on the official site it looks neat. @gwmngilfen wrote in https://forge.fedoraproject.org/docs/tickets/issues/53#issuecomment-1062839: > 1. How is the build failures detected? Is there an API to hit, a script to run, or a file to read? AFAIK, there are some logs, but I don't have access to OpenShift, so I don't know the details. @gwmngilfen wrote in https://forge.fedoraproject.org/docs/tickets/issues/53#issuecomment-1062839: > 2\. Where does the target for (1) live? I think this is an OpenShift app, right? 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](https://forge.stg.fedoraproject.org/playground/docs-fp-o-ci-test/actions?workflow=monitor-timestamp.yaml&actor=0&status=0). --- 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](https://forge.stg.fedoraproject.org/playground/docs-fp-o-ci-test/actions?workflow=site.yaml&actor=0&status=0). Please note that the workflow currently fails because the Containerfile is very different from the one in the `docs-fp-o` repo 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.

I don't have access to Zabbix, but from what I see on the official site it looks neat.

All FAS accounts have guest access, use the "Sign in with Single Sign-on (SAML)" option on https://zabbix.fedoraproject.org

Although Zabbix seems comprehensive, I think it is too complex for our current needs

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.

> I don't have access to Zabbix, but from what I see on the official site it looks neat. All FAS accounts have guest access, use the "Sign in with Single Sign-on (SAML)" option on https://zabbix.fedoraproject.org > Although Zabbix seems comprehensive, I think it is too complex for our current needs 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.
Owner

@gwmngilfen wrote in #53 (comment):

All FAS accounts have guest access, use the "Sign in with Single Sign-on (SAML)" option on https://zabbix.fedoraproject.org

This way I can login, thanks!

@gwmngilfen wrote in #53 (comment):

As you wish - though I'll note Zabbix is only complex in the setup phase...

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):

We already have some OpenShift monitoring for the Forge itself...

I know about the Forge monitoring.

@gwmngilfen wrote in #53 (comment):

Let me know if you want to revisit this, I'll be happy to help out.

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.

@gwmngilfen wrote in https://forge.fedoraproject.org/docs/tickets/issues/53#issuecomment-1356955: > All FAS accounts have guest access, use the "Sign in with Single Sign-on (SAML)" option on https://zabbix.fedoraproject.org This way I can login, thanks! @gwmngilfen wrote in https://forge.fedoraproject.org/docs/tickets/issues/53#issuecomment-1356955: > As you wish - though I'll note Zabbix is only complex in the setup phase... 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 https://forge.fedoraproject.org/docs/tickets/issues/53#issuecomment-1356955: > We already have some OpenShift monitoring for the Forge itself... I know about the Forge monitoring. @gwmngilfen wrote in https://forge.fedoraproject.org/docs/tickets/issues/53#issuecomment-1356955: > Let me know if you want to revisit this, I'll be happy to help out. 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.
Owner

We implemented simple monitoring in docs/docs-fp-o#54.

We implemented simple monitoring in https://forge.fedoraproject.org/docs/docs-fp-o/pulls/54.
Author
Owner

@hricky Thanks for all of your work on this! Is it okay to close this ticket as complete now?

@hricky Thanks for all of your work on this! Is it okay to close this ticket as complete now?
Owner

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.

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.
Author
Owner

Zabbix monitoring would be fantastic to have too.

Zabbix monitoring would be fantastic to have too.

I think that @gwmngilfen will try to implement Zabbix for Fedora Docs

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.

> I think that @gwmngilfen will try to implement Zabbix for Fedora Docs 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.
Sign in to join this conversation.
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
docs/tickets#53
No description provided.