-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
cli nightly does not work on different OS or storage drivers #3684
Comments
@riuvshin - that check was the check we previously had. So we could revert some of the nightly changes that I made today and put that check back in. But that check is not very reliable as:
So we could still depend upon that date, but we have to really add in some buffers on the assumption that you are comparing a date from another computer to your local date on your server. |
@riuvshin well as we can't start cli anymore on macOs yes I would say a revert should be best option while in parallel new checks can be tested widely About timezone, increasing previous check from one hour to one day should be OK (as timezone is <24hour) Maybe we could also have timestamps for each nightly deployed by the CI like with the current date so checking previous versions is easy: |
@benoitf @TylerJewell after this revert merged cli works for me on macOs but Im not able to run cli command:
output:
I don't understand what was changed but in I also tried to mount another folder to Im not able to reproduce this on MacOs, and it is hard for me to figure out how we detect CODENVY_HOST variable, can you guys help me on that? |
So it seems that I've find how we set this we use |
@benoitf @TylerJewell Ok I've found the issue, we've broke in my case
here is PR that fix this issue #3690 this is very good example of a problem that we should not have hardcoded nightly tags for utility images in CLI... |
reopen issue :( @benoitf @TylerJewell we have to think again how to handle this.... |
I have proposed an updated branch - this time we are comparing digest IDs before and after a pull of the image. We'll use them for an equality check. |
after we merged this cd5db87
we have problems on mac and centOs
error is
this happen because this path
/var/lib/docker/image/aufs/
maybe different for different OS and storage drivers. in production systems we use special data pool devices for docker storage and afaik you can just go there and navigate through files "layers" they all compressed and not accessible.@TylerJewell said that
docker inspect -f '{{ .Created }}' codenvy/cli-saas:nightly
this does not work for us because this date is not the date when image was written to disk, but why we need to know when it was written? As I understand it should be enough to know when image was built like if image was built today - ok this is accurate one if yesterday - no. We can assume here that nightly image we update each day. So I don't understand why that CREATED date does not work for us, I don;t know why we need to know when it was written to disk because it maybe written today but image can be outdated one, i.e we should know when locally pulled CLI image was built and if it was built more than 24h ago - we do pull it and ask to relaunch CLI@benoitf @TylerJewell wdyt guys?
The text was updated successfully, but these errors were encountered: