Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Propagate error_code and error_msg to test cases #2524

Open
r-c-n opened this issue Apr 29, 2024 · 7 comments
Open

Propagate error_code and error_msg to test cases #2524

r-c-n opened this issue Apr 29, 2024 · 7 comments
Assignees

Comments

@r-c-n
Copy link
Contributor

r-c-n commented Apr 29, 2024

In some cases, data.error_code and data.error_msg are only filled in test suite nodes, but not in their child nodes (test cases).

Example:

This makes it inviable to properly automate queries for test cases based on these parameters, as the real values are in a different node (the parent).

Wouldn't it make sense to propagate these values, if present, to all the child nodes?

@padovan
Copy link
Contributor

padovan commented Apr 29, 2024

What would this for a user evaluating regressions essentially? Seems something that will facilitate grouping?

@r-c-n
Copy link
Contributor Author

r-c-n commented Apr 29, 2024

Basically, uniformity of results, which is at the core of other processes/tasks:

If a test fails in lava due to an infrastructure error, this is encoded only in the test suite node, but users querying for test cases won't be aware of it. The results may be misleading.

This isn't currently a problem with regressions because I already worked around this issue when I wrote the code for detecting and creating them, but no code is doing that for test results.

@r-c-n
Copy link
Contributor Author

r-c-n commented Apr 30, 2024

A similar issue was already addressed previously: #2418

@nuclearcat
Copy link
Member

Do we need to work on this topic or it is mostly completed? Or can be closed?

@r-c-n
Copy link
Contributor Author

r-c-n commented Jun 27, 2024

AFAIK no work has been done on this yet, but things may have changed after the recent changes in the modeling of the node structure. IMO it's still useful (very useful) to have this information in the test case nodes. @JenySadadia what do you think?

@JenySadadia
Copy link
Collaborator

Hello,
Yes, it's definitely useful to have error metadata in test case nodes. On the other hand, what if a test suite has hundreds of test sets (not sure if that would ever be the case) and the LAVA raises an error? Is it meaningful to copy the same data to all the child nodes? It wouldn't be good from the database point of view.

@r-c-n
Copy link
Contributor Author

r-c-n commented Jul 25, 2024

Of course, every feature has a drawback. I'm thinking about design, other considerations (DB space, performance, optimization) should be evaluated separately. Without concrete estimations and measurements it's pointless to talk about these potential drawbacks, though --> will this feature make the DB bigger? yes. Will that have a noticeable impact? we don't know.

So it's up to the Maestro team to decide whether it's worth it to implement this or not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants