Skip to content

Fix broken tests#995

Closed
danepowell wants to merge 1 commit into
phpro:masterfrom
danepowell:tests
Closed

Fix broken tests#995
danepowell wants to merge 1 commit into
phpro:masterfrom
danepowell:tests

Conversation

@danepowell
Copy link
Copy Markdown
Contributor

@danepowell danepowell commented Mar 23, 2022

Q A
Branch master for features and deprecations
Bug fix? yes/no
New feature? yes/no
BC breaks? yes/no
Deprecations? yes/no
Documented? yes/no
Fixed tickets comma-separated list of tickets fixed by the PR, if any

Tests are broken in HEAD, caused by some Symfony components recently upgrading from 5 to 6.

I fixed the issues in Psalm per advice in these upstream issues:

The bigger issue is a Symfony EventDispatcher deprecated constructor that apparently went unnoticed and was recently completely removed. I'm unable to grok the documentation on how to fix it:

Have you ever considered implementing deprecation scanning or committing your composer.lock and using Dependabot or Violinist to update dependencies? This wouldn't avoid these problems, but it would at least catch them earlier and pinpoint the cause without breaking tests in HEAD.

New Task Checklist:

  • Are the dependencies added to the composer.json suggestions?
  • Is the doc/tasks.md file updated?
  • Are the task parameters documented?
  • Is the task registered in the tasks.yml file?
  • Does the task contains phpunit tests?
  • Is the configuration having logical allowed types?
  • Does the task run in the correct context?
  • Is the run() method readable?
  • Is the run() method using the configuration correctly?
  • Are all CI services returning green?

@danepowell
Copy link
Copy Markdown
Contributor Author

Sorry, it looks like the errors I mentioned are actually not happening in automated tests. I have no idea why. I get them when running Psalm locally.

The breakage in automated tests must be due to something else. Although I think the issues I mentioned are still valid and will become a problem.

@danepowell danepowell closed this Mar 23, 2022
@veewee
Copy link
Copy Markdown
Contributor

veewee commented Mar 25, 2022

Thanks for reporting! Will take care of it.

Noticed the event dispatcher thing indeed;
It got removed here without any notice symfony/symfony#40468

About the psalm issue : it looks phpunit related, but we are currently not running psalm on the tests. Not sure if it requires fixing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants