-
Notifications
You must be signed in to change notification settings - Fork 25
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
Do not serve stale values from the assets when there is no KV #344
Conversation
🦋 Changeset detectedLatest commit: fffd2ec The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
commit: |
fc72eb5
to
88662bb
Compare
c5c248f
to
22c1228
Compare
2455b26
to
fe96df4
Compare
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.
Could you add a comment in the file about what the code is doing an why?
no longer flaky (it makes the test always fail)
Is that an improvement?
ok
Yes, this is fixing a false positive we currently have, locally things are not working as intended, we are serving state cached data which make the test app-router fetch cache test pass, with this change the state data is no longer served so the underlying broken catching logic gets exposed |
I thought we discussed this and agreed that not keep always serving the same stale build time cache data was the correct behavior, if you disagree I'm fine closing the PR |
I agree with that 100%. My question was if going from flaky to failing is an improvement. I think the outcome of that PR should be that the tests are passing? |
Co-authored-by: Victor Berchet <[email protected]>
Well I see it as a temporary improvement, my plan here is to go from flaky-difficult-to-test bug -> consistently failing (easier to work on) bug -> fixed bug
The outcome of this PR is to fix the fact that now we can serve static stale assets forever, as a side effect this makes working on the fetch cache bug easier, that will be addressed in a separate PR (probably #340) |
The PR is about not serving stale cache values from assets when there is no KV binding. So I think the title and description of the PR must be updated as well as the changeset. You could also expand the description of the PR to tell more about why/which of the (skipped) tests always fail after this PR:
The kind of information that I am looking for is why this PR would make the tests always fail - it is supposed to change the behavior only when there is no kv binding but we have a kv binding in the tests. I hope this helps. |
Updated 👍
I've added the information, I hope it helps |
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.
Thanks a lot for the updates, super clear 🙏
Let's merge it |
This change makes sure that stale cache values from assets are not served when there is no KV binding.
This makes the issue in #328 no longer flaky (it makes the test always fail) since before it was passing because stale cache values were being served from assets (so the fetch cached result would always stay the same, making this check pass). The reason why KV is not being used is still being investigated.
No other tests besides the 328 one is affected as far as I know, since the 328 one was the only flaky we had, regarding all the other tests, the ones that were passing before as still passing after my change, and the ones that were failing before (and we skip) are failing after my change.