# Enable back failing the build on error logs in the CI

**URL:** <https://forum.xwiki.org/t/enable-back-failing-the-build-on-error-logs-in-the-ci/18999>\
**Category:** Development\
**Tags:** proposal\
**Created:** [October 19, 2026, 3:12pm UTC](https://forum.xwiki.org/t/enable-back-failing-the-build-on-error-logs-in-the-ci/18999 "2026-10-19T15:12:28Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![surli](https://forum.xwiki.org/user_avatar/forum.xwiki.org/surli/32/2687_2.png) [@surli](https://forum.xwiki.org/u/surli)\
**Post date:** [October 19, 2026, 3:12pm UTC](https://forum.xwiki.org/t/enable-back-failing-the-build-on-error-logs-in-the-ci/18999/1 "2026-10-19T15:12:28Z")

</div>

Hi everyone,

we decided in [Remove log validation for functional tests?](https://forum.xwiki.org/t/remove-log-validation-for-functional-tests/6026) to remove failing the CI in case of error or warning logs. This was supposed to be a temporary measure but 7 years later we still have it, and the problem is that we’re starting to see some regression not caught because console error logs are ignored in the CI.

So I propose we enable back failing the build in case of console error logs during tests in the CI. I already started to fix the existing error logs found, as of today the latest check show only 2 errors remaining to handle.

Note that I’m only talking about **error** in logs: the proposal is to keep ignoring warnings for now.

My proposal to apply this is by doing the following:

1. Fix latest found error logs and validate on master that there’s no error logs for 1 or 2 days
2. Put back failing on error logs on master and see how it goes for 1 or 2 weeks
3. If it’s validated, evaluate for also failing on errors LTS branches: in theory it should mostly be about cherry-picking fixes that might have been forgotten

WDYT?

---

<div class="post-metadata">

**Author:** ![mleduc](https://forum.xwiki.org/user_avatar/forum.xwiki.org/mleduc/32/2328_2.png) [@mleduc](https://forum.xwiki.org/u/mleduc)\
**Post date:** [October 19, 2026, 3:23pm UTC](https://forum.xwiki.org/t/enable-back-failing-the-build-on-error-logs-in-the-ci/18999/2 "2026-10-19T15:23:50Z")

</div>

+1, thanks

---

<div class="post-metadata">

**Author:** ![vmassol](https://forum.xwiki.org/user_avatar/forum.xwiki.org/vmassol/32/6_2.png) [@vmassol](https://forum.xwiki.org/u/vmassol)\
**Post date:** [October 19, 2026, 9:21pm UTC](https://forum.xwiki.org/t/enable-back-failing-the-build-on-error-logs-in-the-ci/18999/3 "2026-10-19T21:21:21Z")

</div>

+1, thanks for picking this up. As tmortagne said in the original thread, the removal was meant to be temporary, and restricting to ERROR + a staged rollout addresses what made it fail in 2019.

Also, if the 2 remaining errors are for the whole build across all jobs (including the environment tests on the various DBs/servlet containers/browsers), that’s really good news and shows we’re in a much better place than in 2019 🙂

A few questions/suggestions:

1. **Scope** : I checked the code and in 2019 we were validating the test console output for `ERROR`, `WARN` and `JavaScript error`. The console is the stdout/stderr of the test JVM, which includes the logs of the XWiki, DB, Solr and browser containers. I guess the idea is to put back `ERROR` in `LogCaptureValidator#SEARCH_STRINGS`? Note that it’s a simple substring match so it’ll catch anything containing `ERROR` in the console, from any container or from the test framework itself. Browser JS errors are not part of it (the docker test framework doesn’t forward the browser console logs ATM), which is fine for a first step IMO.
2. **Configurations** : are the 2 remaining errors from the main master build only, or from all the jobs, including the environment tests? Errors are often config-specific, so if it’s only the main build, we may want to enable it on the main build first and on the environment jobs later.
3. **Handling new errors** : we already have the tools for it in `LogCaptureConfiguration`: `registerExpected` for errors that are normal for the test (e.g. a test triggering an error on purpose) and `registerExcludes` for errors that are bugs to be fixed (displayed at the end of the test class as needing a fix). I’d just suggest that every new exclude references a JIRA issue, so that excludes don’t become a permanent way to silence errors.
4. **Measurement** : could you share how you got the “2 errors remaining” figure, so that others can check the status during steps 1/2 and later on the LTS branches?

Thanks

---

<div class="post-metadata">

**Author:** ![surli](https://forum.xwiki.org/user_avatar/forum.xwiki.org/surli/32/2687_2.png) [@surli](https://forum.xwiki.org/u/surli)\
**Post date:** [October 20, 2026, 7:00am UTC](https://forum.xwiki.org/t/enable-back-failing-the-build-on-error-logs-in-the-ci/18999/4 "2026-10-20T07:00:57Z")

</div>

> [@vmassol](#):
>
> 1. I guess the idea is to put back `ERROR` in `LogCaptureValidator#SEARCH_STRINGS`?

Yes, we can improve afterwards but the idea is to have that as soon as possible.

> [@vmassol](#):
>
> 1. **Configurations** : are the 2 remaining errors from the main master build only, or from all the jobs, including the environment tests? Errors are often config-specific, so if it’s only the main build, we may want to enable it on the main build first and on the environment jobs later.

So far I only checked the logs from the main build, I’ll check the test env builds too right now and update the report.

> [@vmassol](#):
>
> 1. I’d just suggest that every new exclude references a JIRA issue, so that excludes don’t become a permanent way to silence errors.

I would formulate it differently: any new exclude should have a comment explaining it, and a JIRA reference if it’s an error we need to fix: some exclude are there because of problems we don’t control or related to past distributions (in particular in case of upgrade tests) so having a JIRA wouldn’t make sense here.

> [@vmassol](#):
>
> 1. **Measurement** : could you share how you got the “2 errors remaining” figure, so that others can check the status during steps 1/2 and later on the LTS branches?

Here’s the report providing explanation and refreshed state: [Claude Artifact](https://claude.ai/artifact/Fc1iAdyom1yxW4BZAnyjdC?sk=9ToF8qrLVwNEEfrkwqJ5tw)

---

<div class="post-metadata">

**Author:** ![tmortagne](https://forum.xwiki.org/user_avatar/forum.xwiki.org/tmortagne/32/4930_2.png) [@tmortagne](https://forum.xwiki.org/u/tmortagne)\
**Post date:** [October 20, 2026, 7:46am UTC](https://forum.xwiki.org/t/enable-back-failing-the-build-on-error-logs-in-the-ci/18999/5 "2026-10-20T07:46:34Z")

</div>

> [@surli](#):
>
> My proposal to apply this is by doing the following:
> 
> 1. Fix latest found error logs and validate on master that there’s no error logs for 1 or 2 days
> 2. Put back failing on error logs on master and see how it goes for 1 or 2 weeks
> 3. If it’s validated, evaluate for also failing on errors LTS branches: in theory it should mostly be about cherry-picking fixes that might have been forgotten

+1

---

<div class="post-metadata">

**Author:** ![mflorea](https://forum.xwiki.org/user_avatar/forum.xwiki.org/mflorea/32/49_2.png) [@mflorea](https://forum.xwiki.org/u/mflorea)\
**Post date:** [October 20, 2026, 8:44am UTC](https://forum.xwiki.org/t/enable-back-failing-the-build-on-error-logs-in-the-ci/18999/6 "2026-10-20T08:44:16Z")

</div>

+1

Thanks,  
Marius

---

<div class="post-metadata">

**Author:** ![surli](https://forum.xwiki.org/user_avatar/forum.xwiki.org/surli/32/2687_2.png) [@surli](https://forum.xwiki.org/u/surli)\
**Post date:** [October 22, 2026, 12:38pm UTC](https://forum.xwiki.org/t/enable-back-failing-the-build-on-error-logs-in-the-ci/18999/7 "2026-10-22T12:38:47Z")

</div>

Since we have an agreement I opened a ticket to continue the work here: [Loading...](https://jira.xwiki.org/browse/XWIKI-25495)
