Skip to content

fix(ember): Restrict compatibility tests to CI #3069

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

Merged
merged 1 commit into from
Nov 30, 2020

Conversation

lobsterkatie
Copy link
Member

@lobsterkatie lobsterkatie commented Nov 24, 2020

This implements a check before running ember tests, to see whether we're in a CI environment or not, and skips running tests against multiple versions of ember if we aren't (under the assumption that while we like the security of doing ALL of the checks in CI, testing against one ember version locally should be enough to let us know whether or not we broke something).

Doing this speeds up local ember tests by a factor of 25x-30x.

WIP because bash is mysterious.
EDIT: Leaving a note here rather than just deleting the above WIP comment on the off chance it helps one of us in the future. The issue was that in ubuntu, though the login shell is bash, the default shell is dash, and dash doesn't have the [[ logical-test ]] construct. Therefore calling my script with . <script> wasn't enough - I had to specifically ask for bash, as in bash <script>.

@github-actions
Copy link
Contributor

github-actions bot commented Nov 24, 2020

size-limit report

Path Size
@sentry/browser - CDN Bundle (gzipped) 19.71 KB (-0.01% 🔽)
@sentry/browser - Webpack 20.59 KB (0%)
@sentry/react - Webpack 20.59 KB (0%)
@sentry/browser + @sentry/tracing - CDN Bundle (gzipped) 26.86 KB (0%)

@lobsterkatie lobsterkatie marked this pull request as draft November 24, 2020 06:15
@lobsterkatie lobsterkatie force-pushed the kmclb-only-run-multiple-ember-tests-in-CI branch from d05cc83 to ee6259b Compare November 25, 2020 02:01
@lobsterkatie lobsterkatie marked this pull request as ready for review November 25, 2020 19:03
Copy link
Member

@k-fish k-fish left a comment

Choose a reason for hiding this comment

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

Sounds good! You can run specific versions with ember-cli anyway if you have an error in CI you want to repro locally.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
@lobsterkatie lobsterkatie force-pushed the kmclb-only-run-multiple-ember-tests-in-CI branch from ee6259b to d2f8927 Compare November 30, 2020 15:36
@lobsterkatie lobsterkatie merged commit 3e10bd1 into master Nov 30, 2020
@lobsterkatie lobsterkatie deleted the kmclb-only-run-multiple-ember-tests-in-CI branch November 30, 2020 19:11
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.

None yet

3 participants