Skip to content

URGENT: fix console boot, keep extension.js self-contained - #444

Merged
roncodes merged 1 commit into
feature/map-canvasfrom
fix/extension-self-contained
Dec 3, 2026
Merged

roncodes merged 1 commit into
feature/map-canvasfrom
fix/extension-self-contained

Conversation

@roncodes

@roncodes roncodes commented Dec 3, 2026

Copy link
Copy Markdown
Member

Fixes a console boot hang introduced by #442: the console stays on "Starting up…" with Failed to create an instance of 'service:universe/extension-manager'.

Cause. The console's fleetbase-extensions-generator copies addon/extension.js verbatim into the host as @fleetbase/console/extensions/<mount>. #442 added relative imports (./utils/canvas-shell, ./utils/fleet-ops-pages). In the host these resolve to @fleetbase/console/extensions/utils/*, which doesn't exist. Loading the extension module throws, which breaks extensions/index, which the extension manager imports. An engine package path wouldn't work either, because engines are lazy and aren't loaded when the host boots.

Fix.

  • LIVE_MAP_BACKDROP, LIVE_MAP_BACKDROP_ROUTES and the dock page tree (FLEET_OPS_PAGE_SECTIONS, buildFleetOpsPagePanels, registerFleetOpsPages, and so on) are now defined in extension.js itself.
  • addon/utils/canvas-shell.js and addon/utils/fleet-ops-pages.js re-export them, so the engine code and tests are unchanged and there is still one source of truth.
  • extension.js again imports only @fleetbase/ember-core/contracts.

Regression guard. An .eslintrc.js override puts no-restricted-imports on addon/extension.js, blocking ./*, ../* and @fleetbase/fleetops-engine/*. Ember CI runs lint, so this fails CI. I checked that the rule flags an injected import … from './utils/canvas-shell'.

The console's extensions generator copies addon/extension.js verbatim into the
host as @fleetbase/console/extensions/<mount>. #442 gave it relative imports
(./utils/canvas-shell, ./utils/fleet-ops-pages), which resolve to modules that do
not exist in the host, so loading the extensions index threw and the
extension-manager service failed to instantiate: the console hung on startup.

The backdrop name/routes and the dock page tree now live in extension.js, and the
engine's utils re-export them. An ESLint rule forbids relative and engine imports
in extension.js so this cannot regress.
@codecov

codecov Bot commented Dec 3, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (3f3b4b8) to head (ccba285).
⚠️ Report is 1 commits behind head on feature/map-canvas.

Additional details and impacted files
@@                  Coverage Diff                   @@
##             feature/map-canvas      #444   +/-   ##
======================================================
  Coverage                100.00%   100.00%           
  Complexity                20500     20500           
======================================================
  Files                       787       787           
  Lines                     65151     65151           
======================================================
  Hits                      65151     65151           
Flag Coverage Δ
backend 100.00% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@roncodes
roncodes merged commit b6b99ee into feature/map-canvas Dec 3, 2026
8 checks passed
@roncodes
roncodes deleted the fix/extension-self-contained branch December 3, 2026 14:34
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