embeddings: fix default size limit#58262
Conversation
jtibshirani
left a comment
There was a problem hiding this comment.
Looks good to me. Could you explain what the outcome of the bug would look like (in case others run into this problem and want to know if it fixes their symptoms?)
keegancsmith
left a comment
There was a problem hiding this comment.
changelog entry and backport?
If users define file filters without defining |
This fixes a bug where the default size limit for files was set to 0 if `FileFilters` were defined. Until this fix is released, a workaround is to always define `MaxFileSizeBytes` if `FileFitlers` are defined. Test plan: - new unit test
858bba7 to
ab804b9
Compare
This fixes a bug where the default size limit for files was set to 0 if `FileFilters` were defined. This had the consequence that all files were skipped if file filters were defined but `MaxFileSizeBytes` was not explicitly set to a value >0. Until this fix is released, a workaround is to always define `MaxFileSizeBytes` if `FileFitlers` are defined. Test plan: - new unit test (cherry picked from commit 44b7c75)
| - Fixed a bug where typing in the GraphQL editor in the Site Admin API console could cause the cursor to jump to the start of the editor. [#57862](https://github.com/sourcegraph/sourcegraph/pull/57862) | ||
| - The blame column no longer ignores whitespace-only changes by default. [#58134](https://github.com/sourcegraph/sourcegraph/pull/58134) | ||
| - Long lines now wrap correctly in the diff view. [#58138](https://github.com/sourcegraph/sourcegraph/pull/58138) | ||
| - Defining file filters for embeddings jobs no longer causes all files to be skipped if `MaxFileSizeBytes` isn't defined. [#58262](https://github.com/sourcegraph/sourcegraph/pull/58262) |
There was a problem hiding this comment.
given you are backporting needs to be moved to 5.2.x unreleased sections?
There was a problem hiding this comment.
I wasn't sure how to handle this TBH. I thought it was preferable to have a clean merge and not assume the backport here. Probably overthinking it. I will take care that eventually things will make sense.
This moves the changelog entry from 5.3 to 5.2.x because in the meantime https://github.com/sourcegraph/sourcegraph/pull/58262 has been backported.
This moves the changelog entry from 5.3 to 5.2.x because in the meantime https://github.com/sourcegraph/sourcegraph/pull/58262 has been backported.
This fixes a bug where the default size limit for files was set to 0 if `FileFilters` were defined. This had the consequence that all files were skipped if file filters were defined but `MaxFileSizeBytes` was not explicitly set to a value >0. Until this fix is released, a workaround is to always define `MaxFileSizeBytes` if `FileFitlers` are defined. Test plan: - new unit test
This moves the changelog entry from 5.3 to 5.2.x because in the meantime https://github.com/sourcegraph/sourcegraph/pull/58262 has been backported.
This fixes a bug where the default size limit for files was set to 0 if
FileFilterswere defined.Until this fix is released, a workaround is to always define
MaxFileSizeBytesifFileFiltersare defined.Test plan: