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

Add support for v7.x CER Component SDK #14501

Merged
merged 5 commits into from
Oct 20, 2023
Merged

Conversation

sm6srw
Copy link
Contributor

@sm6srw sm6srw commented Oct 19, 2023

Purpose

This pull request add support for the latest CER tool.

Declarations

Check these if you believe they are true

  • The codebase is in a better state after this PR
  • Is documented according to the standards
  • The level of testing this PR includes is appropriate
  • User facing strings, if any, are extracted into *.resx files
  • All tests pass using the self-service CI.
  • Snapshot of UI changes, if any.
  • Changes to the API follow Semantic Versioning and are documented in the API Changes document.
  • This PR modifies some build requirements and the readme is updated
  • This PR contains no files larger than 50 MB

Release Notes

Add support for v7.x CER Component SDK

Reviewers

(FILL ME IN) Reviewer 1 (If possible, assign the Reviewer for the PR)

(FILL ME IN, optional) Any additional notes to reviewers or testers.

FYIs

(FILL ME IN, Optional) Names of anyone else you wish to be notified of

@sm6srw sm6srw requested a review from pinzart90 October 20, 2023 12:49

foreach (var file in filesToSend)
{
cerDLL.SetMultiStringParam(ReportMultiStringParamKey.MultiStringKeyExtraFile, file, filesToSend.Count + 1);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will SetMultiStringParam actually send the file content ?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why filesToSend.Count + 1 ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It set the filenames that later is packed up by CER (Can be seen happening in the logs).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can maybe remove +1. Let me check.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, should be Count.

@pinzart90
Copy link
Contributor

@sm6srw did you test this out ? There is a debug mode to cause crashes on node placement (if I remember correctly)

@sm6srw
Copy link
Contributor Author

sm6srw commented Oct 20, 2023

Yes, I have tested it. I have checked the various logs and the result on the CER site.

@@ -187,78 +187,75 @@ internal static bool ShowCrashErrorReportWindow(DynamoViewModel viewModel, Crash
var cerDir = Directory.CreateDirectory(Path.Combine(Path.GetTempPath(), "DynamoCER_Report_" +
DateTime.Now.ToUniversalTime().ToString("yyyy-MM-dd-HH-mm-ss")));

using (Scheduler.Disposable.Create(() => {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pinzart90 I had to remove this. We have no control anymore on when these files are consumed. I have seen them missing in the report in about half the runs I have attempted in my testing and that confused me for a while. Regardless, I don't think we need it. Windows 10 and later has a "Storage Sense" service that removed these temp files if they have not been touched for 30 days.

@QilongTang QilongTang added this to the 3.0 milestone Oct 20, 2023
var upiConfigFilePath = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "upiconfig.xml");
foreach (var file in filesToSend)
{
cerDLL.SetMultiStringParam(ReportMultiStringParamKey.MultiStringKeyExtraFile, file, filesToSend.Count);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this function call actually send out the files or just the file paths ?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK..I saw the file content on some of the reports

@sm6srw sm6srw merged commit 7244f34 into DynamoDS:master Oct 20, 2023
17 checks passed
@sm6srw sm6srw deleted the NewCERTool branch October 20, 2023 19:02
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

Successfully merging this pull request may close these issues.

3 participants