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

Bump phpunit/phpunit from 9.2.6 to 9.4.0 #818

Merged
merged 2 commits into from
Jan 7, 2021

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Oct 2, 2020

Bumps phpunit/phpunit from 9.2.6 to 9.4.0.

Changelog

Sourced from phpunit/phpunit's changelog.

9.4.0 - 2020-10-02

Added

  • #4462: Support for Cobertura XML report format
  • #4464: Filter based on covered (@covers) / used (@uses) units of code
  • #4467: Convenient custom comparison of objects

Changed

  • The PHPUnit XML configuration generator (that is invoked using the --generate-configuration CLI option) now asks for a cache directory (default: .phpunit.cache)
Commits
  • ef53346 Prepare release
  • 6099c5e Report an error instead of a failure when the prerequisites for using the cus...
  • 6f084fa Merge branch '9.3'
  • b1f4768 Merge branch '8.5' into 9.3
  • 684ef7b Also mention output
  • 904b6e7 Merge branch '9.3'
  • b03b938 Merge branch '8.5' into 9.3
  • 155e5b0 Motivated by #4471, do not even try to add non-public methods as test methods
  • c9f25ee Merge branch '9.3'
  • b77f2da Update ChangeLog
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot bot added dependencies Pull requests that update a dependency file API Impact API/Backend code labels Oct 2, 2020
@dependabot dependabot bot force-pushed the dependabot/composer/phpunit/phpunit-9.4.0 branch from 4f47399 to 214f68e Compare October 3, 2020 12:02
@Grotax
Copy link
Member

Grotax commented Oct 3, 2020

Not only will the configuration need a migration but also
sebastianbergmann/phpunit#4297
at() was deprecated and will be removed with phpunit 10

@Grotax
Copy link
Member

Grotax commented Oct 10, 2020

@dependabot rebase

@dependabot dependabot bot force-pushed the dependabot/composer/phpunit/phpunit-9.4.0 branch from 214f68e to 1d1aac7 Compare October 10, 2020 08:27
@Grotax
Copy link
Member

Grotax commented Oct 10, 2020

No Idea why phpuint fails, on my local machine after migration everything worked fine except code coverage as thats not configured on my machine

@SMillerDev
Copy link
Contributor

Guess it's a code coverage issue then since it also fails for me.

@Grotax Grotax force-pushed the dependabot/composer/phpunit/phpunit-9.4.0 branch from e64306a to 09739b6 Compare October 11, 2020 09:32
@Grotax
Copy link
Member

Grotax commented Oct 11, 2020

Yea i installed and enabled xDebug and got the same error, but I can't make any sense from that error

@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github Oct 12, 2020

A newer version of phpunit/phpunit exists, but since this PR has been edited by someone other than Dependabot I haven't updated it. You'll get a PR for the updated version as normal once this PR is merged.

@Grotax Grotax force-pushed the dependabot/composer/phpunit/phpunit-9.4.0 branch 2 times, most recently from b20e99b to d68d19f Compare October 24, 2020 10:14
@Grotax
Copy link
Member

Grotax commented Oct 26, 2020

I also searched on google quite heavily but apparently no one has had that error, it is also so weird like the line that errors comes from a phpunit plugin but apparently as soon as we upgrade to 9.4.0 it breaks.

@SMillerDev
Copy link
Contributor

I think it's a nextcloud specific issue. Maybe @kesselb knows something or someone?

@kesselb
Copy link
Contributor

kesselb commented Oct 26, 2020

No idea sorry 🤷‍♂️

@Grotax Grotax force-pushed the dependabot/composer/phpunit/phpunit-9.4.0 branch 2 times, most recently from 44731d1 to 9dc057a Compare December 15, 2020 16:10
@Grotax Grotax added the Skip-Changelog No changelog update is required, minor change label Dec 15, 2020
@anoymouserver
Copy link
Contributor

Now that the server setup works with PHP 8, the integration test then stops while testing the PHP dependencies, since PHP 8 is only supported from at least phpunit 9.3. (Which would be solved with this PR here.)

@SMillerDev
Copy link
Contributor

Do we need to switch to NC 21 as base?

@anoymouserver
Copy link
Contributor

I don't think that this is currently necessary. The integration tests work for NC 20 and NC master (21) and the app works fine on my NC 21 beta4. And this phpunit bump would probably work also with NC 20.
(But I'm unsure about the CI's phpunit error)

@Grotax Grotax force-pushed the dependabot/composer/phpunit/phpunit-9.4.0 branch from 9dc057a to b327908 Compare January 3, 2021 11:06
@Grotax
Copy link
Member

Grotax commented Jan 3, 2021

Every time I re based this commit I tried to get help from google regarding this but apparently no one ever had this issue and posted about it :(
I also have this issue locally on my machine

@SMillerDev
Copy link
Contributor

What if you run it against master as a test?

@Grotax
Copy link
Member

Grotax commented Jan 4, 2021

I tested this against nextcloud/master, no error apart from a unit test error.

@Grotax
Copy link
Member

Grotax commented Jan 7, 2021

Already if we test against the v21.0.0beta4 the tests run through, only a new error pops up in one of our unit tests.

So I guess we could drop testing 20 and switch to 21 after the release?

@SMillerDev
Copy link
Contributor

Yeah, we can run the unittests on 21 then. And we'll only keep the integration tests for 20.

Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
@Grotax Grotax force-pushed the dependabot/composer/phpunit/phpunit-9.4.0 branch from b327908 to 64ea76d Compare January 7, 2021 16:21
Copy link
Member

@Grotax Grotax left a comment

Choose a reason for hiding this comment

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

Finally the test works

@Grotax Grotax merged commit f2eacb6 into master Jan 7, 2021
@delete-merged-branch delete-merged-branch bot deleted the dependabot/composer/phpunit/phpunit-9.4.0 branch January 7, 2021 16:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API Impact API/Backend code dependencies Pull requests that update a dependency file help wanted Skip-Changelog No changelog update is required, minor change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants