Skip to content

Improved error messages for failed YAML tests - #3335

Merged
mnocon merged 2 commits into
5.0from
improve-yaml-error-msg
Jul 31, 2026
Merged

Improved error messages for failed YAML tests#3335
mnocon merged 2 commits into
5.0from
improve-yaml-error-msg

Conversation

@mnocon

@mnocon mnocon commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

Target: 5.0, 6.0

Clicking the filename:linenumber takes you to the failing example

@github-actions

Copy link
Copy Markdown

Preview of modified files: no change to preview.

@mnocon
mnocon requested a review from a team July 31, 2026 13:40
@ibexa-workflow-automation-1
ibexa-workflow-automation-1 Bot requested review from adriendupuis, dabrt and julitafalcondusza and removed request for a team July 31, 2026 13:40
Comment thread tests/Yaml/YamlTest.php Outdated

self::fail(sprintf(
'YAML parse error in %s at line %d [hash:%s]: %s',
'YAML parse error in %s:%d [hash:%s]: %s',

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it "in" or "at" when the path contains the line num?

@github-actions

github-actions Bot commented Jul 31, 2026

Copy link
Copy Markdown

Summary

Status Count
🔍 Total 736640
🔗 Unique 14759
✅ Successful 6190
⏳ Timeouts 0
🔀 Redirected 3
👻 Excluded 730449
❓ Unknown 0
🚫 Errors 1
⛔ Unsupported 0

Errors per input

Errors in site/resources/new_in_doc/index.html

  • [ERROR] file:///home/runner/work/documentation-developer/documentation-developer/repositories/userdoc-4.6/site/content_management/block_reference/index.html#bestsellers-block (at 19441:14) | Cannot find fragment

Redirects per input

Redirects in site/ai/mcp/mcp_guide/index.html

Redirects in site/ai/mcp/mcp_usage/index.html

Full Github Actions output

Comment thread tests/Yaml/YamlTest.php Outdated
@mnocon
mnocon merged commit c0db3ef into 5.0 Jul 31, 2026
8 of 10 checks passed
@mnocon
mnocon deleted the improve-yaml-error-msg branch July 31, 2026 14:50
mnocon added a commit that referenced this pull request Jul 31, 2026
* Improved error messages for failed YAML tests

* Apply suggestion from @mnocon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants