Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Enable PHP 7.3 on Travis #29624

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

Closed
wants to merge 4 commits into from
Closed

Enable PHP 7.3 on Travis #29624

wants to merge 4 commits into from

Conversation

tvlooy
Copy link
Contributor

@tvlooy tvlooy commented Dec 16, 2018

Enable PHP 7.3 on Travis.

@tvlooy tvlooy changed the title Enable PHP 7.3 on Travis WIP: Enable PHP 7.3 on Travis Dec 16, 2018
@tvlooy tvlooy mentioned this pull request Dec 16, 2018
@nicolas-grekas
Copy link
Member

I see you took my commit from nicolas-grekas#18, cool!
Thanks for giving it a try!

@tvlooy
Copy link
Contributor Author

tvlooy commented Dec 17, 2018

@nicolas-grekas what's the best way to trigger travis builds?

@nicolas-grekas
Copy link
Member

push-forcing a commit - but maybe the yaml is invalid? that could be a reason why travis is not triggered.

@Kocal
Copy link
Member

Kocal commented Dec 17, 2018

A new way (RIP https://lint.travis-ci.org) to lint your .travis.yml is to use the Travis CI CLI.
Maybe run travis lint in the Symfony repo can help you?

@rpkamp
Copy link
Contributor

rpkamp commented Dec 17, 2018

PR ran in Travis. I'm not sure why it's not reported in GitHub though. Weird.

https://travis-ci.org/symfony/symfony/builds/468787659

@rpkamp
Copy link
Contributor

rpkamp commented Dec 17, 2018

It did run for older commits, but then stopped working. Must be something wrong with travis.yaml indeed.

@rpkamp
Copy link
Contributor

rpkamp commented Dec 17, 2018

Just ran travis cli lint and the offending line is this one: https://github.com/symfony/symfony/pull/29624/files#diff-354f30a63fb0907d4ad57269548329e3R195

When you remove that line or indent it properly Travis lint is fine with the YAML.

Should be

      if [[ ! $skip ]]; then
          # ldapadd -h localhost:3389 -D cn=admin,dc=symfony,dc=com -w symfony -f src/Symfony/Component/Ldap/Tests/Fixtures/data/base.ldif &&
          ldapadd -h localhost:3389 -D cn=admin,dc=symfony,dc=com -w symfony -f src/Symfony/Component/Ldap/Tests/Fixtures/data/fixtures.ldif
      fi

instead of

      if [[ ! $skip ]]; then
#         ldapadd -h localhost:3389 -D cn=admin,dc=symfony,dc=com -w symfony -f src/Symfony/Component/Ldap/Tests/Fixtures/data/base.ldif &&
          ldapadd -h localhost:3389 -D cn=admin,dc=symfony,dc=com -w symfony -f src/Symfony/Component/Ldap/Tests/Fixtures/data/fixtures.ldif
      fi

@tvlooy
Copy link
Contributor Author

tvlooy commented Dec 17, 2018

ok great! we now have some failing tests to look at

.travis.yml Outdated
@@ -126,6 +126,26 @@ before_install:
(cd php-$MIN_PHP && ./configure --enable-sigchild --enable-pcntl && make -j2)
fi

- |
# Install ext/memcached from source
Copy link
Member

Choose a reason for hiding this comment

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

shouldn't it be done only for PHP 7.3 ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes that's true. Maybe it's even better to compile the .so files once and download them instead of compiling (until a release is made) because these are master branches ...
I would first like to get to the point where 7.3 is working. Any idea to fix the OPT_LIBKETAMA_COMPATIBLE issue? I am a bit lost

Copy link
Contributor

Choose a reason for hiding this comment

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

Memcached should be in its way before the end of the year.

php-memcached-dev/php-memcached#408 (comment)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

okay. Trying to isolate the memcache tests now ...

@tvlooy
Copy link
Contributor Author

tvlooy commented Dec 20, 2018

the memcached behavior is reproducible with 7.2. Can't reproduce locally so have to trigger more Travis builds to find the exact commit in ext/memcached that behaves different

@tvlooy
Copy link
Contributor Author

tvlooy commented Dec 20, 2018

enabled amqp now

@tvlooy tvlooy changed the title WIP: Enable PHP 7.3 on Travis Enable PHP 7.3 on Travis Dec 20, 2018
@tvlooy
Copy link
Contributor Author

tvlooy commented Dec 20, 2018

Status of the work is kept up to date in the PR description above. @nicolas-grekas ext/memcached is skipped for now, ext/amqp is built from source. The tests are green https://travis-ci.org/symfony/symfony/builds/470724643

@rpkamp
Copy link
Contributor

rpkamp commented Dec 21, 2018

I admire your persistence @tvlooy!

@tvlooy
Copy link
Contributor Author

tvlooy commented Dec 21, 2018

Puzzled with the failing memcached tests

@tvlooy
Copy link
Contributor Author

tvlooy commented Jan 16, 2019

well that works. Yay!

ping @nicolas-grekas @stof

@nicolas-grekas
Copy link
Member

Awesome thank you!

env: deps=low
env: deps=high
- php: 7.3
env: deps=high
Copy link
Member

Choose a reason for hiding this comment

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

Looks like we don't have test for deps=low anymore.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

which envs do you want to test? I enabled all in next commit but that seems overkill

This was referenced Jan 24, 2019
nicolas-grekas added a commit that referenced this pull request Jan 24, 2019
This PR was merged into the 3.4 branch.

Discussion
----------

Enable PHP 7.3 on Travis

| Q             | A
| ------------- | ---
| Branch?       | 3.4
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

The bits of #29624 that apply to 3.4.

Commits
-------

335036c Enable PHP 7.3 on Travis
@nicolas-grekas
Copy link
Member

Merged on 3.4 in #29979
There is still something to improve: compiling memcached.so almost double the job time, by taking 6 minutes. But the .so file could be cached.
@tvlooy would you like to work on that? (it should target 3.4)

@tvlooy
Copy link
Contributor Author

tvlooy commented Jan 25, 2019

@nicolas-grekas good idea. I'll try to do it this week

@tvlooy tvlooy deleted the php73 branch January 29, 2019 20:39
nicolas-grekas added a commit that referenced this pull request Feb 1, 2019
This PR was merged into the 3.4 branch.

Discussion
----------

Use system wide memcached.so

| Q             | A
| ------------- | ---
| Branch?       | 3.4
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | WiP
| License       | MIT

requested by #29624 (comment)

let's see what travis is going to do with this ...

Commits
-------

8d171f4 Use system wide memcached.so
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.