sandstorm-io / vagrant-spk

Packaging tool for Sandstorm, a self-hosting platform for web apps!
Apache License 2.0
55 stars 29 forks source link

Create or designate test apps for Node, Meteor, and Go stacks #298

Open ocdtrekkie opened 3 years ago

ocdtrekkie commented 3 years ago

Generally, upon any radical vagrant-spk changes, I test against php-app-to-package-for-sandstorm and python-app-to-package-for-sandstorm, which are both excellent baseline test apps that use the base stack scripts for lemp and uwsgi respectively. (lesp is basically a simpler version of the lemp stack, so I also feel it is adequately tested this way.)

However, I do not have good test cases for our other stacks, which occasionally means they are broken until someone has a bad experience trying to use them. I think we need "Hello, world" level test apps that run with unmodified (or minimally modified) stack scripts for the Node, Meteor, and Go stacks.

zenhack commented 2 years ago

Where do we want to collect these? I'd like to not just have half a dozen repos in random people's accounts that we have to separately keep track of, do we want to collect these hello world apps in a single repo somewhere?

...or I guess we could pull stuff in as submodules.

Ideally, I'd like to have this be semi-automated, but that's non-trivial given the combination of (1) interacting with grains programmatically is a bit of work and (2) launching VMs in CI would require a lot of setup and probably couldn't use GitHub actions (I wouldn't mind moving to something non-proprietary, but I do not want to shave this yak is the point).

ocdtrekkie commented 2 years ago

In the short term, I'd maybe just throw together a list in a Markdown file in the repo. Since our current test apps are https://github.com/sandstorm-io/php-app-to-package-for-sandstorm/ and https://github.com/sandstorm-io/python-app-to-package-for-sandstorm/ they are pretty easy to find, and hence not listed anywhere.

I really just want something that's a reasonably good idea to validate any given stack against that's kinda "just the basics". Not sure if that would best be done by... literally just making more hello world apps like above or not. (But if so, we can transfer them to the sandstorm-io org)

ocdtrekkie commented 1 year ago

Some of these are probably really good projects for newcomers to tackle, because it doesn't require deep understanding of Sandstorm, just how to build some small one-pager web apps in these platform stacks!