certification-tool icon indicating copy to clipboard operation
certification-tool copied to clipboard

[Bug] Failure to create project when editing the config during creation

Open cecille opened this issue 7 months ago • 1 comments

Describe the bug

Creating a project always seems to fail if I edit the config during creation. See video. Here, I'm using the config copied from another endpoint (so it's valid). The config seems to update, but the project won't save. If I create the project first with the default config, and then change the config (same config), the update is successful.

https://github.com/user-attachments/assets/c3963ac0-5917-4e83-9d0e-152e1c89dc56

Steps to reproduce the behavior

No response

Expected behavior

No response

Log files

No response

PICS file

No response

Screenshots

No response

Environment

No response

Additional Information

No response

cecille avatar May 16 '25 03:05 cecille

Hey @cecille,

Please note that what you copied from the DuttyMcDutface TE2 EP3 is a different structure from the one required for the project creation. What I mean is that the project creation only requires the config object while the existing project config has config+pics inside a json object.

When we create a project like that we are passing the following:

{
    "name": "Project With Existing Config",
    "config": {
        "config": {
            "network": {...},
            "dut_config": {...}
        },
        "pics": {
            "clusters": {}
        }
    }
}

Note above the duplicate config.

But we're expecting only:

{
    "name": "Project With Existing Config",
    "config": {
        "network": {...},
        "dut_config": {...}
     }
}

Thus, if you're need to copy/paste, you may copy only the config brackets or we may add a feature in the future to handle a more complete config file.

Let me know if that helps.

antonio-amjr avatar May 16 '25 15:05 antonio-amjr