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

Discussion about 2.0 release #381

Closed
10 of 12 tasks
alexislefebvre opened this issue Jan 17, 2018 · 18 comments
Closed
10 of 12 tasks

Discussion about 2.0 release #381

alexislefebvre opened this issue Jan 17, 2018 · 18 comments
Assignees
Labels
Milestone

Comments

@alexislefebvre
Copy link
Collaborator

alexislefebvre commented Jan 17, 2018

Thanks to contributors, a lot of changes have been done in order to prepare a new 2.0 release that will be compatible with Symfony 3.4 and 4.0. #379 was the final step of our initial plan for this new release.

We can now discuss of the remaining changes:

Opened Issues and PRs:

Changes from 1.x that can be ported to 2.x:

Please add any idea you can think of.

This was referenced Jan 17, 2018
@alexislefebvre alexislefebvre added this to the 2.0 milestone Jan 17, 2018
@soullivaneuh
Copy link
Contributor

Using traits instead of one big class

As I said in #332 (comment), I 👍 this! Maybe opening a dedicated issue about that rather than a comment?

Create a 1.x branch for the legacy version and merge 2.x in master? We don't need to do this today, maybe we could do this after the first alpha release?

There are several way to go. Sonata case: Master is for not released next major, then we have branches per major version (and the higher is the maintained one).

Release the 2.0.0-alpha1 version?

Would be a great idea and should be done right now IMHO, because we currently don't have any release supporting Symfony 4 that is already stable from a while now.

Plus, an alpha release still allows to introduce BC break changes, so it won't be a problem for the rest of the work to do.

@alexislefebvre
Copy link
Collaborator Author

I tried to split WebTestCase in several traits and I discovered that traits can't extend a class So some necessary calls to Symfony\Bundle\FrameworkBundle\Test\WebTestCase are broken. I'll investigate further.

@Jean85
Copy link
Contributor

Jean85 commented Jan 18, 2018

I'm personally against traits. They are simple a dirty way to avoid copy and paste, and I don't think we have many places were we should use it.

Can we investigate in a case-by-case basis? I don't know many of them, and IMHO some features that we are thinking about splitting in traits could be dropped (see Paratest which is no longer mantained and shouldn't need code integration on our side) or forked in a separate class/lib/bundle.

For the 1.x branch, it should be created from the latest 1.x tag just after the 2.x branch gets merged into master, along with a README change that explains the maintaners' position (we only patch 1.x, 2.x/master for new features).

@Jean85
Copy link
Contributor

Jean85 commented Jan 18, 2018

I started the docs part with #382

@alexislefebvre
Copy link
Collaborator Author

Thanks again @Jean85 and @soullivaneuh, here is the alpha release with your work: https://github.com/liip/LiipFunctionalTestBundle/releases/tag/2.0.0-alpha1

@alexislefebvre
Copy link
Collaborator Author

I tested the 2.0.0-alpha1 on a fresh Symfony 4 project and it worked perfectly. ✅

@Jean85
Copy link
Contributor

Jean85 commented Jan 26, 2018

Next week I hope to have time to test this on a project with Symfony 3.4 which currently uses the 1.x release.

@soullivaneuh
Copy link
Contributor

@alexislefebvre Same thing here, works like a charm! :-)

@enekochan
Copy link

I've tested the 2.0.0-alpha4 in a Symfony 3.4 project (I'm currently updating the production app from Symfony 3.3) and after following the upgrade guide everything worked perfectly :) I'm using cached SQLite and PHPUnit 6.5.8 by the way.

@alexislefebvre
Copy link
Collaborator Author

Hello, I think that we should plan a beta release and a final release in September. Do everyone agree? I think that we won't introduce BC break changes on the 2.x branch.

@wietsewarendorff
Copy link

Hi @alexislefebvre , any news on a release date for 2.0? Milestone was due in february, and the comment above mentiones september. I can see there are still some open issues, but also very little progress.

No rush, just looking forward to it since I have to upgrade to phpunit 7 for my current project (and therefore need it) :)

@alexislefebvre
Copy link
Collaborator Author

Tests are broken as of today because of a bug in last releases of Symfony: #447 (comment)

I would like to publish a beta release once this bug will be fixed (nobody complained about my previous comment so they probably agree).

@alexislefebvre
Copy link
Collaborator Author

Tests were still broken after the last release of Symfony (3.4.16), it looks like there's an issue with PHPCR, I removed PHPCR and opened a PR in order to discuss about the removal: #452

@rvanlaak
Copy link
Contributor

rvanlaak commented Nov 9, 2018

As you stated in #452, no need to remove PHPCR as tests are green again. Maybe we can continue discussing the release of v2.0?

@alexislefebvre
Copy link
Collaborator Author

I think that we'll publish a beta once we'll have found a workaround for #423.

I don't see anything right now that block a beta and a stable release.

@alexislefebvre
Copy link
Collaborator Author

alexislefebvre commented Dec 16, 2018

I would to fix these issues before releasing a final beta version:

Bonus:

@alexislefebvre
Copy link
Collaborator Author

Can someone please review #476?

@alexislefebvre
Copy link
Collaborator Author

Thanks everybody for your help.

I'm closing this in favor of #496

@alexislefebvre alexislefebvre unpinned this issue May 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants