Repository navigation
fix(sqlite3): uprev to @vscode/sqlite3 and fix CVEs - #18117
Conversation
Pre-requisite: MSVC v14x - VS 202x C++ x64/x86 Spectre‑mitigated libs
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
📝 WalkthroughWalkthroughReplaces the sqlite3 runtime dependency with the VSCode-maintained fork, relaxes sqlite3 error-message assertions in integration tests to regex matching, and adds a Windows CI step to install Spectre-mitigated MSVC libraries. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Tip Try Coding Plans. Let us write the prompt for your AI agent so you can ship faster (with fewer bugs). Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
hey team, what do you think of this interim solution until |
WikiRik
left a comment
There was a problem hiding this comment.
Looks good, but I'm interested to see if we can do without the patch. And I have a question for something I'm not 100% sure about (and this is a quick review so I didn't dive into the codebase myself)
8507ca0 to
f19aa87
Compare
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In @.github/workflows/ci.yml:
- Around line 133-136: Update the "Install MSVC Spectre-mitigated libraries"
step to (1) use the correct Spectre component IDs
(Microsoft.VisualStudio.Component.VC.Runtimes.x86.x64.Spectre and
Microsoft.VisualStudio.Component.VC.Runtimes.ARM64.Spectre) instead of
Microsoft.VisualStudio.Component.VC.SpectreMitigated, (2) locate Visual Studio
dynamically with vswhere.exe to compute the --installPath rather than using the
hard-coded "C:\Program Files\Microsoft Visual Studio\2022\Enterprise", and (3)
treat installer exit code 3010 (ERROR_SUCCESS_REBOOT_REQUIRED) as success
(map/translate 3010 to exit code 0 or ignore it) so the pwsh step does not fail
CI when a reboot is required.
In `@packages/core/test/integration/error.test.ts`:
- Around line 679-683: The assertion using
expect(error.cause.message).match(...) is missing the chained `.to.` used
throughout this test file; update the expression in error.test.ts so the call
becomes expect(error.cause.message).to.match(...), keeping the same regex and
leaving the surrounding test and variable names (expect, error.cause.message,
.match) intact for consistency with other assertions like those at lines with
expect(...).to.match(...).
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
|
Cleaned up, commented, and ready to merge. Reverting to old |
Pull Request Checklist
Description of Changes
sqlite3uprev.sqlite3oldtardependency.Three commits, allowing you to chose the level of change:
SpectreMitigationflag (Pre-requisite:MSVC v14x - VS 202x C++ x64/x86 Spectre‑mitigatedVisual Studio libs)SpectreMitigation@vscode/sqlite3which requires someconnection-manager.tschangesList of Breaking Changes
Optional pre-requisite:
MSVC v14x - VS 202x C++ x64/x86 Spectre‑mitigatedVisual Studio libs installed, if not using the yarn patch file and want the SpectreMitigations.Summary by CodeRabbit
Chores
Tests