Skip to content
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 store warnings as cache bound objects during display requests #11687

Merged
merged 1 commit into from
Jun 11, 2024

Conversation

kLabz
Copy link
Contributor

@kLabz kLabz commented Jun 7, 2024

See #11675 (not closing because I'd like to add a test first)

@Simn
Copy link
Member

Simn commented Jun 7, 2024

The obvious question here is if this is really the fix we want or if the warning shouldn't occur in the first place.

@kLabz
Copy link
Contributor Author

kLabz commented Jun 7, 2024

We're not reading expressions for many modules during display requests; this kind of warnings are bound to happen.

The correct way to handle it would indeed be to do more advanced checks where we emit those warnings (and it's not only about WInlinedOptimizedField), but it's a lot more work and likely a lot of trial and error.

I don't think this PR is wrong either way: display requests are not doing work that is persisted so they should not write cache bound objects.

@Simn
Copy link
Member

Simn commented Jun 7, 2024

I don't think this PR is wrong either way: display requests are not doing work that is persisted so they should not write cache bound objects.

That seems quite agreeable, but here we're only fixing it for warnings in particular. I can't really think of any problems that would come from resources or include files, but we could run into this again in the future if we add more CBOs.

Then again the nature of warnings makes this rather particular indeed, and perhaps it's really the only potential issue that could arise from display requests. I'm fine with merging this but let's keep this in mind.

@kLabz
Copy link
Contributor Author

kLabz commented Jun 7, 2024

Yeah I plan to look into other cache bound objects while adding tests, but not sure I'll find problems with those.

@skial skial mentioned this pull request Jun 10, 2024
1 task
@kLabz
Copy link
Contributor Author

kLabz commented Jun 11, 2024

Merging this for now, but keeping #11675 open until my next PR that will handle tests (and potential issues with other cache bound objects).

@kLabz kLabz merged commit ec35bac into development Jun 11, 2024
99 checks passed
@kLabz kLabz deleted the fix/hxb-WInlineOptimizedField branch January 21, 2025 07:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants