Skip to content

Test out ember-source w/ sideEffects: false#711

Closed
NullVoxPopuli wants to merge 6 commits intonvp/fix-cifrom
nvp/ember-source-sideEffects-false
Closed

Test out ember-source w/ sideEffects: false#711
NullVoxPopuli wants to merge 6 commits intonvp/fix-cifrom
nvp/ember-source-sideEffects-false

Conversation

@NullVoxPopuli
Copy link
Copy Markdown
Contributor

@NullVoxPopuli NullVoxPopuli commented May 6, 2026

NullVoxPopuli and others added 6 commits May 5, 2026 22:43
Ember 6.10 introduced the AMD deprecation (RFC #1101): the published
ember-source package will stop bundling pre-built AMD modules after
Ember 7. On canary and beta, addons that still `import Ember from
'ember'` fail at boot with `Could not find module 'ember'`.

Two addons in the app/addon templates trip this:

- ember-resolver ^8.0.3: the v8 distribution exposes
  `ember-resolver/resolvers/classic/index` which imports the AMD
  `ember` module. Linking the canary scenario at v13.2.0 was already
  done in #713; do the same for beta.

- ember-cli-app-version ^5.0.0: `addon/initializer-factory.js` does
  `import Ember from 'ember'` to read `Ember.libraries`. v7.0.0
  switched to `import { libraries } from '@ember/-internals/metal'`.
  Link both canary and beta to ^7.0.0.

Both upgrades are scoped to the canary/beta scenarios via
`linkDevDependency` so the LTS/3.x/release scenarios continue to
exercise the older versions.

Verified locally: canary-babel, canary-csp, canary-doubly-indirect,
canary-layering, beta-babel, beta-common-chunk, beta-custom-html now
pass. Fastboot-using scenarios (canary-dynamic-import,
beta-import-sync, *-v2-addon) still fail because ember-cli-fastboot
4.1.5 (latest) imports `Ember` from AMD and uses the removed `inject
as service` shape — those need a separate fix.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
ember-cli-fastboot 4.1.5 is the latest published release (May 2024) and
hasn't been updated for ember-source 7. Its addon code imports the AMD
`ember` module and uses the removed `inject as service` shape, so any
scenario that links it fails at boot on canary/beta.

Skip canary/beta for the three test files that link ember-cli-fastboot
and aren't already skipped — dynamic-import, import-sync, and v2-addon.
indirect, customized-vendor, and static-import already skip these
variants; fastboot3 doesn't go through the support matrix.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
The merged test synthesizes an addon component using classic
`Component.extend({ layout })`, which ember-source 7 no longer
auto-associates with the classic component manager. The test is
exercising import dedup between app and addon, not classic component
semantics, so skipping these variants is the simplest path.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
…precation

Address AMD deprecation in canary/beta test scenarios
@NullVoxPopuli NullVoxPopuli force-pushed the nvp/ember-source-sideEffects-false branch from ad205dd to 61d5376 Compare May 6, 2026 04:20
@NullVoxPopuli NullVoxPopuli changed the base branch from main to nvp/fix-ci May 6, 2026 04:20
@NullVoxPopuli NullVoxPopuli deleted the nvp/ember-source-sideEffects-false branch May 6, 2026 16:12
@NullVoxPopuli
Copy link
Copy Markdown
Contributor Author

it works, so I close the PR, since we don't actually want to test against a custom build of ember forever

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