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 a commandLine flag for specifying geometryLib path #9949

Merged
merged 8 commits into from
Sep 5, 2019

Conversation

mjkkirschner
Copy link
Member

@mjkkirschner mjkkirschner commented Aug 29, 2019

add flag for passing ASM path to command line args
add overload to use flag when present to sandbox, cli, cliwpf

Purpose

Attempt to allow integrators to use DynamoSandbox without requiring potentially slow recursive file search on the users system.

If this PR is merged the consequences are:

  1. sandbox daily builds will not load on applications which do not have ASM in their root directory - this is the same behavior as 2.3 (even if they are added to the list to search for)
  2. These applications will need to use can use a command line flag - -gp to pass the geometryPath to sandbox to have it skip searching and load that directly.

a thought:

to enable the most flexible solution - we can keep the recursive loading but move our tests and other integrators to use the command line flag (or preload option) to avoid searching - for example - we can modify our tests to stop geometry library searching and instead use this same mechanism to load the geometry library from a known a specific location.

This will enable us to keep the slow searching behavior for daily build users but skip it for integrators and tests...

This PR now simply adds the commandLineFlag and keeps the behavior @aparajit-pratap added. So both can used for most flexibility depending on user type.

Screen Shot 2019-08-29 at 9 34 22 PM

Declarations

Check these if you believe they are true

  • The code base 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.

Reviewers

@QilongTang
@aparajit-pratap

FYIs

@ColinDayOrg

remove RSA (need to use flag)
add flag for passing ASM path to command line args
add overload to use flag when present to sandbox,cli,cliwpf
@mjkkirschner mjkkirschner changed the title do not recurse during product lookup [WIP] do not recurse during product lookup - untested. Aug 29, 2019
@aparajit-pratap
Copy link
Contributor

aparajit-pratap commented Aug 29, 2019

Does this version include the recursive product lookup or are you going to put that back in by (revert*4)ing the other PR?

@mjkkirschner
Copy link
Member Author

Does this version include the recursive product lookup or are you going to put that back in by (revert*4)ing the other PR?

this PR includes the recursive product lookup, will have to make sure it keeps it when cherry picking.

refactor for testing
modify docs from review
@mjkkirschner
Copy link
Member Author

PTAL - this is ready for another review - tested by starting sandbox from a random folder full of asm binaries and made sure asm worked and was loaded from there. See image above.

@mjkkirschner mjkkirschner changed the title [WIP] do not recurse during product lookup - untested. [PTAL] do not recurse during product lookup - untested. Aug 30, 2019
@mjkkirschner mjkkirschner added the PTAL Please Take A Look 👀 label Aug 30, 2019
@mjkkirschner mjkkirschner changed the title [PTAL] do not recurse during product lookup - untested. [PTAL] add a commandLine flag for specifying geometryLib path Aug 30, 2019
sandbox should still start even if path is invalid asm path
@mjkkirschner
Copy link
Member Author

all tests pass on self serve.

@QilongTang
Copy link
Contributor

A few comments then LGTM

@QilongTang
Copy link
Contributor

LGTM

@QilongTang QilongTang added LGTM Looks good to me and removed PTAL Please Take A Look 👀 labels Sep 5, 2019
@mjkkirschner mjkkirschner merged commit 1d49129 into DynamoDS:master Sep 5, 2019
@QilongTang QilongTang changed the title [PTAL] add a commandLine flag for specifying geometryLib path Add a commandLine flag for specifying geometryLib path Sep 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
LGTM Looks good to me
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants