← Back to Pull requests

Fix building on windows #69

Open
TimMonko opened this pull request with 13 lines diff across 1 files
View on GitHub
TimMonko TimMonko commented on Sep 25, 2026 23:36 UTC
Author

Description

When making #68, I ran into issues building on Windows.
As I'm used to this I thought I'd make a quick fix. It works now for me :grin:

``bash
npm install
uv run -p 3.13 --with-requirements requirements.txt python tools/bundle_posts.py && npm run develop


Note, that this *does not* fix some other issues, but I don't know in what way you want to handle those namely:

1. there are some outdated npm packages that get complained about
2. the make file specifically points to a global python3 install, so it breaks for me
3. the README says to install gatsby globally, which is also not needed

See:


uv run -p 3.13 --with-requirements requirements.txt python tools/bundle_posts.py && npm run develop
-> jobs\2021-04-13_quansight.yaml...OK
-> jobs\2021-04-14_coiled.yaml...OK
-> jobs\2021-04-22_julia.yaml...OK
-> jobs\2021-04-30_aperio.yaml...OK
-> jobs\2021-04-30_kitware.yaml...OK
-> jobs\2021-09-09_quansight.yaml...OK
-> jobs\2021-10-12_unitaryfund.yaml...OK
-> jobs\2021-10-13_quansight.yaml...OK
-> jobs\2021-11-18_zarr.yaml...OK
-> jobs\2021-11-30_gnuradio.yaml...OK
-> jobs\2021-12-03_gnuradio.yaml...OK
-> jobs\2022-01-13_unitaryfund.yaml...OK
-> jobs\2022-02-03_ropensci.yaml...OK
-> jobs\2022-02-04_sympy.yaml...OK
-> jobs\2022-03-01_nvidia.yaml...OK
-> jobs\2022-03-12_arviz.yaml...OK
-> jobs\2022-04-29_spyder.yaml...OK
-> jobs\2022-07-26_unitaryfund.yaml...OK
-> jobs\2022-09-02_opendp.yaml...OK
-> jobs\2022-11-11_mdanalysis.yaml...OK
-> jobs\2023-04-07_astropy.yaml...OK
-> jobs\2023-06-09_aperio.yaml...OK
-> jobs\2023-07-31_astropy.yaml...OK
-> jobs\2023-09-01_unitaryfund.yaml...OK
-> jobs\2024-05-17_quansight.yaml...OK
-> jobs\2024-05-18_quansight.yaml...OK
-> jobs\2024-06-17_earthmover.yaml...OK
-> jobs\2024-07-15_pybamm.yaml...OK
-> jobs\2024-07-16_pybamm.yaml...OK
-> jobs\2024-07-17_pybamm.yaml...OK
-> jobs\2026-09-25_napari.yaml...OK
Wrote posts to [src/jobs.mjs]

jobs-board@0.1.0 develop

gatsby develop

ERROR UNKNOWN

(node:18320) [DEP0040] DeprecationWarning: The punycode module is deprecated. Please use a userland alternative instead.
(Use
node --trace-deprecation ... to show where the warning was created)

Something is already running at port 8000

√ Would you like to run the app at another port instead? ... yes
⠇ compile gatsby files

ERROR UNKNOWN

(node:20884) [DEP0040] DeprecationWarning: The punycode module is deprecated. Please use a userland alternative instead.
(Use
node --trace-deprecation ... to show where the warning was created)

success compile gatsby files - 2.288s
success load gatsby config - 0.007s
success load plugins - 0.186s
success onPreInit - 0.001s
success initialize cache - 0.023s
success copy gatsby files - 0.113s
success Compiling Gatsby Functions - 0.410s
success onPreBootstrap - 0.439s

'WMIC' is not recognized as an internal or external command,
success createSchemaCustomization - 0.001s
success Clean up stale nodes - 0.011s - 34/0 0.00/s
success Checking for changed pages - 0.001s
success source and transform nodes - 0.055s
success building schema - 0.065s
success createPages - 0.015s
success createPagesStatefully - 0.054s
info Total nodes: 54, SitePage nodes: 34 (use --verbose for breakdown)
success Checking for changed pages - 0.002s
success write out redirect data - 0.005s
success onPostBootstrap - 0.001s
info bootstrap finished - 5.486s
success onPreExtractQueries - 0.002s
success extract queries from components - 0.088s
success write out requires - 0.019s
⠹ Building development bundle
<w> [webpack.cache.PackFileCacheStrategy] Caching failed for pack: Error: Can't resolve '@types/node' in 'C:\Users\timmo\Documents\GitHub\jobs-board\node_modules\terser-webpack-plugin\node_modules\jest-worker'
<w> while resolving '@types/node' in C:\Users\timmo\Documents\GitHub\jobs-board\node_modules\terser-webpack-plugin\node_modules\jest-
⠀
You can now view jobs-board in the browser.
⠀
http://localhost:8001/
⠀
View GraphiQL, an in-browser IDE, to explore your site's data and schema
⠀
http://localhost:8001/___graphql
⠀
Note that the development build is not optimized.
To create a production build, use gatsby build
⠀
success Building development bundle - 5.982s
success Writing page-data.json and slice-data.json files to public directory - 0.031s - 0/32 1038.49/s

<w> [webpack.cache.PackFileCacheStrategy] Caching failed for pack: Error: Can't resolve '@types/node' in 'C:\Users\timmo\Documents\GitHub\jobs-board\node_modules\terser-webpack-plugin\node_modules\jest-worker'
<w> while resolving '@types/node' in C:\Users\timmo\Documents\GitHub\jobs-board\node_modules\terser-webpack-plugin\node_modules\jest-
success onPreExtractQueries - 0.002s
success extract queries from components - 0.015s
success write out requires - 0.001s
success Writing page-data.json and slice-data.json files to public directory - 0.009s - 1/32 3756.22/s
``

Diff: 13 lines (+7 / -6) across 1 files Reviewer: stefanv Review duration: 28134m
All Vouch review confidence checks passed
Residual risk 0.03 = Change Risk (0.19) × (1 − Review Confidence (0.85)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.19 · 13 lines diff across 1 files
0.19
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.89 · 2 substantive comment(s)
0.89
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
85%
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.158
Real PR Conversation Timeline
4 items
stefanv stefanv commented on code on Sep 26, 2026 21:24 UTC
Code Review
tools/bundle_posts.py:1
@@ -51,15 +52,15 @@ def default(self, obj):
 
     post['expires'] = expires
     post['date'] = date
-    post['id'] = os.path.splitext(os.path.basename(job))[0]
+    post['id'] = os.path.splitext(basename)[0]

Why this change?

stefanv stefanv approved these changes on Sep 26, 2026 21:24 UTC
Approved Reviewer

Looks good to me overall!

stefanv stefanv commented on Sep 26, 2026 21:25 UTC
Contributor

Thanks, Tim!

Reviewers
Assignees
TimMonko TimMonko
Labels
risk: low confidence: 85.4% 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: 18.8% (LOW) · Higher = larger blast radius
18.8%
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: 85.4% · Lower = rushed or shallow review
85.4%
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: 2.8% · Safe to merge
2.8%