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

Where are the new-app-generation scripts ? (that used to exist in /tools ) #417

Open
obsidian-1 opened this issue Feb 2, 2022 · 5 comments
Labels

Comments

@obsidian-1
Copy link

obsidian-1 commented Feb 2, 2022

No description provided.

@obsidian-1 obsidian-1 changed the title Where is are the new-app-generation scripts ? (that used to exist in /tools ) Where are the new-app-generation scripts ? (that used to exist in /tools ) Feb 2, 2022
@skliper
Copy link
Contributor

skliper commented Feb 2, 2022

Good topic for https://github.com/nasa/cFS/discussions. I'm not aware of anyone who has updated something to work with the latest recommended patterns. A good starting point is https://github.com/nasa/sample_app or https://github.com/nasa/sample_lib and bulk replace prefixes.

@ThibFrgsGmz
Copy link

I don't know if it follows the latest recommended pattern but you can also grab the script from NASA Icarous: https://github.com/nasa/icarous/tree/master/Python/Template.

At the time I was using it to generate a cFS application.

@skliper
Copy link
Contributor

skliper commented Feb 14, 2022

Some of these may also help, community provided and I'm not sure how up-to-date they are. https://github.com/OpenSatKit/OpenSatKit/tree/master/cfs/tools/app_setup_scr, https://github.com/OpenSatKit/OpenSatKit/tree/master/cfs/tools/gen_app_code.

@ThibFrgsGmz
Copy link

@skliper Why not collect them and put them in the bundle? Is the maintenance burden too high?

This need comes up very often.

@skliper
Copy link
Contributor

skliper commented Feb 14, 2022

@ThibFrgsGmz sample app and lib included the bundle and are intended to provide the starting point for new apps (just global replace SAMPLE_ with your app abbreviation). Some of the tools I've seen to generate apps basically just do this global replace for you (not huge added value for the additional technical debt of another tool, it's just a sed). Other tools create things from scratch or templates, which ends up duplicating the work of keeping the sample app/lib up to date. While I understand in certain contexts these tools are very useful (if your organization has sufficient standardized customization that needs to go on top of the samples), those customizations often aren't necessarily generally applicable. The topic of providing a simple example (sample app/lib) as well as a more complex example exercising a much wider range of the APIs (like creating/managing child tasks, etc) has been discussed but we haven't had the resources to implement. We could just bake a tool in and use it to create sample app/lib instead of providing the code, but qualification/certifiability/acceptance of another official tool is overhead (and could add dependencies to the basic build).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants