Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

[FrameworkBundle] Fix cache warmers tests#61101

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
MatTheCat wants to merge1 commit intosymfony:7.3
base:7.3
Choose a base branch
Loading
fromMatTheCat:cache_warmer_tests

Conversation

MatTheCat
Copy link
Contributor

@MatTheCatMatTheCat commentedJul 11, 2025
edited
Loading

QA
Branch?7.3
Bug fix?yes
New feature?no
Deprecations?no
IssuesN/A
LicenseMIT

While updating tests for#60568 I sawSerializerCacheWarmerTest andValidatorCacheWarmerTest’stestWarmUpWithoutBuilDir fail. Since there will be no warm up without a build directory it was weird a cache item could get hit in that case.

Turns out that was because thePhpArrayAdapter’s$valuesCache would retain them from previous tests.

This PR adds agetArrayPool method to the test cases which allows them to clear it on tearDown, so that tests don’t impact each other. Alternatively they could clear their own adapter or pass it different files, but this seemed the safest approach to me.

@carsonbotcarsonbot added this to the7.4 milestoneJul 11, 2025
@MatTheCatMatTheCat changed the base branch from7.4 to7.3July 11, 2025 08:12
@nicolas-grekasnicolas-grekas modified the milestones:7.4,7.3Jul 15, 2025
@symfonysymfony deleted a comment fromcarsonbotJul 15, 2025
@nicolas-grekas
Copy link
Member

Shouldn't this target 6.4?

@MatTheCat
Copy link
ContributorAuthor

The test was added by#52981 so the same branch should be targeted right?

Spomky reacted with thumbs up emoji

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Projects
None yet
Milestone
7.3
Development

Successfully merging this pull request may close these issues.

3 participants
@MatTheCat@nicolas-grekas@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp