alexanderschnitzler,
@alexanderschnitzler@mstdn.social avatar

Embrace change!
Currently upgrading an app from 8.7 up to 12 LTS, from PHP 7.3 up to 8.2. Non composer to composer. FTP to ssh+rsync via Gitlab CI job. First time unit and functional tests and frontend tests with codeception. Up to phpstan level 6 fixed. And much more.

A looot of work but things start to look really well now.

mikestreety,
@mikestreety@hachyderm.io avatar

@alexanderschnitzler Good work!

Got a few questions if I may?

How long did that take you?

What are you using to deploy via Gitlab ci? How are you doing the tests? (Are you able to share any?)

alexanderschnitzler,
@alexanderschnitzler@mstdn.social avatar

@mikestreety You may. So far, it took about two full weeks. But the coverage is still poor. Just some basic checks in place so far, but the infrastructure exists.

We are deploying via deployer/deployer and the rsync recipe of deployer contributors that is shipped along with depoyer for years now.

How are we doing tests? What is the exact question here? How we execute tests, how we write them? I am not able to share specific tests but I can outline and explain.

mikestreety,
@mikestreety@hachyderm.io avatar

@alexanderschnitzler Thanks. I struggled to find the rsync docs for Deployer but might look again as we currently build in CI and then deploy which composer installs again.

With the tests, I suppose I was.more asking what are you testing with a typo3 site and in what environment? Do you have a small database you import on test or something else?

alexanderschnitzler,
@alexanderschnitzler@mstdn.social avatar

@mikestreety The docs are a bit awful. A lot of resources of v6 are valid for v7 but missing. Always a struggle to understand the feature set of deployer but IMHO still the most mature deployment tool. You can finde the recipe here: https://deployer.org/docs/7.x/contrib/rsync

I don't understand the warning though. It looks like there is an official rsync recipe but I fail to see it. However, contrib works very well.

alexanderschnitzler,
@alexanderschnitzler@mstdn.social avatar

@mikestreety As for the tests there are unit tests which don't test anything that involves DI or db.

I use functional tests to test services as a whole, and if needed, import db fixtures.

Codeception tests import a db with a complete structure but defined data set to be able to browse the frontend. Some pages, backend and frontend users, some content elements (usually just the plugins under test).

mikestreety,
@mikestreety@hachyderm.io avatar

@alexanderschnitzler Thanks for all the info. Would be keen to read a blog post or see some examples of possible. Appreciate it is more work for you though, so don't worry if not.

alexanderschnitzler,
@alexanderschnitzler@mstdn.social avatar

@mikestreety Sorry mate, I have a baby at home and all my spare time is family time. Even if I wanted, I wouldn’t have time left for blog posts.

mikestreety,
@mikestreety@hachyderm.io avatar

@alexanderschnitzler No problem at all pal, I appreciate you taking the time to reply to me. Hope all is well and congratulations 😀

  • All
  • Subscribed
  • Moderated
  • Favorites
  • php
  • DreamBathrooms
  • magazineikmin
  • ethstaker
  • InstantRegret
  • tacticalgear
  • rosin
  • love
  • Youngstown
  • slotface
  • ngwrru68w68
  • kavyap
  • cubers
  • thenastyranch
  • mdbf
  • provamag3
  • modclub
  • GTA5RPClips
  • normalnudes
  • khanakhh
  • everett
  • cisconetworking
  • osvaldo12
  • anitta
  • Leos
  • Durango
  • tester
  • megavids
  • JUstTest
  • All magazines