[Windows] the npm package acceptance cannot run on Windows, and docs/installation.md says so
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 10/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Estancado
- Stack tecnológico
- github-actions, node.js, typescript
- Área
- build-system, ci-cd, cli
Línea de trabajo
The issue describes changes across scripts/verify-cli-release.mjs, scripts/verify.mjs, and the Windows smoke and BYOK test runs; it also reports that an implementation already passes on a contributor branch. Read those scripts and the branch evidence first, then check which changes, if any, remain unmerged. Done means Windows package acceptance runs successfully and docs/installation.md reflects the verified behavior.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Labels requested: ci, documentation, needs-triage
Product or interface
Source build or repository tooling — the npm package acceptance of the CLI release.
Version
- Source:
main@3c21163(repository version0.7.2), tagv0.7.2=c6c7f28 - Node.js v24.18.0, pnpm 9.12.0
Platform
Windows
OS version and architecture
Windows 11 x64 (build 26200)
Issue area
Build / CI / source distribution
What happens
docs/installation.md states, in the installation section:
validated on Linux and macOS; Windows package acceptance is currently not run
That gap is still open, and it is not only a documentation statement — the acceptance itself cannot run on Windows today. scripts/verify-cli-release.mjs refuses the platform outright, and the release validator assumes a POSIX installation layout.
Steps to reproduce
scripts/verify-cli-release.mjsstarts with a platform guard that throws for anything that is not Linux or macOS.- The validator then assumes the POSIX npm layout (
<prefix>/lib/node_modules/…), the POSIX launcher (<prefix>/bin/mcode), and runsnpmas a command — which Node cannot start on Windows, where the executable isnpm.cmd. - The cleanup at the end of the run removes the temporary installation with a single
rmSyncwithout retries, which fails withEPERMon Windows while the freshly installed files are still closing. scripts/verify.mjsblocks thepackageprofile on Windows a second time, independently of the validator.
Expected and actual behavior
- Expected: the package acceptance runs on Windows like it runs on Linux and macOS, and the documentation line reflects what is actually verified.
- Actual: the acceptance is Windows-incompatible in five places, and
pnpm verify --profile packagecannot be executed on a Windows host at all.
What I changed
Branch: ci/windows-package-acceptance (commits f5ef17b, b029b41, a8cf597, ade841c, f719a0a, based on main @ 3c21163)
- The platform guard allows
win32alongsidelinuxanddarwin; the POSIX behaviour is unchanged. - npm is started without a command shell. The previous attempt built a
cmd.exe /ccommand line, which is not safe to quote:cmd.exehas no backslash escape, so a path containing"would end the quoted section and the rest would be parsed as command syntax, and%would still expand. npm now runs through its JavaScript entry point withprocess.execPath, the same pattern the repository already uses intest/windows-contract.test.mjs. - The installation layout and launcher are resolved for Windows (
<prefix>/node_modules/@minimax-ai/codeandmcode.cmd); the POSIX branch is byte-identical. - The cleanup retries with a delay and warns instead of failing the acceptance when Windows still holds a lock on a just-closed file.
- The
packageprofile is no longer blocked on Windows inscripts/verify.mjs.
The test step needed room on Windows
The acceptance ends with node --test test/smoke.test.mjs test/byok.test.mjs. On Windows those two files need substantially more time than the 240 s the wrapper allowed — measured on this host:
| file | duration | of which |
|---|---|---|
test/smoke.test.mjs |
175 036 ms (20 pass / 0 fail) | the proxy subtest alone 107 707 ms for eight children |
test/byok.test.mjs |
242 315 ms (2 pass / 0 fail) | first test 235 394 ms |
| sum | ~417 s | against the previous 240 s budget |
The reason is structural rather than incidental: test/smoke.test.mjs allows runtimeTimeoutMs = 30000 on Windows for each of the eight children in the proxy subtest, so 8 × 30 s = 240 s is already the entire outer budget before byok contributes anything. On Linux and macOS the per-child budget is 15 s, which still fits.
The wrapper's budget was raised accordingly, and the proxy subtest was brought down to 37 305 ms without weakening it: it still checks all eight variable names individually, and with the proxy handling in the child process broken, all eight cases fail (mutation evidence in the branch report).
Evidence
The acceptance passes on Windows with the branch applied:
MCODE_RELEASE_TAG=v0.7.2 \
MCODE_RELEASE_ARCHIVE=<...>/minimax-code-0.7.2.tar.gz \
MCODE_VERIFY_REPORT_DIR=<...> \
pnpm verify --profile package
→ test:release-package: PASS
The report the acceptance writes confirms the platform and the revision:
{
"status": "PASS",
"version": "0.7.2",
"revision": "ade841c08eed06f6327dc767f5b87e95470c3dcd",
"platform": "win32",
"arch": "x64",
"node": "v24.18.0"
}
The revision above is the commit before the documentation change, so the ordering is verifiable: the acceptance was green, and only then did docs/installation.md change. A second run on the earlier commit b029b41 is green as well, and a run on the final commit f719a0a takes 223.6 s.
The installed CLI itself is exercised by the acceptance — the npm global install, mcode.cmd --version, the SQLite binding, the bundled ripgrep, and the smoke and BYOK suites all run against the installed package, not against the source tree.
One caveat about the runtime
The acceptance is time-sensitive, and the eight proxy cases in the smoke suite now start their CLI children concurrently. On a machine that is already busy — for example when another acceptance run is in flight — those children compete for CPU and the step can fail intermittently. On an idle Windows host the step passes in ~224 s against the 600 s budget. If the step is ever added to a CI matrix, it should not run in parallel with other heavy jobs on the same runner.
What is deliberately not changed
The release matrix in scripts/lib/cli-release.mjs (cliReleaseTargets = ['ubuntu-latest', 'macos-latest']) and the workflow file are not touched — that is a release-pipeline decision. The four edits that would add a Windows job are prepared as a diff in the branch report and left for the maintainers:
scripts/lib/cli-release.mjs:30— addwindows-latesttocliReleaseTargets.github/workflows/cli-release.yml— the install job matrixscripts/publish-cli-release.mjs:24and:49— the publish targets
Before submitting
- I have searched existing issues.
- I have included my version and removed sensitive information.
- Lenguaje dominante
- TypeScript
- Estrellas
- 2.3k
- Forks
- 315
- Merge medio
- 3 h 54 min
- PR fusionados (30 d)
- 9
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de MiniMax-AI/minimax-code
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
MiniMax-AI/minimax-code#639 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
MiniMax-AI/minimax-code#636 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
MiniMax-AI/minimax-code#615 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
MiniMax-AI/minimax-code#556 · 4 comentarios ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
MiniMax-AI/minimax-code#507 ·
Los mantenedores suelen responder en 1 día
Todos los issues de MiniMax-AI/minimax-code
Issues similares
-
area:api bug good first issue priority:high
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Doezer/Questarr#1486 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
area:import difficulty:good-first good first issue help wanted priority:P1 roadmap size:S type:test
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
Sergey-Bar/Penny#245 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
mihazs/lazysh#3377 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
Approve the Cloudflare agent plugin for harness sessionsPosiblemente ocupada @joshtsch la tomó hoy. Abiertoenhancement ready-for-agent
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día