Skip to content

fix: declare published core runtime dependencies - #48

Merged
sv2dev merged 1 commit into
mainfrom
fix/core-runtime-dependencies
Nov 4, 2026
Merged

sv2dev merged 1 commit into
mainfrom
fix/core-runtime-dependencies

Conversation

@sv2dev

@sv2dev sv2dev commented Nov 4, 2026 •

Copy link
Copy Markdown
Owner

Summary

Fix production-only installs of the npm package: importing published m4k@0.3.6 fails with Cannot find package 'tasque'. Its audio/video/image processors import tasque, and its default FFmpeg path imports @ffmpeg-installer/ffmpeg, but both packages were declared only as development dependencies. Workspace tests and the bundled Docker server hid the missing runtime declarations.

  • Move both packages to runtime dependencies and prepare m4k@0.3.7 with a changelog entry and refreshed lockfile.
  • Add a packed-package smoke test to PR CI. It installs the actual tarballs with production dependencies only into a temporary project outside the workspace, copies the test runner there to prevent workspace module resolution, and checks real JPEG → WebP and MP3 → Ogg processing without NODE_PATH or a system FFmpeg override.
  • Override only the internal common package to its freshly packed tarball so future unpublished workspace versions can also be tested. Queue and FFmpeg dependencies must come from the core tarball's dependency declarations.

Change at a glance

m4k 0.3.6 -> 0.3.7
  tasque                    devDependencies -> dependencies
  @ffmpeg-installer/ffmpeg   devDependencies -> dependencies

PR CI: build -> types -> unit tests -> isolated packed-production smoke

No media-processing API or classifier-profile changes. Other package versions and the existing Docker image version remain unchanged. No manual publishing; merging this PR triggers the existing core-package publication workflow.

Verification

From a clean detached checkout:

  • bun install --frozen-lockfile
  • bun run build && bun run typecheck && bun run test — passed; the two existing 10-bit AVIF/FFmpeg cases remain skipped.
  • bash scripts/package-smoke.sh — passed: production-only imports, real JPEG → WebP, and bundled FFmpeg MP3 → Ogg; install scripts disabled.
  • bash scripts/container-smoke.sh m4k:runtime-dependencies-check — passed: /info and JPEG → WebP.

Dependency/release metadata and CI coverage only; no UI demo or architecture diagram is applicable. GitHub Actions: Test and Build passed both required jobs on head 84be2b257c6d2c323d381d7b23149a4ea6a80a92.

@coderabbitai

coderabbitai Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The core package version changes to 0.3.7 and declares tasque and @ffmpeg-installer/ffmpeg as runtime dependencies. A production-only smoke test checks packed packages, image and audio processing, and runs in the test job.

Changes

Package production validation

Layer / File(s) Summary
Core runtime dependency declarations
packages/core/package.json, packages/core/CHANGELOG.md
The core package version changes from 0.3.6 to 0.3.7. tasque and @ffmpeg-installer/ffmpeg move to runtime dependencies. The changelog records this change.
Isolated package smoke test
scripts/package-smoke.sh, scripts/package-smoke.ts
The shell script packs the common, core, and client packages and installs them in a temporary consumer. The smoke runner checks image-classification exports, JPEG-to-WebP processing, and MP3-to-Ogg processing.
CI smoke-test execution
.github/workflows/test-build.yaml
The test job runs the smoke-test script after build, typecheck, and test steps.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix

Merge Risk: Minimal · up to 84be2

The change addresses missing production dependencies and adds isolated package checks. No actionable merge-blocking risk is established; merge after normal CI succeeds.

Pre-merge checks: Passed 5
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title clearly and concisely describes the main change: declaring the published core package's runtime dependencies.
Docstring Coverage Passed No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 2 files. (3 skipped: 3 unsupported.)

Finishing Touches
Generate docstrings
  • Commit to this branch
  • Create a new PR
Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

I’m a rabbit with packages packed,
I check each file as it hops through the stack.
WebP and Ogg pass my test,
The production bundle is put to the test.
Then I nibble a leaf and hop back to my nest.

Recent review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 5625f58a-fa1e-4a5e-acc0-3362c4fa86aa
Commits

Reviewing files that changed from the base of the PR and between fa4c7a8 and 84be2b2.

Files ignored due to path filters: 1
  • bun.lock is excluded by !**/*.lock
Files selected for processing: 5
  • .github/workflows/test-build.yaml
  • packages/core/CHANGELOG.md
  • packages/core/package.json
  • scripts/package-smoke.sh
  • scripts/package-smoke.ts

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@sv2dev
sv2dev merged commit 2217379 into main Nov 4, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant