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

[WIP] enable php7 travis #9858

Closed
wants to merge 7 commits into from
Closed

[WIP] enable php7 travis #9858

wants to merge 7 commits into from

Conversation

ThaDafinser
Copy link
Contributor

No description provided.

@ThaDafinser ThaDafinser changed the title enable php7 travis [WIP] enable php7 travis Feb 29, 2016
@ThaDafinser
Copy link
Contributor Author

Starting with 66 failures in SystemTests
https://travis-ci.org/piwik/piwik/jobs/112586859#L7636

@ThaDafinser
Copy link
Contributor Author

@tsteur @mattab since i started to work on fixing the issues of the sorting between PHP5 / 7 i got down from 66 failures to 32 failures (1 failure in submodule is also fixed, so 31).

I only changed this sorting method and fixed the expected results
https://github.com/piwik/piwik/pull/9858/files#diff-2d0bb82438495c9259aa4ef3211b6b36

Now it sorts by the count and then the label, instead of only the count.

_My question_
Is this way good for you? Or is this a problem, since it will need a little bit performance and the result changes a bit?
If the way is fine for you, i will fix this for PHP 5.3 and we can merge it and continue to work on fixes for the missing 32 failures.

}

//equal count -> so sort by the label
return strcmp($a['label'], $b['label']);
Copy link
Member

Choose a reason for hiding this comment

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

This should work as there should never be the same label twice. In other case we should probably fall back to the position in the array (array index) or so.

@tsteur
Copy link
Member

tsteur commented Mar 6, 2016

Is this way good for you? Or is this a problem, since it will need a little bit performance and the result changes a bit?

It will make things slower, but I think there is no way around as we have to run tests on PHP 7 as well. Maybe it'll be faster in some other cases where we can also use the index position maybe somehow. I reckon the only case where performance re sorting matters most is here: https://github.com/piwik/piwik/blob/39f6964dbfd3b66520dd04728b64cdc856a532c3/core/DataTable/Filter/Sort.php#L250-L289 It shouldn't add too much overhead though.

If the way is fine for you, i will fix this for PHP 5.3 and we can merge it and continue to work on fixes for the missing 32 failures.

Yes, it's awesome you're working on this. I'm looking forward to merge this once tests are green.

@mattab mattab added this to the 3.0.0 milestone Mar 14, 2016
@mattab mattab added c: Tests & QA For issues related to automated tests or making it easier to QA & test issues. Pull Request WIP Indicates the current pull request is still work in progress and not ready yet for a review. labels Mar 14, 2016
@mattab mattab mentioned this pull request Apr 11, 2016
11 tasks
@mattab mattab modified the milestones: 2.16.x (LTS), 3.0.0 Apr 11, 2016
@mattab mattab modified the milestones: 3.0.0, 2.16.x (LTS) Jul 25, 2016
@tsteur tsteur changed the base branch from master to 2.x-dev September 1, 2016 06:38
@mattab
Copy link
Member

mattab commented Sep 23, 2016

Hi @ThaDafinser - Thanks for the PR. Would you be interested to continue the work on this so we can merge it and run our CI job AllTests on PHP7? Would be awesome to have before the 3.0.0 release 👍 let us know if we can help

@mattab mattab modified the milestones: 3.0.0-b2, 3.0.0 Sep 23, 2016
@ThaDafinser
Copy link
Contributor Author

Since i started studiing, i'm afraid i can't complete it the next weeks.

The PR would also need a complete rebase - i think best is to open a complete new one and take some parts out of it.

@mattab
Copy link
Member

mattab commented Sep 27, 2016

Thanks for the update @ThaDafinser - all the best for your studies!

Created this issue: #10586
Hopefully someone else will help and finish your nice work 👍

@mattab mattab closed this Sep 27, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: Tests & QA For issues related to automated tests or making it easier to QA & test issues. Pull Request WIP Indicates the current pull request is still work in progress and not ready yet for a review.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants