pg-boss 12 won't compile, and its schema migration needs checking
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
- 58/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- bun, typescript
Línea de trabajo
Start with the pg-boss 11 and 12 release notes, then inspect packages/jobs/src/index.ts and packages/jobs/src/index.test.ts; check the constructor, schedule, and work options against the v12 docs. Run bun run typecheck and bun test packages/jobs, then test upgrading a dev instance with a scheduled job from version 10 and document whether it runs after restart. Done means the migration behavior is understood and recorded in the PR.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Dependabot's #15 moves pg-boss from 10.4.2 to 12.40.0, two majors in one step. It doesn't compile at d3f9dcc0, and compiling is the easy half.
The import changed: version 12 has no default export, so import PgBoss from "pg-boss" becomes import { PgBoss } from "pg-boss". With the class unresolved, the error handler and several test callbacks lose their types too (TS7006 on err and s).
Where
packages/jobs/src/index.ts:3(the import) and:163(boss.on("error", …))packages/jobs/src/index.test.ts:54,:62,:66,:226
What to change
- Switch to the named import and let the types come back.
- Read pg-boss's release notes for 11 and 12 before you go further. pg-boss migrates its own schema when it starts, and every Sentrello install runs that migration the first time it boots the new version. We need to know what it does to queued and scheduled jobs on a running instance, and the PR should say so in its description.
- Check every option we pass to
new PgBoss(…),scheduleandworkagainst the 12 docs. An option that was renamed won't always fail the typecheck, so read rather than trust the compiler.
This one isn't a quick fix, and I'd rather it went slowly and right. If you take it, say so here and I'll assign it.
Test
bun run typecheck
bun test packages/jobs
Then the part a test can't show: start a dev instance on 10 with a scheduled job, stop it, upgrade, start it again, and confirm the job still runs. Put what you saw in the PR.
- Lenguaje dominante
- TypeScript
- Estrellas
- 13
- Forks
- 3
- Merge medio
- 38 min
- PR fusionados (30 d)
- 14
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 Sentrello/Sentrello
-
dependencies good first issue javascript
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
Los mantenedores suelen responder en 1 día
-
dependencies help wanted javascript
Dificultad 3/5 1-2 días Aptitud para principiantes 67/100
Los mantenedores suelen responder en 1 día
Todos los issues de Sentrello/Sentrello
Issues similares
-
agent/guide documentation help wanted stage/010-actionable
Dificultad 1/5 Menos de una hora Aptitud para principiantes 82/100
kubestellar/console-marketplace#1101 ·
Los mantenedores suelen responder en 1 día
-
Java Edition Tests
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
JSPrismarine/JSPrismarine#4178 · 1 comentario · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
totec448-spec/chat-on-steroids#2394 ·
Los mantenedores suelen responder en 1 día
-
github_actions
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
StellarHyperion/stellarhyperion-backend#499 ·
Los mantenedores suelen responder en 1 día