You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix: declare published core runtime dependencies - #48
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.
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.
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.
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.
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: 5
Check name
Status
Explanation
Description Check
Check skipped - CodeRabbit’s high-level summary is enabled.
Title check
The title clearly and concisely describes the main change: declaring the published core package's runtime dependencies.
Docstring Coverage
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
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
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.
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fix production-only installs of the npm package: importing published
m4k@0.3.6fails withCannot find package 'tasque'. Its audio/video/image processors importtasque, 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.m4k@0.3.7with a changelog entry and refreshed lockfile.NODE_PATHor a system FFmpeg override.Change at a glance
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-lockfilebun 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:/infoand 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.