Registry / devops / rush-audit-cache-plugin

rush-audit-cache-plugin

JSON →
library0.3.2jsnpmunverified

rush-audit-cache-plugin is a diagnostic utility designed to provide deep insights into the behavior of the Rush.js build cache. It helps monorepo maintainers understand why cache hits or misses occur, identifying potential misconfigurations or inefficiencies. As of its current stable version, 0.3.2, it is a pre-1.0 release, indicating ongoing development, though it's actively maintained within the TikTok rush-plugins monorepo. The plugin differentiates itself by leveraging low-level system calls (via `strace` on Linux) to precisely track file system interactions during builds, offering a granular view beyond what typical cache logs provide. Its release cadence is not public, likely tied to its maintainers' internal development needs.

npm install rush-audit-cache-plugin
INSTALL
IMPORT
SIG · RUSH-AUDIT-CACHE-P
R
rush-audit-cache-plugin
devopsjavascriptv0.3.2
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

rush-audit-cache-plugin
// No direct JavaScript/TypeScript import is typically used by end-users. // The plugin is enabled via Rush's configuration system, e.g., in common/config/rush/rush-plugins.json: // { // "plugins": [ // { // "packageName": "rush-audit-cache-plugin", // "pluginName": "rush-audit-cache-plugin" // } // ] // }
import { auditCache } from 'rush-audit-cache-plugin';
This package is a Rush CLI plugin, not a library meant for direct programmatic imports by end-user applications. Its functionality is exposed via the `rush audit-cache` command after being configured in `rush-plugins.json`.

Shows how to enable the plugin in Rush configuration and run the audit-cache command for a specific project.

{ // common/config/rush/rush-plugins.json "plugins": [ { "packageName": "rush-audit-cache-plugin", "pluginName": "rush-audit-cache-plugin" } ] } // Then, from your monorepo root, run: rush audit-cache --project <your-project-name>
Debug
Known issues
breakingThe plugin has a hard dependency on `strace`, a Linux system utility. This means the `audit-cache` command is currently only functional on Linux environments.
fix
Ensure you are running the `rush audit-cache` command on a Linux operating system with `strace` installed and accessible in the system PATH. Windows and macOS are not supported.
affects: >=0.1.0
gotchaThe plugin requires Rush.js version 5.57.0 or higher. Using an older version of Rush.js will prevent the plugin from being loaded or functioning correctly.
fix
Upgrade your Rush.js installation to version 5.57.0 or newer by updating the `rushVersion` in your `rush.json` file and running `rush update`.
affects: >=0.1.0
gotchaThis package is a Rush plugin and must be enabled via Rush's plugin configuration system (typically in `common/config/rush/rush-plugins.json`). Simply installing the package via npm/yarn is not sufficient.
fix
Refer to the Rush.js official documentation on 'Using Rush plugins' and ensure the plugin is correctly listed in `rush-plugins.json`.
affects: >=0.1.0
Errors
Common errors & fixes
Error: Command 'audit-cache' is not a registered command for Rush.
The `rush-audit-cache-plugin` has not been correctly enabled or loaded by Rush.
fix
Verify that `rush-audit-cache-plugin` is listed in your `common/config/rush/rush-plugins.json` file and that `rushVersion` in `rush.json` meets the minimum requirement (>= 5.57.0). Run `rush update` to ensure plugin installation.
Error: 'strace' not found in PATH. Please install strace (e.g. 'sudo apt-get install strace')
The essential `strace` utility is missing from the system where the command is being executed.
fix
Install `strace` on your Linux system. For Debian/Ubuntu-based systems, use `sudo apt-get install strace`. For other distributions, consult their package manager documentation. Ensure it's in your system's PATH.
Error: Argument for option 'project' must be a project in the current Rush workspace.
The provided project name via `--project` does not correspond to an existing project in the Rush monorepo.
fix
Double-check the spelling of the project name. Use `rush projects` to list all available projects in your monorepo and ensure you are providing a valid project `--project <project-folder-name>`.
Upgrade
Version history
0.3.2latest on npm
Audit
Dependencies
Rush.jsrequiredThis is a plugin for Rush.js and requires version 5.57.0 or newer to function.
stracerequiredThe plugin relies on `strace` (a Linux utility) for its diagnostic capabilities, making it Linux-only.
Agent activity
5 hits · last 30 days
node
4
Resources
rush-audit-cache-plugin — npm install rush-audit-cache-plugin · libregistry