Skip to content

"Schema validation error complex type 'actionsRefType': The content model is not determinist" Error Thrown While Generating Tests #920

Open

Description

@JosephLeedy

Actual Behavior

I'm trying to generate tests using a standalone instance of MFTF and Magento 2.4.7-p5, but I am getting this error. It's similar to this bug, which was fixed in Magento 2.4.8.

Here is the relevant portion of the linked error report:

PHP  31. DOMDocument->schemaValidate($filename = '/home/joseph/Development/Tools/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Test/etc/mergedActionGroupSchema.xsd') /home/joseph/Development/Tools/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Config/Dom.php:298
FAILURE: Schema validation error complex type 'actionsRefType': The content model is not determinist.Line: 17

Expected Behavior

MFTF tests should generate without throwing errors.

Additional Details

OS Version: Fedora 41
Magento Version: 2.4.7-p5
MFTF Version: 5.0.4 (Standalone)
PHP Version: 8.3.19
LibXML Version:: libxml2.x86_64 2.12.10-1.fc41*

* Full list of XML libraries:

$ dnf list installed "libxml*"   
Updating and loading repositories:
Repositories loaded.
Installed packages
libxml++.x86_64                                   2.42.3-4.fc41                      fedora
libxml2.i686                                      2.12.10-1.fc41                     <unknown>
libxml2.x86_64                                    2.12.10-1.fc41                     <unknown>
libxml2-devel.x86_64                              2.12.10-1.fc41                     <unknown>
libxmlb.x86_64                                    0.3.22-1.fc41                      <unknown>

Activity

  1. m2-assistant commented on May 2, 2025

    @m2-assistant

    Hi @JosephLeedy. Thank you for your report.
    To speed up processing of this issue, make sure that you provided sufficient information.
    Add a comment to assign the issue: @magento I am working on this


    Join Magento Community Engineering Slack and ask your questions in #github channel.

  2. thai2301 commented on Nov 19, 2026

    @thai2301

    I opened #931 for this. The optional sequence in actionsRefType starts with the returnTags group, whose return element is itself optional, which makes the content model ambiguous; libxml2 2.12+ rejects that. The PR makes return required inside the (still optional) sequence, so valid documents are unchanged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions