-
-
Notifications
You must be signed in to change notification settings - Fork 58
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
ember try:ember seems to be doing a bit too much #851
Comments
That seems correct to me. Here's the minimal docs: https://github.com/ember-cli/ember-try#ember-tryember-semver-string I believe it's trying for the previous two LTSes (based on 4 releases -- it wouldn't know about 2.18). It's used by ember observer to run tests for addons without generating configs, so I'd like to keep it. |
Hey @kategengler 👋 I've finally had the opportunity to come back to this, it's been a little while 😂 So I'm doing a bit of work with @candunaj to get the ember-try CI working again and we have made the test suite mostly green on this PR: #893 The remaining failing tests are all command smoke tests for the This job https://github.com/ember-cli/ember-try/actions/runs/3427921839/jobs/5711525338 is running the command Looking at the summary table it looks like it's running the following tests:
This bug that causes I personally feel that the way forward is to exclude We're working on a PR that will hopefully fix this bug but I wanted to fill you in on my thought process before we submitted it 👍 We could also investigate why |
I'm curious on why 2.12.2 is included and about the duplicate. The documentation for how the range works is in the readme under I also think a possible solution would be to update the range given in the all commands test to something currently supported. Could also add the necessary packages to those versions when they are generated over in https://github.com/ember-cli/ember-try-config |
ok so looking back at the documentation I think I finally understand what you mean and I think I understand where the conceptual problems are potentially coming from. Essentially the simple version of the fix that I have in mind would be to make Instead what I suggest is that we only alter the behaviour of P.S. I was able to get CI green on #893 because of the documentation explicitly stating that you can override the |
I don't think it is worth changing the behavior of the I do think it would be fine to test I think using the deep merge behavior to |
That would require the smoke-test-app to be upgraded to have the relevant dependencies and "testing against a 4.x" range would have no effect on the problem
I understand why this would seem like the right thing to do but unfortunately you need to know if ember-auto-import is in the dependencies or devDependencies of the addon and update the version accordingly. The reason for that is that you actually change the behaviour of the addon if you add ember-auto-import@2 to the dependencies if it wasn't there before, and if it's in the dependencies then updating the devDependencies will cause a version mismatch |
The point of So, instead of altering the try configs to allow the scenario to fail, how about altering them to add the necessary packages to those scenarios that need them? This would be using As a separate issue, smoke-test-app does should be updated to at least a supported version of Ember. |
I opened a PR a little while ago and I noticed that some of the tests were failing. Digging into it a little bit, it seems like the failure is to do with the
ember try:ember
command.Looking at the results printout for the scenario
./node_modules/.bin/ember try:ember '3.2.0' --skip-cleanup=true
it looks like it's running way more tests than just[email protected]
🤔Looking at the output it is running tests for
The first surprising thing to me is that it runs anything other than
3.2.0
🤔 I guess I could come to peace with the fact that it ran3.2.0
as well as the scenarios that were defined in the ember-try config. But I can't see why this command would result in the beta, alpha, and release versions getting run 🤔I suspect this is just a bug in the implementation. If you can confirm what it's intended to test when you run
ember try:ember '3.2.0'
I will see if I can update the tests and implementation to correspond with this.Alternatively since I think very few people are actually using the
try:ember
command, maybe we just deprecate it and remove the test?What do you think?
The text was updated successfully, but these errors were encountered: