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

Remove failing test to fix #15935#15943

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

Merged
fabpot merged 1 commit intosymfony:2.7fromwebfactory:fix-15935
Sep 28, 2015
Merged

Remove failing test to fix #15935#15943

fabpot merged 1 commit intosymfony:2.7fromwebfactory:fix-15935
Sep 28, 2015

Conversation

mpdude
Copy link
Contributor

QA
Bug fix?yes
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets#15935
LicenseMIT
Doc PR

Test has been removed on 2.8 already inhttps://github.com/symfony/symfony/pull/15738/files#diff-990df0e8238847f8ae54e8227f295c22L107

@aitboudad
Copy link
Contributor

👍

@mpdude
Copy link
ContributorAuthor

@stof FYI

@xabbuh
Copy link
Member

Doesn't the failing test mean that a feature that worked before will break now? Sorry for the question but I am actually not sure what we are testing here at all.

@mpdude
Copy link
ContributorAuthor

@xabbuh If it is a useful and well designed test, yes.

In this particular case, the test loads translations from a fixture inprod mode. It then repeats this to make sure the cached information is used (all green so far).

Then, in a third step, it re-creates the Translatorwithout adding the resourceand switches todebug mode; it then expects the cache to be invalid.

The problems with this are as follows:

  • When using different resource sets, theTranslator should internally make sure it uses different cache files. This is not the case.
  • Switching fromprod todebug probably considered the cache stale beforeImplement service-based Resource (cache) validation #15738, because inprod the.meta file was not created. This is, however, an implementation detail not relevant for the working ofConfigCache. So, I'd say that this behaviour has even been fixed now because the resource used (the translation fixture file) is unchanged, to it is right to still consider the cache fresh.

Of course you may ask whether we shouldn't fix the test instead of removing it, but honestly I don't even understand what it actually tries to test for (that hasn't been covered elsewhere already).

@fabpot
Copy link
Member

Thank you@mpdude.

@fabpotfabpot merged commit5392a0c intosymfony:2.7Sep 28, 2015
fabpot added a commit that referenced this pull requestSep 28, 2015
This PR was merged into the 2.7 branch.Discussion----------Remove failing test tofix#15935| Q             | A| ------------- | ---| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets |#15935| License       | MIT| Doc PR        |Test has been removed on 2.8 already inhttps://github.com/symfony/symfony/pull/15738/files#diff-990df0e8238847f8ae54e8227f295c22L107Commits-------5392a0c Remove failing test
@xabbuh
Copy link
Member

@mpdude Thank you for your detailed explanation. This makes the reasoning for removing the tests more clear.

@mpdudempdude deleted the fix-15935 branchSeptember 28, 2015 11:59
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
No milestone
Development

Successfully merging this pull request may close these issues.

5 participants
@mpdude@aitboudad@xabbuh@fabpot@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp