Skip to content

[HttpKernel] Remove time-sensitivity from InlineFragmentRendererTest #42824

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

Conversation

herndlm
Copy link
Contributor

@herndlm herndlm commented Sep 1, 2021

Q A
Branch? 4.4
Bug fix? no
New feature? no
Deprecations? no
Tickets N/A
License MIT
Doc PR N/A

I noticed this test failing in #42823 and this is my attempt to remove the time-sensitivity there.

@herndlm
Copy link
Contributor Author

herndlm commented Sep 1, 2021

Is there a better way to compare ignoring parts? This is the best I could come up with..

@herndlm
Copy link
Contributor Author

herndlm commented Sep 1, 2021

Strange, I don't understand why the 7.4 high-deps test would still fail comparing those responses. I tested locally with a sleep to be sure this works 🤔

Update: this must be because of how the high-deps work which I did not fully understand yet.. Would be great if exactly that error is not happening any more after this PR got merged.

Update2: I think I got it now. The high-deps mean in this context that checks are done with my branch as dependency using Symfony 3.4. So even if this PR gets merged, the high-deps CI job for 4.4 PRs might still make problems hmm.
I guess trying to remove time-sensivity by not comparing timestamps, especially if they are floats, does make sense. But I was hoping to fix the 4.4 high-deps failures :/

@herndlm herndlm force-pushed the bugfix/remove-time-sensitivity-from-inline-fragment-renderer-test branch 2 times, most recently from 0428e66 to 70e1bc0 Compare September 3, 2021 11:20
Copy link
Member

@nicolas-grekas nicolas-grekas left a comment

Choose a reason for hiding this comment

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

(the failure are false positives when testing 3.4 with patched deps)

@nicolas-grekas
Copy link
Member

Any idea why these tests fail? Does that follow a recent PR?

@herndlm
Copy link
Contributor Author

herndlm commented Sep 7, 2021

Any idea why these tests fail? Does that follow a recent PR?

no clue unfortunately, I did not further look into it. I just saw that failure in 4.4 PRs and thought "oh, something time-sensitive, let's fix it" :/

@herndlm herndlm force-pushed the bugfix/remove-time-sensitivity-from-inline-fragment-renderer-test branch from 70e1bc0 to b5831b6 Compare September 22, 2021 07:52
xabbuh added a commit that referenced this pull request Oct 1, 2021
This PR was merged into the 4.4 branch.

Discussion
----------

[HttpKernel] Relax some transient tests

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       | -
| License       | MIT
| Doc PR        | -

As observed in #42824 and more recently #43138, these tests randomly break for some reason.
Replaces #42824

Commits
-------

30fa29f [HttpKernel] Relax some transient tests
@chalasr
Copy link
Member

chalasr commented Oct 5, 2021

Closing in favor of #43264. Thank you for the PR.

@chalasr chalasr closed this Oct 5, 2021
@herndlm herndlm deleted the bugfix/remove-time-sensitivity-from-inline-fragment-renderer-test branch October 5, 2021 14:03
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.

4 participants