Skip to content
Snippets Groups Projects
  1. Sep 07, 2023
  2. Aug 08, 2023
  3. Aug 07, 2023
  4. Jul 31, 2023
  5. Jul 29, 2023
  6. Jul 28, 2023
    • Christian Kuhn's avatar
      [TASK] Prepare runTests.sh to flexible container bin · 0b6234dc
      Christian Kuhn authored
      As a preparation towards podman as container
      executor next to docker, runTests.sh is refactored
      a bit:
      
      * Image names now always have a host prefix like
        docker.io/ or ghcr.io/, except on CI, which will
        change later, too. podman needs those prefixes and
        does not fall back to docker.io if it's missing:
        "redis:latest" -> "docker.io/redis:latest"
      * Image names are now put into variables.
      * Rename "docker" to "container" in variables.
      * Have a variable for the container binary, set to
        "docker" for now.
      * Change the cleanUp() function slightly, it will
        later work with both docker and podman this way.
      
      Resolves: #101470
      Related: #97566
      Releases: main, 12.4, 11.5
      Change-Id: Ifab85468dff5c21564611a45568d11e8559e155c
      Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/80202
      
      
      Tested-by: default avatarcore-ci <typo3@b13.com>
      Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
      Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
      0b6234dc
  7. Jul 25, 2023
  8. Jul 19, 2023
  9. Jun 09, 2023
  10. May 03, 2023
  11. Apr 21, 2023
  12. Apr 16, 2023
  13. Apr 15, 2023
  14. Apr 11, 2023
  15. Apr 06, 2023
  16. Apr 05, 2023
  17. Apr 04, 2023
  18. Dec 29, 2022
  19. Aug 26, 2022
  20. Aug 05, 2022
  21. Jul 31, 2022
    • Stefan Bürk's avatar
      [TASK] Upgrade to codeception/codeception 5.x · 816476c2
      Stefan Bürk authored
      Codeception released new major version 5, which
      unblocks upgrading to symfony 6 components.
      This patch raises codeception only, thus acting as a
      pre-patch to raise symfony requirements.
      
      Codeception 5 is hard to impossible with core v11,
      so this patch is v12 only: Codeception 5 requires
      PHP 8.0, so we'd have to support both 4 and 5 in
      v11 to allow testing with older PHP versions. This
      would result in various headaches since some API
      changes in codeception 5 are hard breaking in PHP,
      especially due to changed class property type hints.
      We'll thus keep codeception 4 in v11 and go with
      codeception 5 in v12.
      
      Minor acceptance test related adaptions are needed:
      
      * Replaced config option `path.log` with `path.output`
      * Added proper property type because of inheritance to
        codeception setup classes
      * Ensure method return type compatibility
      * Use `actor`instead of `class name` in suite config
      * Create acceptance split files in proper folder to
        ensure group filtering keeps working. Adjust clean
        up scripts and gitignore for this
      
      Used commands:
      
      > composer req --dev -w \
        typo3/testing-framework:dev-main \
        codeception/codeception:^5.0.0 \
        codeception/module-asserts:^3.0.0 \
        codeception/module-cli:^2.0.0 \
        codeception/module-filesystem:^3.0.0 \
        codeception/module-webdriver:^3.1.2 \
        codeception/lib-asserts:^2.0.0
      
      Resolves: #98047
      Releases: main
      Change-Id: I5cea60c2641988cc032b30ed1fbe3d8b0ed3b3d1
      Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/75317
      
      
      Tested-by: default avatarcore-ci <typo3@b13.com>
      Tested-by: default avatarOliver Klee <typo3-coding@oliverklee.de>
      Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
      Tested-by: default avatarStefan Bürk <stefan@buerk.tech>
      Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
      Reviewed-by: default avatarStefan Bürk <stefan@buerk.tech>
      816476c2
  22. Jul 01, 2022
  23. Jun 19, 2022
  24. Jun 11, 2022
  25. Jun 10, 2022
  26. May 07, 2022
  27. May 04, 2022
  28. Apr 27, 2022
  29. Apr 25, 2022
  30. Apr 20, 2022
  31. Apr 06, 2022
  32. Mar 31, 2022
  33. Jan 29, 2022
    • Stefan Bürk's avatar
      [TASK] Revamp phpstan config and handling · 997722b8
      Stefan Bürk authored
      We currently have the situation that phpstan is
      hard to update and maintain due to the phpstan
      config file that sets very specific rulesets.
      
      This is unfortunate since phpstan tends to change
      and rename rules at will.
      
      The general usage API of phpstan is basically as
      follows: Have a slim config file that sets the
      basic level. Then maintain a 'baseline' file that
      lists violations, using the --generate-baseline
      command option. The todo job for people working
      on phpstan errors is then to look at the baseline
      file, pick up some issues, fix them, then re-generate
      baseline. When baseline is small enough, the level
      is raised, a new baseline is generated, and the
      fix-job starts again.
      
      The patch does exactly this: The existing config
      is dropped and runTests.sh receives a command to
      generate baseline.
      
      With this in place, we can easily raise phpstan
      to a PHP 8.1 compatible version:
      
      > composer req friendsoftypo3/phpstan-typo3:"^0.9.0" --dev
      > composer req phpstan/phpstan:"^1.4.3" --dev
      > Build/Script/runTests.sh -s phpstanGenerateBaseline
      
      This initialy adds about 4000 ignores to the baseline
      with level 3, but we can reduce this drastically with
      just a couple of dedicated patches, soon.
      
      The config is heavily streamlined and for instance does
      *not* ignore tests anymore, which actually finds a ton
      of misuses and bugs within tests and classes.
      
      Resolves: #96675
      Releases: main, 11.5
      Change-Id: I0e7ff7aa796e59a2c5eedde0b673f741f8b87dea
      Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/73037
      
      
      Tested-by: default avatarcore-ci <typo3@b13.com>
      Tested-by: default avatarDaniel Goerz <daniel.goerz@posteo.de>
      Tested-by: default avatarStefan Bürk <stefan@buerk.tech>
      Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
      Reviewed-by: default avatarStefan Bürk <stefan@buerk.tech>
      Reviewed-by: default avatarDaniel Goerz <daniel.goerz@posteo.de>
      Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
      997722b8
  34. Jan 21, 2022
  35. Jan 18, 2022
  36. Dec 15, 2021
    • Stefan Bürk's avatar
      [TASK] Integrate sqlite acceptance testing · a2537436
      Stefan Bürk authored
      Add support for sqlite acceptance testing to
      'Build/Scripts/runTests.sh'.
      
      Run acceptance/sqlite testing with PHP 8.1 in nightly
      as a first execution implementation, which could be
      reshuffled when minimum PHP requirements have
      been decided.
      
      Furthermore two acceptance tests are marked as skipped
      when executed with sqlite, which should be fixed in
      dedicated patches:
      
      * MaintenanceCest.php->analyzeDatabaseStructureWorks()
        Skipped, as database compare is never clean and ends
        in endless loop with sqlite, when ext:indexed_search is
        installed. This is a general issue, existing at least
        since v10.4. Needs investigation and a dedicated patch.
      
      * UpgradeCest.php->seeUpgradeWizard()
        Skipped, as utf-8 charset upgrade wizard is not visible
        for sqlite dbms backend, thus rendering this test obsolete
        with sqlite. Needs another update wizard test and possibly
        a dedicated patch.
      
      Resolves: #96340
      Releases: main
      Change-Id: I74c8f1156d98a5419309e110ed761e3de21fa37a
      Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/72446
      
      
      Tested-by: default avatarcore-ci <typo3@b13.com>
      Tested-by: default avatarBenni Mack <benni@typo3.org>
      Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
      Reviewed-by: default avatarBenni Mack <benni@typo3.org>
      Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
      a2537436