← Back to Pull requests

docs: correct WSL setup instructions #1534

Merged
majestic-owl448 merged 1 files (54 lines) on Sep 22, 2026 15:09 UTC
View on GitHub
majestic-owl448 majestic-owl448 commented on Sep 22, 2026 06:20 UTC
Author

Checklist:

<!-- Please follow this checklist and put an x in each of the boxes, like this: [x]. It will ensure that our team takes your pull request seriously. -->

  • I have read freeCodeCamp's contribution guidelines.

  • My pull request has a descriptive title (not a vague title like Update index.md)
  • <!-- Feel free to add any additional description of changes below this line -->

    Correct outdated and inaccurate instructions in the WSL setup guide:

  • Refer to Docker Desktop's Windows requirements and specify its minimum WSL version.

  • Recommend an Ubuntu LTS release supported by Playwright and remove the stale Git version example.

  • Explain how to install the VS Code WSL extension and enable Docker integration with Ubuntu.

  • Explain the default WSL memory limit, provide an 8 GB configuration example, and add the shutdown and restart steps before local setup.

  • Install pnpm 10 to match the project's package-manager major version.

  • Replace the broken Docker FAQ link and fix a typo.
  • Diff: 54 lines (+15 / -39) across 1 files Reviewer: raisedadead Review duration: 529m
    All Vouch review confidence checks passed
    Residual risk 0.09 = Change Risk (0.27) × (1 − Review Confidence (0.68)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.27 · 54 lines diff across 1 files
    0.27
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.43 · 2 substantive comment(s)
    0.43
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    68%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.240
    Real PR Conversation Timeline
    5 items
    raisedadead raisedadead commented on code on Sep 22, 2026 07:31 UTC
    Code Review
    src/content/docs/how-to-setup-wsl.mdx:1
    @@ -96,39 +99,45 @@ nvm install --lts
     
     For instructions on installing and using a different version of Node.js, please refer to the [nvm docs](https://github.com/nvm-sh/nvm#usage).
     
    -Node.js comes bundled with `npm`, which you can use to install `pnpm`:
    +Node.js comes bundled with `npm`, which you can use to install pnpm 10, the major version used by freeCodeCamp:
     
     ```bash
    -npm install -g pnpm
    +npm install -g pnpm@10
     ```
     
    -## Set up freeCodeCamp Locally
    -
    -Now that you have installed the pre-requisites, follow [our local setup guide](/how-to-setup-freecodecamp-locally/) to clone, install and set up freeCodeCamp locally on your machine.
    -
     ## Optimize memory allocation
     
    -The default settings for your WSL installtion can vary, we recommend tuning the memory allocated to WSL by Windows by following these steps.
    +By default, WSL 2 limits memory to 50% of your Windows machine's total RAM. On a machine with 12 GB of RAM, this gives WSL 6 GB, below the 8 GB required by the local setup guide. Configure the WSL memory limit before starting freeCodeCamp.
     
    -Create a `.wslconfig` file in your `%UserProfile%` directory, typically at `C:\Users\<UserName>\.wslconfig`. Replace `x` with values that suit your own needs:
    +Create a `.wslconfig` file in your `%UserProfile%` directory, typically at `C:\Users\<UserName>\.wslconfig`. The following example sets an 8 GB memory limit. Choose a limit that meets the local setup requirements while leaving enough RAM for Windows and your other applications:
     
     ```ini
     # Settings apply across all Linux distros running on WSL 2
     [wsl2]
    -# Memory to assign to the WSL 2 VMs.
    -memory=xGB
    -# Swap space (on disk) for the WSL 2 VMs, default is 25% of available RAM

    This is not accurate and becomes stale. The current way to allocate based on needs is the correct way.

    raisedadead raisedadead commented on code on Sep 22, 2026 07:32 UTC
    Code Review
    src/content/docs/how-to-setup-wsl.mdx:1
    @@ -96,39 +99,45 @@ nvm install --lts
     
     For instructions on installing and using a different version of Node.js, please refer to the [nvm docs](https://github.com/nvm-sh/nvm#usage).
     
    -Node.js comes bundled with `npm`, which you can use to install `pnpm`:
    +Node.js comes bundled with `npm`, which you can use to install pnpm 10, the major version used by freeCodeCamp:
     
     ```bash
    -npm install -g pnpm
    +npm install -g pnpm@10

    We will go up to pnpm 12 soon and also there is no requirement to use pnpm 10 system wide.

    raisedadead raisedadead requested changes on Sep 22, 2026 07:36 UTC
    Changes Requested Reviewer

    Some changes seem to conflate different pieces of guidance. Others just reword existing instructions, which I’m not sure is necessary.

    I’m fine with some of the changes to ordering and wording. However, I’m not sure we should recommend Docker Desktop at all.

    There are likely lightweight alternatives, but I’m not on Windows.

    In any case, we should NOT provide overly specific setup instructions for Windows. The last thing we want is for the guides to become a Windows troubleshooting Frankenstein’s monster. We emphasize that Windows support is limited.

    raisedadead raisedadead approved these changes on Sep 22, 2026 15:09 UTC
    Approved Reviewer

    Approved these changes.

    Reviewers
    Assignees
    majestic-owl448 majestic-owl448
    Labels
    risk: low confidence: 68.1% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 27.0% (LOW) · Higher = larger blast radius
    27.0%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 68.1% · Lower = rushed or shallow review
    68.1%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 8.6% · Safe to merge
    8.6%