Skip to content

Conversation

@jrushlow
Copy link
Collaborator

@jrushlow jrushlow commented Feb 5, 2024

  • bumps the required doctrine/orm version to ^2.15|^3
  • bumps minimum doctrine/doctrine-bundle to ^2.10
  • handles new Mapping classes for entites. (FieldMapping, ManyToOneMapping, etc...)
  • adds a MAKER_PROCESS_TIMEOUT env that can be set to null or a float. This overrides the default Process::timeout value of 60 for shell commands in test. (Allows step debugging w/ XDebug)
  • tmp disable Mercure tests on CI. ux/turbo uses Doctrine\Common\Util\ClassUtils which no longer exists. (Fails all of our tests) See comment in review.
  • adds legacy tests for ORM 2.x entity attributes that "reversed" property order compared to ORM 3.x
  • ORM\..\DisconnectedClassMetadataFactory is removed in orm 3.0 -> set the StaticReflectionService::class manually when getting metadata for disconnected entities. (e.g. xml mapping) - Reference ClassMetadataInfo less and less doctrine/orm#9704

@jrushlow jrushlow changed the title [ci] don't use database:create for sqlite in tests [ci] new doctrine compatibility / don't use database:create for sqlite in tests Feb 5, 2024
@jrushlow jrushlow changed the title [ci] new doctrine compatibility / don't use database:create for sqlite in tests new doctrine compatibility / don't use database:create for sqlite in tests Feb 5, 2024
@jrushlow jrushlow force-pushed the ci/handle-database-create branch from 2faf253 to 90a3123 Compare February 6, 2024 07:55
Comment on lines +22 to +23
<!-- Overrides process timeout when step debugging -->
<!-- <env name="MAKER_PROCESS_TIMEOUT" value="null" /> -->
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Allows for debugging Process::fromShellCommandLine() which sets the process $timeout to 60 seconds

*
* @internal
*/
final class ClassProperty
Copy link
Collaborator Author

@jrushlow jrushlow Feb 6, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We'll be able to do additional refactorings in CSM/Maker that will further utilize value object.. e.g. addProperty()

env:
PHPUNIT_FLAGS: "-v"
SYMFONY_PHPUNIT_DIR: "$HOME/symfony-bridge/.phpunit"
MAKER_SKIP_MERCURE_TEST: 1
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ux-turbo uses Doctrine\Commom\Util\ClassUtils::class which no longer exists. As such, 2 MakeEntity tests fail that use Mercure. Keep this here && create an maker bundle issue to fix? Or live with (for now) the red x's on all of our tests?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Keep this for now. Then we'll fix it in ux-turbo at some point.

@jrushlow jrushlow changed the title new doctrine compatibility / don't use database:create for sqlite in tests [make:*] improve support for ORM 3.x / DBAL 4.x Feb 6, 2024
@jrushlow jrushlow added Feature New Feature Status: Needs Review Needs to be reviewed labels Feb 6, 2024
@jrushlow jrushlow marked this pull request as ready for review February 6, 2024 17:50
Copy link
Member

@weaverryan weaverryan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like very detailed work & solid 🦾. If any details were missed, the tests should have caught them.

env:
PHPUNIT_FLAGS: "-v"
SYMFONY_PHPUNIT_DIR: "$HOME/symfony-bridge/.phpunit"
MAKER_SKIP_MERCURE_TEST: 1
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Keep this for now. Then we'll fix it in ux-turbo at some point.

@jrushlow jrushlow added Status: Reviewed Has been reviewed by a maintainer and removed Status: Needs Review Needs to be reviewed labels Feb 6, 2024
@jrushlow jrushlow merged commit d3a0cdb into symfony:main Feb 6, 2024
@jrushlow jrushlow deleted the ci/handle-database-create branch February 6, 2024 20:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Feature New Feature Status: Reviewed Has been reviewed by a maintainer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants