Import comments written in Polyspace Access

3 views (last 30 days)
Hello,
I´m starting to use Polyspace Access in a continuous integration workflow and want to know when and how comments which have been set at Polyspace Access are integrated into the created reports. At earlier versions I used the "import comments" function where the last result was checked to integrate all comments which were identified as unchanged. Is that option set by default at Polyspace Server usage or only available if I set it actively in the options file together with the result directory? And where does it take the old result from? Is it also downloaded from the configuration management system?
Another related question is if it is possible to trigger a new report creation after adding comments to the finding manually? Or does the software developer need to wait for the next automatic run until the report is updated?
Thank you and best regards,
Birgit

Accepted Answer

Anirban
Anirban on 29 May 2020
Edited: Anirban on 29 May 2020
Hi Birgit,
If you upload a result to the same project in Polyspace Access as a previous result, all review information from the previous result are imported to the new one. In a CI system, say you upload the result of run x to Polyspace Access (using the polyspace-access command). Then, in the Polyspace Access web interface, you update the review information for some findings in the result, for instance, add some comments. When you upload the result of run x+1 to the same project in Polyspace Access, all review information from run x , including the ones added later, will be imported.
See this documentation topic Import Review Information from Previous Polyspace Analysis. Specifically, this part is relevant:
"If you upload results to the Polyspace Access web interface, review information from the last run of the same project are applied to the current run. You cannot disable the automatic import."
The answer to your second question is: yes, you can generate a report anytime from findings in Polyspace Access. See the polyspace-report-generator documentation. Use the second group of syntaxes on the page.
  4 Comments
Birgit Roithner
Birgit Roithner on 3 Jun 2020
Hi Anirban,
in my project we have to store all development artifacts in a configuration management system. Because we are continuously developing and releasing the software it is not always possible to fix all found bugs directly for the next release but create tickets and plan the fixing for the upcoming release. Nevertheless the created and delivered report needs to contain the information that a ticket was created and is planed to proove that the finding was analyzed.
Now I´m trying to find a smart solution how I can generate a new report and storing it in the CM system after adding comments in Polypsace Access without a complete rerun of all Polyspace projects. That´s also necessary to not update the whole result when only the report changed.
Do you have any suggestion for me or should I contact the technical support?
Thank you and best regards,
Birgit
Anirban
Anirban on 3 Jun 2020
Edited: Anirban on 3 Jun 2020
Thanks for the precise problem statement. If I rephrase it a bit, you are still going to generate reports at periodic intervals or specific milestones (since it doesnt make sense to generate reports after every update of comments). However, at the time of report generation, you want to check if there have been any updates at all, and based on the response, generate the report. This will save you some unnecessary report generation.
Unfortunately, I could not find a documented way to poll whether a result on Access has been updated. However, Technical Support often has undocumented tricks up their sleeves. Feel free to contact them. You can point to this answer to save on some initial conversations.

Sign in to comment.

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!