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

Symfony recipe and documentation #1665

Merged
merged 14 commits into from Dec 2, 2020
Merged

Symfony recipe and documentation #1665

merged 14 commits into from Dec 2, 2020

Conversation

mikemilano
Copy link
Contributor

@mikemilano mikemilano commented Jun 14, 2019

Thank you so much for contributing code to Lando! If this is your first time contributing to Lando we recommend you check out

We will get to your PR as soon as we can but in the meantime you might want to check to make sure you have done the following. The more boxes you can check the easier it will be for us to merge in your changes with confidence

  • My code includes the latest code from the master branch
  • My code includes an update to the CHANGELOG
  • My code includes a functional test if applicable
  • My code includes a unit test if applicable
  • My code includes documentation updates if applicable.
  • My code passes relevant CI status checks
  • I have pinged a project committer when I think my code is ready for prime time.

@ci-reporter
Copy link

ci-reporter bot commented Jun 14, 2019

The build is failing

✨ Good work on this PR so far! ✨ Unfortunately, the build is failing as of . Here's the output:

Run func test
yarn run v1.22.4

I'm sure you can fix it! If you need help, don't hesitate to ask a maintainer of the project!


Failed build for 46e78d9
Run func test
yarn run v1.16.0

This comment was automagically generated by ci-reporter. If you see a problem, open an issue here.

@stale
Copy link

stale bot commented Jul 14, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions and please check out this if you are wondering why we auto close issues.

@stale stale bot added the stale Issue has been auto-flagged as stale label Jul 14, 2019
@pirog
Copy link
Sponsor Member

pirog commented Jul 15, 2019

unstale

@stale stale bot removed the stale Issue has been auto-flagged as stale label Jul 15, 2019
@stale
Copy link

stale bot commented Aug 15, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions and please check out this if you are wondering why we auto close issues.

@stale stale bot added the stale Issue has been auto-flagged as stale label Aug 15, 2019
@mikemilano mikemilano self-assigned this Aug 16, 2019
@stale stale bot removed the stale Issue has been auto-flagged as stale label Aug 16, 2019
@stale
Copy link

stale bot commented Sep 15, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions and please check out this if you are wondering why we auto close issues.

@stale stale bot added the stale Issue has been auto-flagged as stale label Sep 15, 2019
@pirog pirog removed the stale Issue has been auto-flagged as stale label Sep 19, 2019
@stale
Copy link

stale bot commented Oct 15, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions and please check out this if you are wondering why we auto close issues.

@stale stale bot added the stale Issue has been auto-flagged as stale label Oct 15, 2019
@stale stale bot closed this Oct 22, 2019
@pirog pirog reopened this Oct 22, 2019
@stale stale bot removed the stale Issue has been auto-flagged as stale label Oct 22, 2019
@stale
Copy link

stale bot commented Nov 21, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions and please check out this if you are wondering why we auto close issues.

@stale stale bot added the stale Issue has been auto-flagged as stale label Nov 21, 2019
@pirog pirog removed the stale Issue has been auto-flagged as stale label Nov 23, 2019
@stale
Copy link

stale bot commented Dec 21, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions and please check out this if you are wondering why we auto close issues.

@stale stale bot added the stale Issue has been auto-flagged as stale label Dec 21, 2019
@stale stale bot closed this Dec 28, 2019
@pirog pirog reopened this Feb 24, 2020
@pirog pirog removed the stale Issue has been auto-flagged as stale label Feb 24, 2020
@mikemilano
Copy link
Contributor Author

Notes to run functional tests that are failing:

yarn generate-tests
yarn mocha --timeout 9000 test/symfony-example.func.js

Output:

symfony-example
✓ should poweroff (402ms)
1) initialize an empty symfony recipe
2) should compose create project a new symfony app
3) should start up successfully
4) should return the symfony default page
5) should use 7 3 as the default php version
6) should be running apache 2 4 by default
7) should be running mysql 5 7 by default
✓ should not enable xdebug by default (164ms)
8) should have redis running
✓ should use the default database connection info (192ms)
✓ should have console available (171ms)
✓ should be destroyed with success (6941ms)

5 passing (5m)
8 failing

  1. symfony-example
    initialize an empty symfony recipe:
    Error: Command failed: rm -rf symfony && mkdir -p symfony && cd symfony && lando init --source cwd --recipe symfony --webroot /app/public --name lando-symfony --option cache=redis
    lando init

Initializes code for use with lando

Options:
--clear Clears the lando tasks cache [boolean]
--help Shows lando or delegated command help if applicable [boolean]
--verbose, -v Runs with extra verbosity [count]
--full Dump a lower level lando file [boolean] [default: false]
--github-auth A GitHub personal access token [string]
--github-repo GitHub git url [string]
--name The name of the app [string]
--option, -o Merge additional KEY=VALUE pairs into your recipes config [array]
--pantheon-auth A Pantheon machine token [string]
--pantheon-site A Pantheon site machine name [string]
--recipe, -r The recipe with which to initialize the app [string] [choices: "pantheon", "backdrop", "drupal6", "drupal7", "drupal8", "joomla", "lamp", "laravel", "lemp", "mean", "wordpress"]
--remote-options Some options to pass into either the git clone or archive extract command [string] [default: ""]
--remote-url The URL of your git repo or archive, only works when you set source to remote [string]
--source, --src The location of your apps code [string] [choices: "cwd", "github", "pantheon", "remote"]
--webroot Specify the webroot relative to app root [string]
--yes, -y Auto answer yes to prompts [boolean] [default: false]

Invalid values:
Argument: recipe, Given: "symfony", Choices: "pantheon", "backdrop", "drupal6", "drupal7", "drupal8", "joomla", "lamp", "laravel", "lemp", "mean", "wordpress"

  at ChildProcess.exithandler (child_process.js:289:12)
  at maybeClose (internal/child_process.js:962:16)
  at Process.ChildProcess._handle.onexit (internal/child_process.js:251:5)
  1. symfony-example
    should compose create project a new symfony app:
    Error: Command failed: cd symfony && lando composer create-project symfony/website-skeleton tmp && cp -r tmp/. . && rm -rf tmp
    cp: tmp/.: No such file or directory

    at ChildProcess.exithandler (child_process.js:289:12)
    at maybeClose (internal/child_process.js:962:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:251:5)

  2. symfony-example
    should start up successfully:
    Error: Timeout of 9000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves.

  3. symfony-example
    should return the symfony default page:
    Error: Timeout of 9000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves.

  4. symfony-example
    should use 7 3 as the default php version:
    Error: Command failed: cd symfony && lando php -v | grep "PHP 7.3"
    Usage: lando [args] [options]

Commands:
lando blog Launch the blog
lando config Displays the lando configuration
lando destroy Destroys your app
lando docs Launch the documentation site
lando events Launch the events listing
lando info Prints info about your app
lando init Initializes code for use with lando
lando list Lists all running lando apps and containers
lando logs Displays logs for your app
lando node Runs node commands
lando platform Run Platform CLI commands
lando poweroff Spins down all lando related containers
lando rebuild Rebuilds your app from scratch, preserving data
lando restart Restarts your app
lando share Shares your local site publicly
lando site Launch the marketing site
lando ssh Drops into a shell on a service, runs commands
lando start Starts your app
lando stop Stops your app
lando version Displays the lando version
lando vuepress Runs vuepress commands
lando yarn Runs yarn commands

Options:
--clear Clears the lando tasks cache [boolean]
--help Shows lando or delegated command help if applicable [boolean]
--verbose, -v Runs with extra verbosity [count]

Examples:
lando start Run lando start
lando rebuild --help Get help about using the lando rebuild command
lando destroy -y -vvv Run lando destroy non-interactively and with maximum verbosity
lando --clear Clear the lando tasks cache

Did you mean stop?

  at ChildProcess.exithandler (child_process.js:289:12)
  at maybeClose (internal/child_process.js:962:16)
  at Process.ChildProcess._handle.onexit (internal/child_process.js:251:5)
  1. symfony-example
    should be running apache 2 4 by default:
    Error: Timeout of 9000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves.

  2. symfony-example
    should be running mysql 5 7 by default:
    Error: Command failed: cd symfony && lando mysql -V | grep 5.7

    at ChildProcess.exithandler (child_process.js:289:12)
    at maybeClose (internal/child_process.js:962:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:251:5)

  3. symfony-example
    should have redis running:
    Error: Timeout of 9000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves.

error Command failed with exit code 8.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

@pirog
Copy link
Sponsor Member

pirog commented Mar 16, 2020

@mikemilano as part of this PR it might be good to update our func test docs to include steps on how to run a single test file instaed of the whole suite

@pirog
Copy link
Sponsor Member

pirog commented Mar 31, 2020

@mikemilano here is hte folder for new experimental stuff
https://github.com/lando/lando/tree/master/experimental/plugins

And the docs around the flag
https://docs.lando.dev/config/experimental.html

@pirog pirog added this to the 3.1.0 milestone May 5, 2020
@pirog pirog removed this from the 3.1.0 milestone Jun 24, 2020
@millnut
Copy link

millnut commented Oct 24, 2020

Does this PR need any assistance happy to help get it across the line for Symfony 4/5?

@pirog
Copy link
Sponsor Member

pirog commented Oct 26, 2020 via email

@pirog pirog merged commit 9d4451b into master Dec 2, 2020
@pirog pirog deleted the symfony-recipe branch December 2, 2020 21:43
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.

None yet

3 participants