-
Notifications
You must be signed in to change notification settings - Fork 18
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
12 fix wrong response when repeated requests for external source #13
12 fix wrong response when repeated requests for external source #13
Conversation
f7dd653
to
92205f9
Compare
Added a quick guide here for running e2e tests locally: https://github.com/dealmore/terraform-aws-next-js-image-optimization/blob/main/CONTRIBUTING.md |
Whoops forgot to mention that also a local production build is required, updated the contribution guide accordingly. |
@b6pzeusbc54tvhw5jgpyw8pwz2x6gs Anything here I can do to push this further? |
I will try to add some TCs soon. |
ae21226
to
94a48ef
Compare
The problem has not been reproduced by TC, so I am checking it. A little more modification is required. |
Seems like the issue is hard to track down in a e2e test, because the stream finishes before the result is returned. |
Yes, it makes sense. Another reason is that the state is initialized every
You can see that |
@ofhouse I have successfully reproduced by modifying the Below is test result at e54c365.
Can you add |
7879748
to
ec11689
Compare
Thanks, added the warmup flag to sammy. But tracking down this issue further would take too much time, so I would say the PR is fine with the test. |
Please check milliHQ/sammy#2 before mering this PR. |
f836be6
to
647fb7c
Compare
- Add warmContainers, but it should wait for merging milliHQ/sammy#1 . So @ts-expect-error comment is added temporally.
647fb7c
to
f302b0f
Compare
I just some "force push" to rebase latest main branch and remove unnecessary commit history. So, Be careful when checking out a branch. |
f302b0f
to
91e3596
Compare
@ofhouse With sammy v1.5.0, I confirmed that both reproducing and resolving problem are working fine. Please check it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks for taking the time and fixing the test! 👍
Just one thing that was left behind, then we can merge it!
defer
object for awaiting steam "write".createDeffered
is used in app too, so removetest/utils.ts
.@ofhouse It's hard to set e2e:test envrionments. I ran docker container using
docker-compose.yml
, but many TCs still failed. So if you add guide for testing, I can run and add TCs.