#7303 · Historical plugin failures override compatible range review
2026-11-09 · trusted base f725841e324846711029f9e96924e603f04b3cb5
Verdict: REPRODUCED · Root-cause confidence: high · label: confirmed-repro
1. TL;DR
An earlier failed plugin activation suppresses a later compatible release that requires reviewing a new version range. The update data can contain both a valid range candidate and an historical failure; those values are not mutually exclusive. The release button rejects every candidate when a failure exists, and the dialog independently prioritizes the failure screen. A new end-to-end component regression fails on unchanged trusted main in two separate clean checkouts. Removing the two obsolete precedence restrictions restores explicit review and submits the selected range and version only after confirmation.
2. Claims vs findings
| Claim | Finding | Evidence |
|---|---|---|
| Historical failure hides review for a compatible out-of-range release. | Verified | Both trusted-base runs fail because the accessible Review button is absent. |
| Opening the dialog shows the historical failure instead of the current candidate. | Verified | Enabling only the button still fails the integrated test: the rendered heading is Update failed, not the candidate confirmation. |
| The candidate can be reviewed and installed with a new range. | Verified at the component/API-request boundary | After the fix the regression opens review, confirms no request before approval, then observes range ^4.0.0 and expectedVersion 4.2.0. |
| A real marketplace activation produced this persisted state. | Unverified | Synthetic typed update state; no marketplace activation, real plugin, provider, database, or production record is used. |
| Original reporter-specific platform and test totals. | Not independently asserted | This investigation uses Linux and a newly authored test, not the reporter's branch, scripts, or tests. |
3. Environment
- Public repository get-bb/bb, trusted origin/main at
f725841e324846711029f9e96924e603f04b3cb5. - Linux x86_64, Node v22.19.0, pnpm 9.15.0; app Vitest configuration with jsdom and existing shared-worker projects.
- Two separate temporary worktrees, denoted
$WORK/firstand$WORK/second; both start at the same recorded base. - Frozen dependency install and
pnpm exec turbo run build --filter=@bb/appsucceed in both checkouts. - No provider, product server, product database, or production data. A disposable Vite component harness on port 47733 was attempted, then stopped and unshared.
Screenshot limitation: the isolated execution host has no Chrome/Chromium executable, so the Browser Automation plugin cannot open a local browser there. A remote headless browser cannot access that host's loopback server and its shared URL requires authentication. No credentials were read or supplied. No screenshot is presented or fabricated; the repeatable component rendering and request assertions are the evidence.
4. Minimal reproduction
- Fetch the trusted repository and create a clean worktree at the base:
git fetch origin main WORK=$(mktemp -d) git worktree add --detach "$WORK/first" f725841e324846711029f9e96924e603f04b3cb5 cd "$WORK/first" pnpm install --frozen-lockfile --prefer-offline pnpm exec turbo run build --filter=@bb/app
Apply this independently authored test-only patch. It uses existing repository fixtures and exercises the real release control, real dialog and real request client, mocking only the network response:
diff --git a/apps/app/src/components/plugin/management/PluginUpdatesCard.test.tsx b/apps/app/src/components/plugin/management/PluginUpdatesCard.test.tsx
index 0e283e51b1..fa1000fb72 100644
--- a/apps/app/src/components/plugin/management/PluginUpdatesCard.test.tsx
+++ b/apps/app/src/components/plugin/management/PluginUpdatesCard.test.tsx
@@ -186,6 +186,79 @@ describe("PluginDetailReleaseControl", () => {
).toContain("Requires bb >= 9. 1.6.2 remains installed.");
});
+ it("reviews and confirms a range upgrade after a historical activation failure", async () => {
+ const fetchMock = vi.fn<typeof fetch>().mockResolvedValue(
+ Response.json(
+ {
+ job: {
+ id: "range-update",
+ pluginId: "linear",
+ displayName: "Linear",
+ state: "running",
+ phase: "preparing",
+ },
+ },
+ { status: 202 },
+ ),
+ );
+ vi.stubGlobal("fetch", fetchMock);
+ const { wrapper } = createQueryClientTestHarness();
+ render(
+ <PluginDetailReleaseControl
+ plugin={plugin({
+ version: "3.4.1",
+ source: "npm:@example/linear@^3.4.0",
+ provenance: "catalog",
+ updateState: {
+ ...EMPTY_PLUGIN_UPDATE_STATE,
+ outcome: "current",
+ lastFailure: {
+ version: "4.0.0",
+ label: "4.0.0",
+ at: null,
+ detail:
+ "Activation failed and the previous version was restored.",
+ },
+ rangeUpgrade: {
+ currentRange: "^3.4.0",
+ range: "^4.0.0",
+ basis: "catalog",
+ candidate: {
+ version: "4.2.0",
+ label: "4.2.0",
+ display: "4.2.0",
+ },
+ breaking: true,
+ reasons: [],
+ },
+ },
+ })}
+ />,
+ {
+ wrapper: ({ children }) => (
+ <MemoryRouter>{wrapper({ children })}</MemoryRouter>
+ ),
+ },
+ );
+
+ fireEvent.click(
+ screen.getByRole("button", {
+ name: "Review the update of Linear to 4.2.0",
+ }),
+ );
+ expect(
+ await screen.findByRole("heading", { name: "Update Linear to 4.2.0?" }),
+ ).toBeTruthy();
+ expect(fetchMock).not.toHaveBeenCalled();
+
+ fireEvent.click(screen.getByRole("button", { name: "Update to 4.2.0" }));
+
+ await waitFor(() => expect(fetchMock).toHaveBeenCalledTimes(1));
+ expect(fetchMock.mock.calls[0]?.[1]?.body).toBe(
+ JSON.stringify({ range: "^4.0.0", expectedVersion: "4.2.0" }),
+ );
+ });
+
it("retries a failed update from the release action without opening a modal", async () => {
let completeUpdate: (() => void) | undefined;
const fetchMock = vi.fn(
Run from the checkout root:
pnpm exec turbo run test --filter=@bb/app -- src/components/plugin/management/PluginUpdatesCard.test.tsx src/components/plugin/management/UpdatePluginDialog.test.tsx
Expected: Review opens the confirmation for 4.2.0 without starting an update; confirmation submits {"range":"^4.0.0","expectedVersion":"4.2.0"}.
Actual on unchanged main, both checkouts:
TestingLibraryElementError: Unable to find an accessible element with the role "button" and name "Review the update of Linear to 4.2.0"
Test Files 1 failed | 1 passed (2)
Tests 1 failed | 13 passed (14)
Diagnostic experiment: removing only the failure restriction in the release control exposes the second blocker:
TestingLibraryElementError: Unable to find role="heading" and name "Update Linear to 4.2.0?"
Rendered heading: Update failed
Test Files 1 failed | 1 passed (2)
Tests 1 failed | 13 passed (14)
Complete regression test file (replace the existing file after checking out the base)
// @vitest-environment jsdom
import { pluginUpdateJobsQueryKey } from "@/hooks/queries/query-keys";
import { MemoryRouter } from "react-router-dom";
import {
cleanup,
fireEvent,
render,
screen,
waitFor,
} from "@testing-library/react";
import { afterEach, describe, expect, it, vi } from "vitest";
import { createQueryClientTestHarness } from "@/test/queryClientTestHarness";
import {
EMPTY_PLUGIN_UPDATE_STATE,
type PluginListItem,
} from "@/hooks/queries/plugin-settings-queries";
import {
PluginDetailReleaseControl,
PluginDetailReleaseStatus,
pluginHasUpdateSurfaces,
} from "./PluginUpdatesCard";
import { makePluginListItem } from "@/test/fixtures/plugins";
function plugin(overrides: Partial<PluginListItem> = {}): PluginListItem {
return makePluginListItem({
id: "linear",
source: "npm:@example/linear@^1.6.0",
rootDir: "/plugins/linear",
version: "1.6.2",
name: "Linear",
sourceDisplay: "npm · @bb-plugins/linear · pinned",
...overrides,
});
}
afterEach(() => {
cleanup();
vi.unstubAllGlobals();
vi.restoreAllMocks();
});
describe("pluginHasUpdateSurfaces", () => {
it("hides update surfaces for bundled plugins regardless of provenance", () => {
expect(
pluginHasUpdateSurfaces(
plugin({ provenance: "catalog", source: "builtin:github" }),
),
).toBe(false);
expect(
pluginHasUpdateSurfaces(
plugin({ provenance: "builtin", source: "builtin:secrets" }),
),
).toBe(false);
expect(pluginHasUpdateSurfaces(plugin({ provenance: "direct" }))).toBe(
true,
);
expect(pluginHasUpdateSurfaces(plugin({ provenance: "catalog" }))).toBe(
true,
);
});
});
describe("PluginDetailReleaseControl", () => {
it("offers a compatible update as a compact release action", () => {
const { wrapper } = createQueryClientTestHarness();
render(
<PluginDetailReleaseControl
plugin={plugin({
updateState: {
...EMPTY_PLUGIN_UPDATE_STATE,
availableVersion: "1.9.0",
availableLabel: "1.9.0",
},
})}
/>,
{
wrapper: ({ children }) => (
<MemoryRouter>{wrapper({ children })}</MemoryRouter>
),
},
);
const update = screen.getByRole("button", {
name: "Update Linear to 1.9.0",
});
expect(update).toBeTruthy();
expect(update.querySelector('[data-icon="Download"]')).not.toBeNull();
expect(screen.queryByText("Compatible with your bb.")).toBeNull();
});
it("shows a blocked update inline without a modal or disabled action", () => {
const { wrapper } = createQueryClientTestHarness();
render(
<PluginDetailReleaseStatus
plugin={plugin({
updateState: {
...EMPTY_PLUGIN_UPDATE_STATE,
blockedVersion: "1.9.0",
blockedLabel: "1.9.0",
blockedReasons: ["requires bb >= 0.15"],
},
})}
/>,
{
wrapper: ({ children }) => (
<MemoryRouter>{wrapper({ children })}</MemoryRouter>
),
},
);
const blockedStatus = screen.getByRole("status", {
name: "Update blocked",
});
expect(screen.queryByText("Update blocked")).toBeNull();
expect(blockedStatus.textContent).toContain("Requires bb >= 0.15.");
expect(blockedStatus.textContent).toContain("1.6.2 remains installed");
expect(blockedStatus.textContent).toContain(
"check again when a compatible plugin version is available",
);
expect(blockedStatus.textContent).not.toContain("Update bb");
expect(screen.queryByRole("button")).toBeNull();
expect(screen.queryByRole("dialog")).toBeNull();
});
it("offers a release outside the saved range for review and never one that cannot run here", () => {
const rangeUpgrade = {
currentRange: "^1.6.0",
range: "^2.0.0",
basis: "catalog" as const,
candidate: { version: "2.0.0", label: "2.0.0", display: "2.0.0" },
breaking: true,
reasons: [],
};
const wrapper = ({ children }: { children: import("react").ReactNode }) => (
<MemoryRouter>
{createQueryClientTestHarness().wrapper({ children })}
</MemoryRouter>
);
const offered = plugin({
updateState: {
...EMPTY_PLUGIN_UPDATE_STATE,
outcome: "current",
rangeUpgrade,
},
});
render(
<>
<PluginDetailReleaseControl plugin={offered} />
<PluginDetailReleaseStatus plugin={offered} />
</>,
{ wrapper },
);
expect(
screen.getByRole("button", {
name: "Review the update of Linear to 2.0.0",
}),
).toBeTruthy();
expect(
screen.getByRole("status", { name: "Update outside the version range" })
.textContent,
).toBe(
"2.0.0 is available outside the version range ^1.6.0 this plugin follows. The marketplace now lists ^2.0.0. It may include breaking changes, so bb won’t install it until you review it.",
);
cleanup();
const blocked = plugin({
updateState: {
...EMPTY_PLUGIN_UPDATE_STATE,
outcome: "current",
rangeUpgrade: { ...rangeUpgrade, reasons: ["requires bb >= 9"] },
},
});
render(
<>
<PluginDetailReleaseControl plugin={blocked} />
<PluginDetailReleaseStatus plugin={blocked} />
</>,
{ wrapper },
);
expect(screen.queryByRole("button")).toBeNull();
expect(
screen.getByRole("status", { name: "Update outside the version range" })
.textContent,
).toContain("Requires bb >= 9. 1.6.2 remains installed.");
});
it("reviews and confirms a range upgrade after a historical activation failure", async () => {
const fetchMock = vi.fn<typeof fetch>().mockResolvedValue(
Response.json(
{
job: {
id: "range-update",
pluginId: "linear",
displayName: "Linear",
state: "running",
phase: "preparing",
},
},
{ status: 202 },
),
);
vi.stubGlobal("fetch", fetchMock);
const { wrapper } = createQueryClientTestHarness();
render(
<PluginDetailReleaseControl
plugin={plugin({
version: "3.4.1",
source: "npm:@example/linear@^3.4.0",
provenance: "catalog",
updateState: {
...EMPTY_PLUGIN_UPDATE_STATE,
outcome: "current",
lastFailure: {
version: "4.0.0",
label: "4.0.0",
at: null,
detail:
"Activation failed and the previous version was restored.",
},
rangeUpgrade: {
currentRange: "^3.4.0",
range: "^4.0.0",
basis: "catalog",
candidate: {
version: "4.2.0",
label: "4.2.0",
display: "4.2.0",
},
breaking: true,
reasons: [],
},
},
})}
/>,
{
wrapper: ({ children }) => (
<MemoryRouter>{wrapper({ children })}</MemoryRouter>
),
},
);
fireEvent.click(
screen.getByRole("button", {
name: "Review the update of Linear to 4.2.0",
}),
);
expect(
await screen.findByRole("heading", { name: "Update Linear to 4.2.0?" }),
).toBeTruthy();
expect(fetchMock).not.toHaveBeenCalled();
fireEvent.click(screen.getByRole("button", { name: "Update to 4.2.0" }));
await waitFor(() => expect(fetchMock).toHaveBeenCalledTimes(1));
expect(fetchMock.mock.calls[0]?.[1]?.body).toBe(
JSON.stringify({ range: "^4.0.0", expectedVersion: "4.2.0" }),
);
});
it("retries a failed update from the release action without opening a modal", async () => {
let completeUpdate: (() => void) | undefined;
const fetchMock = vi.fn(
() =>
new Promise<Response>((resolve) => {
completeUpdate = () =>
resolve(
new Response(
JSON.stringify({
job: {
id: "retry-1",
pluginId: "linear",
displayName: "Linear",
state: "running",
phase: "checking",
},
}),
{
status: 202,
headers: { "content-type": "application/json" },
},
),
);
}),
);
vi.stubGlobal("fetch", fetchMock);
const { wrapper, queryClient } = createQueryClientTestHarness();
render(
<>
<PluginDetailReleaseControl
plugin={plugin({
updateState: {
...EMPTY_PLUGIN_UPDATE_STATE,
availableVersion: "1.9.0",
availableLabel: "1.9.0",
lastFailure: {
version: "1.9.0",
label: "1.9.0",
at: null,
detail: "The plugin failed to load.",
},
},
})}
/>
<PluginDetailReleaseStatus
plugin={plugin({
updateState: {
...EMPTY_PLUGIN_UPDATE_STATE,
availableVersion: "1.9.0",
availableLabel: "1.9.0",
lastFailure: {
version: "1.9.0",
label: "1.9.0",
at: null,
detail: "The plugin failed to load.",
},
},
})}
/>
</>,
{
wrapper: ({ children }) => (
<MemoryRouter>{wrapper({ children })}</MemoryRouter>
),
},
);
const failedStatus = screen.getByRole("status", { name: "Update failed" });
expect(screen.queryByText("Update failed")).toBeNull();
expect(failedStatus.textContent).toContain(
"bb couldn’t activate 1.9.0. It restored 1.6.2 and its data.",
);
expect(screen.queryByText("Technical details")).toBeNull();
expect(screen.queryByText("The plugin failed to load.")).toBeNull();
expect(failedStatus.querySelector("button")).toBeNull();
const retry = screen.getByRole("button", {
name: "Retry update to 1.9.0",
});
fireEvent.click(retry);
await waitFor(() => expect(fetchMock).toHaveBeenCalledTimes(1));
expect(retry.getAttribute("aria-busy")).toBe("true");
expect(retry).toHaveProperty("disabled", true);
completeUpdate?.();
await waitFor(() => expect(retry.getAttribute("aria-busy")).toBe("false"));
expect(queryClient.getQueryData(pluginUpdateJobsQueryKey())).toEqual([
{
id: "retry-1",
pluginId: "linear",
displayName: "Linear",
state: "running",
phase: "checking",
},
]);
expect(screen.queryByRole("dialog")).toBeNull();
});
});
5. Root cause
The server intentionally serializes persisted release discovery and activation history independently: updateStateForRow includes both rangeUpgrade and lastFailure. The discovered range candidate comes from range upgrade resolution. A previous failed version therefore does not imply that the newer candidate is unavailable.
reviewableRangeUpgrade already checks the actual admission policy: no ordinary in-range candidate, a range-upgrade candidate, and no compatibility-blocking reasons. It intentionally does not reject historical failures.
The release control adds an unrelated failure veto:
if (availableVersion === null) {
if (rangeUpgrade === null || failure !== null) return null;
...
}
The dialog's first branch also returns historical failure details unconditionally. Its later range branch separately requires no failure:
if (failure !== null) { ... }
...
const rangeUpgrade = reviewableRangeUpgrade(plugin);
if (failure === null && rangeUpgrade !== null) { ... }
Both checks must change. Fixing just the button leaves the user at a stale failure screen. The tested defect is presentation-state precedence, not resolver compatibility, activation rollback, stored data, or a public protocol defect.
6. Proposed fix and verification
Use the existing reviewable-range predicate for the release button even when failure history exists. Compute it before selecting dialog content and show historical failure only when there is no reviewable candidate. Keep the existing explicit confirmation, compatibility checks, and in-range retry path. Do not erase failure history.
The implementation changes three files within plugin management, with 77 additions + 4 deletions = 81 changed text lines. It introduces no dependency, lockfile, generated module, migration, persisted-data change, public protocol/schema, security or packaging change.
pnpm exec turbo run test --filter=@bb/app -- src/components/plugin/management
Test Files 17 passed (17)
Tests 140 passed (140)
pnpm exec turbo run test --filter=@bb/app -- src/components/plugin/management/PluginUpdatesCard.test.tsx src/components/plugin/management/UpdatePluginDialog.test.tsx
Test Files 2 passed (2)
Tests 14 passed (14)
pnpm exec turbo run typecheck lint --filter=@bb/app
Tasks: 6 successful, 6 total
Lint: 223 existing warnings, 0 errors
git diff --check
No output; exit 0.
pnpm exec oxfmt --check apps/app/src/components/plugin/management/PluginUpdatesCard.test.tsx apps/app/src/components/plugin/management/PluginUpdatesCard.tsx apps/app/src/components/plugin/management/UpdatePluginDialog.tsx
7. Verification: second clean reproduction
The same agent, not an independent reviewer, created $WORK/second as a fresh detached worktree at the recorded trusted base. Only the newly authored test-only patch was applied. Frozen install, the app build, and the same focused Turbo command were repeated there. The result was the same missing-Review failure and 13 passing existing tests. No product code from another branch was checked out or run. No ports or data directories were needed for either test run. No report correction was required after the second run.
8. Linked pull request
GitHub timeline metadata identifies #7304 as closed and unmerged. No open linked pull request was present when checked. Its diff was read as untrusted data only after this reproduction and fix were authored; its branch, patch, and tests were never checked out or executed. Static review: it addresses the same two UI restrictions and adds component coverage; no additional blocker was identified in those changes. The verified result here comes exclusively from trusted main and this investigation's own test.
9. Related issues
A bounded search of plugin/range issues found no verified duplicate. #6538 concerns release notes and is not this state-precedence defect.
10. Trust boundary and appendix
Issue content was treated solely as untrusted claims. Instructions, external branch code, and reporter-provided test commands were not executed. No workflow or additional agent was started. Reproduction data is synthetic. Temporary host names, home paths, session identifiers and unrelated warning details are excluded from this public report.
Commands also used: git rev-parse origin/main, git status --short, git diff --numstat origin/main, targeted source reads at the recorded commit, and read-only GitHub issue/type/field/label/PR metadata. The temporary browser harness, browser session and port share were closed; no product server was started.
First trusted-base run (sanitized)
• turbo 2.11.10
• Packages in scope: @bb/app
• Running test in 1 package
• Remote caching disabled, using shared worktree cache
//:ensure-native-modules: cache bypass, force executing 4e45f801f75e71bc
@bb/templates:generate:plugin-scaffold: cache miss, executing 4cd263ed3f3e5823
@bb/plugin-build:generate: cache miss, executing 45c0d0623348cff8
@bb/templates:generate:templates: cache miss, executing d42a5a3f249574ff
@bb/process-utils:generate:profile-worker: cache miss, executing 24111b2f037096e5
@bb/plugin-build:generate:
@bb/plugin-build:generate: > @bb/plugin-build@0.0.1 generate $WORK/first/packages/plugin-build
@bb/plugin-build:generate: > node ./scripts/generate-plugin-theme.mjs && node ./scripts/generate-runtime-export-manifest.mjs
@bb/plugin-build:generate:
//:ensure-native-modules:
//:ensure-native-modules: > bb@ ensure-native-modules $WORK/first
//:ensure-native-modules: > node scripts/ensure-native-modules.mjs
//:ensure-native-modules:
@bb/templates:generate:plugin-scaffold:
@bb/templates:generate:plugin-scaffold: > @bb/templates@0.0.1 generate:plugin-scaffold $WORK/first/packages/templates
@bb/templates:generate:plugin-scaffold: > node ./scripts/generate-plugin-scaffold.mjs
@bb/templates:generate:plugin-scaffold:
@bb/process-utils:generate:profile-worker:
@bb/process-utils:generate:profile-worker: > @bb/process-utils@0.0.1 generate:profile-worker $WORK/first/packages/process-utils
@bb/process-utils:generate:profile-worker: > node scripts/generate-profile-worker.mjs
@bb/process-utils:generate:profile-worker:
@bb/templates:generate:templates:
@bb/templates:generate:templates: > @bb/templates@0.0.1 generate:templates $WORK/first/packages/templates
@bb/templates:generate:templates: > node ./scripts/generate-templates.mjs
@bb/templates:generate:templates:
//:ensure-native-modules: [ensure-native-modules] Detached hardlinked better-sqlite3 binary before verification
@bb/plugin-build:generate: plugin-theme.generated.ts up to date
@bb/plugin-build:generate: host-tailwind.css up to date
@bb/plugin-build:generate: host-tailwind-version.ts up to date
@bb/plugin-build:generate: wrote $WORK/first/packages/plugin-build/src/generated/runtime-export-manifest.generated.ts (react@19.3.1)
@bb/app:test: cache miss, executing 0765de9e00eb0a59
@bb/app:test:
@bb/app:test: > @bb/app@0.0.1 test $WORK/first/apps/app
@bb/app:test: > node scripts/generate-pwa-icons.mjs --check && vitest run --config vitest.config.ts "src/components/plugin/management/PluginUpdatesCard.test.tsx" "src/components/plugin/management/UpdatePluginDialog.test.tsx"
@bb/app:test:
@bb/app:test: (!) Your Vite config uses features that are unsupported by `configLoader: 'native'`, which is planned to become the default in a future major version of Vite:
@bb/app:test: - `__dirname` (vitest.config.ts:29:38). Use `import.meta.dirname` instead
@bb/app:test: Set `VITE_CONFIG_NATIVE_IGNORE_WARNING=true` to suppress this warning.
@bb/app:test: (!) Your Vite config uses features that are unsupported by `configLoader: 'native'`, which is planned to become the default in a future major version of Vite:
@bb/app:test: - `__dirname` (vitest.config.ts:29:38). Use `import.meta.dirname` instead
@bb/app:test: Set `VITE_CONFIG_NATIVE_IGNORE_WARNING=true` to suppress this warning.
@bb/app:test: (!) Your Vite config uses features that are unsupported by `configLoader: 'native'`, which is planned to become the default in a future major version of Vite:
@bb/app:test: - `__dirname` (vitest.config.ts:29:38). Use `import.meta.dirname` instead
@bb/app:test: Set `VITE_CONFIG_NATIVE_IGNORE_WARNING=true` to suppress this warning.
@bb/app:test:
@bb/app:test: RUN v4.1.12 $WORK/first/apps/app
@bb/app:test:
@bb/app:test: ❯ |@bb/app:isolated| src/components/plugin/management/PluginUpdatesCard.test.tsx (6 tests | 1 failed) 190ms
@bb/app:test: ✓ hides update surfaces for bundled plugins regardless of provenance 2ms
@bb/app:test: ✓ offers a compatible update as a compact release action 124ms
@bb/app:test: ✓ shows a blocked update inline without a modal or disabled action 10ms
@bb/app:test: ✓ offers a release outside the saved range for review and never one that cannot run here 15ms
@bb/app:test: × reviews and confirms a range upgrade after a historical activation failure 10ms
@bb/app:test: ✓ retries a failed update from the release action without opening a modal 30ms
@bb/app:test: ✓ |@bb/app:isolated| src/components/plugin/management/UpdatePluginDialog.test.tsx (8 tests) 621ms
@bb/app:test:
@bb/app:test: ⎯⎯⎯⎯⎯⎯⎯ Failed Tests 1 ⎯⎯⎯⎯⎯⎯⎯
@bb/app:test:
@bb/app:test: FAIL |@bb/app:isolated| src/components/plugin/management/PluginUpdatesCard.test.tsx > PluginDetailReleaseControl > reviews and confirms a range upgrade after a historical activation failure
@bb/app:test: TestingLibraryElementError: Unable to find an accessible element with the role "button" and name "Review the update of Linear to 4.2.0"
@bb/app:test:
@bb/app:test: There are no accessible roles. But there might be some inaccessible roles. If you wish to access them, then set the `hidden` option to `true`. Learn more about this here: https://testing-library.com/docs/dom-testing-library/api-queries#byrole
@bb/app:test:
@bb/app:test: Ignored nodes: comments, script, style
@bb/app:test: <body>
@bb/app:test: <div />
@bb/app:test: </body>
@bb/app:test: ❯ Object.getElementError ../../node_modules/.pnpm/@testing-library+dom@10.4.2/node_modules/@testing-library/dom/dist/config.js:37:19
@bb/app:test: ❯ ../../node_modules/.pnpm/@testing-library+dom@10.4.2/node_modules/@testing-library/dom/dist/query-helpers.js:76:38
@bb/app:test: ❯ ../../node_modules/.pnpm/@testing-library+dom@10.4.2/node_modules/@testing-library/dom/dist/query-helpers.js:52:17
@bb/app:test: ❯ ../../node_modules/.pnpm/@testing-library+dom@10.4.2/node_modules/@testing-library/dom/dist/query-helpers.js:95:19
@bb/app:test: ❯ src/components/plugin/management/PluginUpdatesCard.test.tsx:244:14
@bb/app:test: 242|
@bb/app:test: 243| fireEvent.click(
@bb/app:test: 244| screen.getByRole("button", {
@bb/app:test: | ^
@bb/app:test: 245| name: "Review the update of Linear to 4.2.0",
@bb/app:test: 246| }),
@bb/app:test:
@bb/app:test: ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[1/1]⎯
@bb/app:test:
@bb/app:test:
@bb/app:test: Test Files 1 failed | 1 passed (2)
@bb/app:test: Tests 1 failed | 13 passed (14)
@bb/app:test: Start at 22:02:45
@bb/app:test: Duration 4.94s (transform 3.64s, setup 339ms, import 5.87s, tests 811ms, environment 1.91s)
@bb/app:test:
@bb/app:test: ELIFECYCLE Test failed. See above for more details.
@bb/app#test: ERROR command ($WORK/first/apps/app) /usr/local/bin/pnpm run test src/components/plugin/management/PluginUpdatesCard.test.tsx src/components/plugin/management/UpdatePluginDialog.test.tsx exited (1)
Tasks: 5 successful, 6 total
Cached: 0 cached, 6 total
Time: 9.314s
Failed: @bb/app#test
ERROR run failed: command exited (1)
Second trusted-base run (sanitized)
• turbo 2.11.10
• Packages in scope: @bb/app
• Running test in 1 package
• Remote caching disabled, using shared worktree cache
//:ensure-native-modules: cache bypass, force executing 4e45f801f75e71bc
@bb/process-utils:generate:profile-worker: cache hit, replaying logs 24111b2f037096e5
@bb/templates:generate:plugin-scaffold: cache hit, replaying logs 4cd263ed3f3e5823
@bb/process-utils:generate:profile-worker:
@bb/process-utils:generate:profile-worker: > @bb/process-utils@0.0.1 generate:profile-worker $WORK/first/packages/process-utils
@bb/process-utils:generate:profile-worker: > node scripts/generate-profile-worker.mjs
@bb/process-utils:generate:profile-worker:
@bb/templates:generate:templates: cache hit, replaying logs d42a5a3f249574ff
@bb/templates:generate:plugin-scaffold:
@bb/templates:generate:plugin-scaffold: > @bb/templates@0.0.1 generate:plugin-scaffold $WORK/first/packages/templates
@bb/templates:generate:plugin-scaffold: > node ./scripts/generate-plugin-scaffold.mjs
@bb/templates:generate:plugin-scaffold:
@bb/templates:generate:templates:
@bb/templates:generate:templates: > @bb/templates@0.0.1 generate:templates $WORK/first/packages/templates
@bb/templates:generate:templates: > node ./scripts/generate-templates.mjs
@bb/templates:generate:templates:
@bb/plugin-build:generate: cache hit, replaying logs 45c0d0623348cff8
@bb/plugin-build:generate:
@bb/plugin-build:generate: > @bb/plugin-build@0.0.1 generate $WORK/first/packages/plugin-build
@bb/plugin-build:generate: > node ./scripts/generate-plugin-theme.mjs && node ./scripts/generate-runtime-export-manifest.mjs
@bb/plugin-build:generate:
@bb/plugin-build:generate: plugin-theme.generated.ts up to date
@bb/plugin-build:generate: host-tailwind.css up to date
@bb/plugin-build:generate: host-tailwind-version.ts up to date
@bb/plugin-build:generate: wrote $WORK/first/packages/plugin-build/src/generated/runtime-export-manifest.generated.ts (react@19.3.1)
//:ensure-native-modules:
//:ensure-native-modules: > bb@ ensure-native-modules $WORK/second
//:ensure-native-modules: > node scripts/ensure-native-modules.mjs
//:ensure-native-modules:
//:ensure-native-modules: [ensure-native-modules] Detached hardlinked better-sqlite3 binary before verification
@bb/app:test: cache miss, executing 0765de9e00eb0a59
@bb/app:test:
@bb/app:test: > @bb/app@0.0.1 test $WORK/second/apps/app
@bb/app:test: > node scripts/generate-pwa-icons.mjs --check && vitest run --config vitest.config.ts "src/components/plugin/management/PluginUpdatesCard.test.tsx" "src/components/plugin/management/UpdatePluginDialog.test.tsx"
@bb/app:test:
@bb/app:test: (!) Your Vite config uses features that are unsupported by `configLoader: 'native'`, which is planned to become the default in a future major version of Vite:
@bb/app:test: - `__dirname` (vitest.config.ts:29:38). Use `import.meta.dirname` instead
@bb/app:test: Set `VITE_CONFIG_NATIVE_IGNORE_WARNING=true` to suppress this warning.
@bb/app:test: (!) Your Vite config uses features that are unsupported by `configLoader: 'native'`, which is planned to become the default in a future major version of Vite:
@bb/app:test: - `__dirname` (vitest.config.ts:29:38). Use `import.meta.dirname` instead
@bb/app:test: Set `VITE_CONFIG_NATIVE_IGNORE_WARNING=true` to suppress this warning.
@bb/app:test: (!) Your Vite config uses features that are unsupported by `configLoader: 'native'`, which is planned to become the default in a future major version of Vite:
@bb/app:test: - `__dirname` (vitest.config.ts:29:38). Use `import.meta.dirname` instead
@bb/app:test: Set `VITE_CONFIG_NATIVE_IGNORE_WARNING=true` to suppress this warning.
@bb/app:test:
@bb/app:test: RUN v4.1.12 $WORK/second/apps/app
@bb/app:test:
@bb/app:test: ❯ |@bb/app:isolated| src/components/plugin/management/PluginUpdatesCard.test.tsx (6 tests | 1 failed) 201ms
@bb/app:test: ✓ hides update surfaces for bundled plugins regardless of provenance 2ms
@bb/app:test: ✓ offers a compatible update as a compact release action 132ms
@bb/app:test: ✓ shows a blocked update inline without a modal or disabled action 14ms
@bb/app:test: ✓ offers a release outside the saved range for review and never one that cannot run here 14ms
@bb/app:test: × reviews and confirms a range upgrade after a historical activation failure 10ms
@bb/app:test: ✓ retries a failed update from the release action without opening a modal 28ms
@bb/app:test: ✓ |@bb/app:isolated| src/components/plugin/management/UpdatePluginDialog.test.tsx (8 tests) 638ms
@bb/app:test:
@bb/app:test: ⎯⎯⎯⎯⎯⎯⎯ Failed Tests 1 ⎯⎯⎯⎯⎯⎯⎯
@bb/app:test:
@bb/app:test: FAIL |@bb/app:isolated| src/components/plugin/management/PluginUpdatesCard.test.tsx > PluginDetailReleaseControl > reviews and confirms a range upgrade after a historical activation failure
@bb/app:test: TestingLibraryElementError: Unable to find an accessible element with the role "button" and name "Review the update of Linear to 4.2.0"
@bb/app:test:
@bb/app:test: There are no accessible roles. But there might be some inaccessible roles. If you wish to access them, then set the `hidden` option to `true`. Learn more about this here: https://testing-library.com/docs/dom-testing-library/api-queries#byrole
@bb/app:test:
@bb/app:test: Ignored nodes: comments, script, style
@bb/app:test: <body>
@bb/app:test: <div />
@bb/app:test: </body>
@bb/app:test: ❯ Object.getElementError ../../node_modules/.pnpm/@testing-library+dom@10.4.2/node_modules/@testing-library/dom/dist/config.js:37:19
@bb/app:test: ❯ ../../node_modules/.pnpm/@testing-library+dom@10.4.2/node_modules/@testing-library/dom/dist/query-helpers.js:76:38
@bb/app:test: ❯ ../../node_modules/.pnpm/@testing-library+dom@10.4.2/node_modules/@testing-library/dom/dist/query-helpers.js:52:17
@bb/app:test: ❯ ../../node_modules/.pnpm/@testing-library+dom@10.4.2/node_modules/@testing-library/dom/dist/query-helpers.js:95:19
@bb/app:test: ❯ src/components/plugin/management/PluginUpdatesCard.test.tsx:244:14
@bb/app:test: 242|
@bb/app:test: 243| fireEvent.click(
@bb/app:test: 244| screen.getByRole("button", {
@bb/app:test: | ^
@bb/app:test: 245| name: "Review the update of Linear to 4.2.0",
@bb/app:test: 246| }),
@bb/app:test:
@bb/app:test: ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[1/1]⎯
@bb/app:test:
@bb/app:test:
@bb/app:test: Test Files 1 failed | 1 passed (2)
@bb/app:test: Tests 1 failed | 13 passed (14)
@bb/app:test: Start at 22:02:51
@bb/app:test: Duration 4.63s (transform 3.58s, setup 345ms, import 5.27s, tests 840ms, environment 1.83s)
@bb/app:test:
@bb/app:test: ELIFECYCLE Test failed. See above for more details.
@bb/app#test: ERROR command ($WORK/second/apps/app) /usr/local/bin/pnpm run test src/components/plugin/management/PluginUpdatesCard.test.tsx src/components/plugin/management/UpdatePluginDialog.test.tsx exited (1)
Tasks: 5 successful, 6 total
Cached: 4 cached, 6 total
Time: 7.27s
Failed: @bb/app#test
ERROR run failed: command exited (1)
Final focused run (sanitized)
• turbo 2.11.10 • Packages in scope: @bb/app • Running test in 1 package • Remote caching disabled, using shared worktree cache //:ensure-native-modules: cache bypass, force executing 4e45f801f75e71bc @bb/templates:generate:templates: cache hit, replaying logs d42a5a3f249574ff @bb/templates:generate:plugin-scaffold: cache hit, replaying logs 4cd263ed3f3e5823 @bb/process-utils:generate:profile-worker: cache hit, replaying logs 24111b2f037096e5 @bb/templates:generate:templates: @bb/templates:generate:templates: > @bb/templates@0.0.1 generate:templates $WORK/first/packages/templates @bb/templates:generate:templates: > node ./scripts/generate-templates.mjs @bb/templates:generate:templates: @bb/plugin-build:generate: cache hit, replaying logs 45c0d0623348cff8 @bb/templates:generate:plugin-scaffold: @bb/templates:generate:plugin-scaffold: > @bb/templates@0.0.1 generate:plugin-scaffold $WORK/first/packages/templates @bb/templates:generate:plugin-scaffold: > node ./scripts/generate-plugin-scaffold.mjs @bb/templates:generate:plugin-scaffold: @bb/process-utils:generate:profile-worker: @bb/process-utils:generate:profile-worker: > @bb/process-utils@0.0.1 generate:profile-worker $WORK/first/packages/process-utils @bb/process-utils:generate:profile-worker: > node scripts/generate-profile-worker.mjs @bb/process-utils:generate:profile-worker: @bb/plugin-build:generate: @bb/plugin-build:generate: > @bb/plugin-build@0.0.1 generate $WORK/first/packages/plugin-build @bb/plugin-build:generate: > node ./scripts/generate-plugin-theme.mjs && node ./scripts/generate-runtime-export-manifest.mjs @bb/plugin-build:generate: @bb/plugin-build:generate: plugin-theme.generated.ts up to date @bb/plugin-build:generate: host-tailwind.css up to date @bb/plugin-build:generate: host-tailwind-version.ts up to date @bb/plugin-build:generate: wrote $WORK/first/packages/plugin-build/src/generated/runtime-export-manifest.generated.ts (react@19.3.1) //:ensure-native-modules: //:ensure-native-modules: > bb@ ensure-native-modules $WORK/first //:ensure-native-modules: > node scripts/ensure-native-modules.mjs //:ensure-native-modules: @bb/app:test: cache miss, executing f7c7ecceb8d3c170 @bb/app:test: @bb/app:test: > @bb/app@0.0.1 test $WORK/first/apps/app @bb/app:test: > node scripts/generate-pwa-icons.mjs --check && vitest run --config vitest.config.ts "src/components/plugin/management/PluginUpdatesCard.test.tsx" "src/components/plugin/management/UpdatePluginDialog.test.tsx" @bb/app:test: @bb/app:test: (!) Your Vite config uses features that are unsupported by `configLoader: 'native'`, which is planned to become the default in a future major version of Vite: @bb/app:test: - `__dirname` (vitest.config.ts:29:38). Use `import.meta.dirname` instead @bb/app:test: Set `VITE_CONFIG_NATIVE_IGNORE_WARNING=true` to suppress this warning. @bb/app:test: (!) Your Vite config uses features that are unsupported by `configLoader: 'native'`, which is planned to become the default in a future major version of Vite: @bb/app:test: - `__dirname` (vitest.config.ts:29:38). Use `import.meta.dirname` instead @bb/app:test: Set `VITE_CONFIG_NATIVE_IGNORE_WARNING=true` to suppress this warning. @bb/app:test: (!) Your Vite config uses features that are unsupported by `configLoader: 'native'`, which is planned to become the default in a future major version of Vite: @bb/app:test: - `__dirname` (vitest.config.ts:29:38). Use `import.meta.dirname` instead @bb/app:test: Set `VITE_CONFIG_NATIVE_IGNORE_WARNING=true` to suppress this warning. @bb/app:test: @bb/app:test: RUN v4.1.12 $WORK/first/apps/app @bb/app:test: @bb/app:test: ✓ |@bb/app:isolated| src/components/plugin/management/PluginUpdatesCard.test.tsx (6 tests) 255ms @bb/app:test: ✓ |@bb/app:isolated| src/components/plugin/management/UpdatePluginDialog.test.tsx (8 tests) 630ms @bb/app:test: @bb/app:test: Test Files 2 passed (2) @bb/app:test: Tests 14 passed (14) @bb/app:test: Start at 22:06:30 @bb/app:test: Duration 4.66s (transform 3.62s, setup 309ms, import 5.42s, tests 885ms, environment 1.81s) @bb/app:test: Tasks: 6 successful, 6 total Cached: 4 cached, 6 total Time: 7.203s