Skip to content

Add test that will break if UnsafeSet breaks #86

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

Merged
merged 2 commits into from
Jul 25, 2024

Conversation

moio
Copy link
Contributor

@moio moio commented Jul 5, 2024

SQLite based caching uses an Informer that unsafely sets the Indexer as the ability to set it is not present in client-go at the moment.

Long term, we look forward contribute a patch to client-go to make that configurable.

Until then, we are adding this canary test that will panic in case the indexer cannot be set.

Verified

This commit was signed with the committer’s verified signature.
moio Silvio Moioli
Signed-off-by: Silvio Moioli <silvio@moioli.net>
Copy link
Contributor

@bigkevmcd bigkevmcd left a comment

Choose a reason for hiding this comment

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

Can I suggest adding the comment in the PR to the TestUnsafeSet so that other folks who read it understand why ?

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
@moio
Copy link
Contributor Author

moio commented Jul 25, 2024

Good point, added, thanks @bigkevmcd

@moio moio requested a review from bigkevmcd July 25, 2024 13:03
@moio moio merged commit f16ff2c into rancher:master Jul 25, 2024
1 check passed
@moio moio deleted the test_unsafe_hack branch July 25, 2024 13:18
krunalhinguu pushed a commit to krunalhinguu/lasso that referenced this pull request Sep 18, 2024
SQLite based caching uses an Informer that unsafely sets the Indexer as the ability to set it is not present in client-go at the moment.

Long term, we look forward contribute a patch to client-go to make that configurable.

Until then, we are adding this canary test that will panic in case the indexer cannot be set.

Signed-off-by: Silvio Moioli <silvio@moioli.net>
moio added a commit to moio/rancher that referenced this pull request Oct 2, 2024

Verified

This commit was signed with the committer’s verified signature.
moio Silvio Moioli
This includes various fixes to the UI Server-Side Pagination experimental
feature:

https://ranchermanager.docs.rancher.com/how-to-guides/advanced-user-guides/enable-experimental-features/ui-server-side-pagination

- rancher/lasso#86
- rancher/lasso#90
- rancher/lasso#85
- rancher/lasso#92
- rancher/lasso#79
- rancher/lasso#97
- rancher/lasso#94
- rancher/lasso#98
- rancher/lasso#108
- rancher/lasso#99

It also includes improvements to code collecting metrics:
- rancher/lasso#89
- rancher/lasso#95

And to test code:
- rancher/lasso#100
- rancher/lasso#101

Signed-off-by: Silvio Moioli <silvio@moioli.net>
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.

None yet

3 participants