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

DYN-7337 Make TuneUp an Built-In package, part II #15536

Merged
merged 19 commits into from
Oct 15, 2024
Merged

Conversation

QilongTang
Copy link
Contributor

@QilongTang QilongTang commented Oct 9, 2024

Purpose

  • Update TuneUp after build copy step so that TuneUp is setup more like a package instead of a OOTB view extension.
  • Remove the mandate for Built-in package to inlcude node library, remove such warning logging from Don't throw if a package has dlls but no node libraries in a protected location #13625
  • Investigate the dyf folder empty warning, a dyf folder is not expected for TuneUp
  • Investigate the loading sequence when the same package exist locally
  • Investigate the diff between folder name for Built-In package
  • Clean up console logging

Before:
image

After:
image

Expected folder structure under DynamoCore:
image

Common Errors:

  • When user have both Built-in package and downloaded package exist
    image

  • When user tries to download the same package while Built-In package exist
    image

  • When user tries to download a newer version of the package while Built-In package exist
    image

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

Make TuneUp an Built-In package and follow package folder structure, also improve Dynamo logging

Reviewers

@DynamoDS/dynamo

FYIs

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

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

See the ticket for this pull request: https://jira.autodesk.com/browse/DYN-7337

@QilongTang QilongTang added this to the 3.4 milestone Oct 9, 2024
@QilongTang QilongTang marked this pull request as ready for review October 10, 2024 14:26
@QilongTang QilongTang changed the title DYN-7337 Make TuneUp an OOTB package, part II DYN-7337 Make TuneUp an Built-In package, part II Oct 10, 2024
Copy link

github-actions bot commented Oct 10, 2024

UI Smoke Tests

Test: success. 11 passed, 0 failed.
TestComplete Test Result
Workflow Run: UI Smoke Tests
Check: UI Smoke Tests

</ItemGroup>
<MakeDir Directories="$(OutputPath)\viewExtensions\" />
<Copy SourceFiles="@(ExternTuneUpDll)" DestinationFolder="$(OutputPath)\Built-In Packages" />
<Copy SourceFiles="@(ExternTuneUpManifest)" DestinationFolder="$(OutputPath)\viewExtensions" />
<Copy SourceFiles="@(ExternTuneUpPkg)" DestinationFolder="$(OutputPath)\Built-In Packages\packages\TuneUp\%(RecursiveDir)" />
Copy link
Contributor Author

@QilongTang QilongTang Oct 11, 2024

Choose a reason for hiding this comment

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

Copy files recursively and keeping the folder structure

Log(String.Format(
String.Format(Resources.InvalidPackageNoNodeLibrariesDefinedInPackageJson,
discoveredPkg.Name, discoveredPkg.RootDirectory)));
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Remove the node library dll check because Built-In package moving forward may not always include nodes so this is no longer needed, even the logging

AnyCPU/
Debug/
Release/
originalBinaries/
Copy link
Contributor Author

Choose a reason for hiding this comment

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

ignore dlls under built directory more precisely

@QilongTang
Copy link
Contributor Author

Not sure if the two remaining tests about Node Autocomplete is related to this PR at all, re-running in https://master-5.jenkins.autodesk.com/job/Dynamo/job/DynamoSelfServe/job/pullRequestValidation/16549/

extern/TuneUp/pkg.json Outdated Show resolved Hide resolved
@@ -10,7 +10,7 @@
<ItemGroup>
<PackageReference Include="CommandLineParser" Version="2.8.0" />
<PackageReference Include="CsvHelper" Version="30.0.1" />
<PackageReference Include="Greg" Version="3.0.1.4707" />
<PackageReference Include="Greg" Version="3.0.2.6284" />
Copy link
Contributor

Choose a reason for hiding this comment

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

Why are we changing the greg version only for this project?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@reddyashish This project seems to be behind (not aligned with all the other project)

Copy link
Contributor

Choose a reason for hiding this comment

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

Add this dll to the list of shipped binaries?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is a test dll generated runtime, I have removed it and updated gitignore

Copy link
Contributor

@RobertGlobant20 RobertGlobant20 left a comment

Choose a reason for hiding this comment

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

LGTM

@QilongTang
Copy link
Contributor Author

@reddyashish @zeusongit I updated to latest TuneUp, and all regressions are passing from previous run so this should be all good

@QilongTang
Copy link
Contributor Author

I dont think the error from the Build DynamoAll.sln is from this branch..

@QilongTang QilongTang mentioned this pull request Oct 14, 2024
9 tasks
@zeusongit
Copy link
Contributor

I dont think the error from the Build DynamoAll.sln is from this branch..

Interestingly, I was getting the same error

@zeusongit
Copy link
Contributor

@reddyashish @zeusongit I updated to latest TuneUp, and all regressions are passing from previous run so this should be all good

One test failing, did it pass in another build?

@QilongTang
Copy link
Contributor Author

QilongTang commented Oct 14, 2024

@reddyashish @zeusongit I updated to latest TuneUp, and all regressions are passing from previous run so this should be all good

One test failing, did it pass in another build?

@zeusongit Yup, the reported failure is a sporadic one. The build errors is from master branch itself, most likely from #15439. I dont think we are supposed to merge that..

@QilongTang QilongTang merged commit 4d498ff into master Oct 15, 2024
23 of 25 checks passed
@QilongTang QilongTang deleted the TuneUpRefine branch October 15, 2024 15:01
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.

4 participants