Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CI] Add embroider-safe scenario #1157

Merged
merged 11 commits into from
Jan 8, 2025
Merged

[CI] Add embroider-safe scenario #1157

merged 11 commits into from
Jan 8, 2025

Conversation

bantic
Copy link
Contributor

@bantic bantic commented Jan 8, 2025

Follows the guidance at https://github.com/embroider-build/embroider/tree/main/packages/test-setup and adds embroider-safe and embroider-optimized scenarios to the ember-try config.

This PR only enables the embroider-safe scenario because the embroider-optimized one has some failures, largely due to the fact that ember-cli-addon-docs is not installed by default (it is only installed for the ember-try scenario named ember-default-docs) but it is referenced from the dummy app in multiple places. The embroider-safe CI run succeeds, but the embroider-optimized (rightly, imo) complains about it.

The embroider-optimized scenario also fails because some of the tests use dynamic components (here, in specific:

{{#component this.rowComponent
), and this could likely be fixed using some of the techniques described at https://github.com/embroider-build/embroider/blob/main/docs/replacing-component-helper.md.

@bantic bantic force-pushed the bantic/add-embroider branch from 4897d17 to 4a5700c Compare January 8, 2025 13:48
@bantic bantic changed the title [draft] add embroider scenarios [CI] Add embroider-safe scenario Jan 8, 2025
@@ -41,9 +41,12 @@ jobs:
timeout-minutes: 10

strategy:
fail-fast: false
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Semi unrelated. This allows all ember-try scenarios to run to completion.

@@ -100,6 +103,7 @@
},
"homepage": "https://Addepar.github.io/ember-table",
"resolutions": {
"@ember/test-waiters": "^3.0.2",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ember/test-waiters at 3.0.1 is not compatible with embroider. We fix this using a resolution because it's a secondary dependency of ember-a11y-testing, and bumping ember-a11y-testing to the ^5.2.1 range did not pick up the newer ember/test-waiters.
In a follow-up I'll attempt to upgrade ember-a11y-testing, at which point we can probably remove this.

"@ember/test-helpers": "^2.8.1",
"@embroider/test-setup": "^4.0.0",
"@glimmer/component": "^1.1.2",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

embroider complains if this isn't present because the dummy app imports from it here:

@bantic bantic marked this pull request as ready for review January 8, 2025 16:10
@bantic bantic requested a review from a team January 8, 2025 16:10
@bantic bantic merged commit e19bc5d into master Jan 8, 2025
18 checks passed
@bantic bantic deleted the bantic/add-embroider branch January 8, 2025 16:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants