Giter Club home page Giter Club logo

Comments (14)

smacker avatar smacker commented on August 16, 2024 1

Nope. In the previous release, we used cobra instead of go-cli. It uses posix style by default and doesn't support /. I agree with Carlos on forcing posix in go-cli to keep behavior the same as before.

from engine-deprecated.

smacker avatar smacker commented on August 16, 2024

I have fixed some bugs & merged in master as you could see.

But we have more problems:

  • go-cli uses /flag format for options instead of --flag as it was before, are we ok with it?
  • we have changed how errors are displayed. Now they escape \ and tests are failing
  • some sql tests are failing now. Because queries like /*_comment_*/_show_tables; are parsed like unknown flags now. What do we want to do about it?
  • TestWebTestSuite/TestSQL fails with could not prune components: unable to remove all containers: container not found now sure why
  • logs are ugly now:

Screenshot 2019-04-24 at 18 07 26

- looks like `StreamLinifier` doesn't support windows correctly (most probably due to `\r\n` instead of '\n'). Tests are failing.

from engine-deprecated.

carlosms avatar carlosms commented on August 16, 2024
  • go-cli uses /flag format for options instead of --flag as it was before, are we ok with it?
  • some sql tests are failing now. Because queries like /*_comment_*/_show_tables; are parsed like unknown flags now. What do we want to do about it?

From jessevdk/go-flags docs, we can change it to be --opt with the build tag forceposix.
We can change it in run-integration-tests.bat (go build -tags forceposix) and Makefile (GO_TAGS = forceposix)

  • TestWebTestSuite/TestSQL fails with could not prune components: unable to remove all containers: container not found now sure why

This one looks like the most important problem to me.

from engine-deprecated.

se7entyse7en avatar se7entyse7en commented on August 16, 2024
  • go-cli uses /flag format for options instead of --flag as it was before, are we ok with it?
  • some sql tests are failing now. Because queries like /*_comment_*/_show_tables; are parsed like unknown flags now. What do we want to do about it?

If the windows user is more familiar with / instead of - I'd keep this behavior. WRT the tests I think that it makes sense to have different test builds for Windows. In this /*_comment_*/_show_tables; case on windows is actually expected that it raises an unknown flags error.

  • looks like StreamLinifier doesn't support windows correctly (most probably due to \r\n instead of '\n'). Tests are failing.

This seems to be an easy fix.

  • TestWebTestSuite/TestSQL fails with could not prune components: unable to remove all containers: container not found now sure why

This one looks like the most important problem to me.

Yup, I agree 😕.

from engine-deprecated.

carlosms avatar carlosms commented on August 16, 2024
  • go-cli uses /flag format for options instead of --flag as it was before, are we ok with it?
  • some sql tests are failing now. Because queries like /*_comment_*/_show_tables; are parsed like unknown flags now. What do we want to do about it?

If the windows user is more familiar with / instead of - I'd keep this behavior.

If this was the first windows release, it would make sense. But in this case it is a breaking change that we can avoid easily, and as an extra it probably takes less effort to add this build tag than adapt the tests to work differently on windows.

from engine-deprecated.

se7entyse7en avatar se7entyse7en commented on August 16, 2024

If this was the first windows release, it would make sense. But in this case it is a breaking change that we can avoid easily.

Isn't it the opposite? I mean we already have a released version (though experimental), so if we use the forceposix tag we will break the usage of / that is how it works now.

from engine-deprecated.

carlosms avatar carlosms commented on August 16, 2024

If this was the first windows release, it would make sense. But in this case it is a breaking change that we can avoid easily.

Isn't it the opposite? I mean we already have a released version (though experimental), so if we use the forceposix tag we will break the usage of / that is how it works now.

But 0.11 and 0.12 already use the --opt style. If we change it to /opt in 0.13 it's a breaking change.

from engine-deprecated.

se7entyse7en avatar se7entyse7en commented on August 16, 2024

But 0.11 and 0.12 already use the --opt style. If we change it to /opt in 0.13 it's a breaking change.

Yup, sorry I tried on master 😅.

from engine-deprecated.

se7entyse7en avatar se7entyse7en commented on August 16, 2024

BTW it seems that now both options are working, so it wouldn't be a real breaking change except for the fact that it won't be explained in the usage.

from engine-deprecated.

se7entyse7en avatar se7entyse7en commented on August 16, 2024

#459 addresses all issues except for the ugly log.

  • looks like StreamLinifier doesn't support windows correctly (most probably due to \r\n instead of '\n').

AFAIR not it is used only for interactive repl testing, but they're skipped for Windows.

from engine-deprecated.

smacker avatar smacker commented on August 16, 2024

StreamLinifier

but when I run tests they failed on windows. Not tests that use this struct but the test for the struct itself.

from engine-deprecated.

se7entyse7en avatar se7entyse7en commented on August 16, 2024

Not tests that use this struct but the test for the struct itself.

Ah ok, right! 😅 For some reason they're passing now 👍, I don't remember if they were failing when I started working on this.

from engine-deprecated.

smacker avatar smacker commented on August 16, 2024

Fix for logs was merged in go-log.

from engine-deprecated.

carlosms avatar carlosms commented on August 16, 2024

Everything seems to work now except the log colors. The code in src-d/go-log#16 did not fix the output in Engine.
I created #462 to keep track, we can close this issue.

from engine-deprecated.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.