-
Notifications
You must be signed in to change notification settings - Fork 57
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
[projmgr] Generate RTE directory in project tree #1564
[projmgr] Generate RTE directory in project tree #1564
Conversation
Test Results 7 files 53 suites 4m 15s ⏱️ Results for commit 86c7bb1. ♻️ This comment has been updated with latest results. |
Thanks for reporting this. As you correctly says it was introduced in #1284 addressing #1266. As a matter of fact the generation of |
While it's true that nothing was produced earlier, it's still a regression since now, there is a random I would say that there are 2 possible solutions:
The current behavior is unpredictable and may introduce other problems for the end-user. This issue is not about that the identifier that something went wrong has changed, but about that a stray RTE directory can be placed anywhere, not just in the project where it's supposedly to be generated (due to the uninitialized internal state). |
This seems to be already the case since #1527, can you please fix the unittests building issues reported by CI and update the test case? |
When running `csolution convert -s /absolute/path/to/foo.csolution.yml`, the "RTE" directory should be placed within that structure and not where the csolution process happens to be executed from. Contributed by STMicroelectronics Signed-off-by: Torbjörn SVENSSON <[email protected]>
927d6ea
to
86c7bb1
Compare
Updated the test case and it appears to work now. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1564 +/- ##
=======================================
Coverage 63.46% 63.47%
=======================================
Files 162 162
Lines 31080 31103 +23
Branches 19036 19052 +16
=======================================
+ Hits 19726 19743 +17
- Misses 7517 7524 +7
+ Partials 3837 3836 -1
Flags with carried forward coverage won't be shown. Click here to find out more.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Torbjorn-Svensson Thanks for the contribution.
LGTM
When running
csolution convert -s /absolute/path/to/foo.csolution.yml
, the "RTE" directory should be placed within that structure and not where the csolution process happens to be executed from.This is a regression in csolution 2.3.0 compared to 2.2.1 and was introduced by this change. In the commit, the RTE directory is now generated without initializing the project, so the path to the project will be the empty string rather than the actual location on disk and as a result, it's created in the working directory rather than in the project tree.
I've added a test case to demonstrate the problem, but I don't know how to fix it.
@jkrech | @edriouk: Can please you take a look?
Contributed by STMicroelectronics