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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

kube-shell: init at 0.0.21 #43802

Closed
wants to merge 1 commit into from
Closed

Conversation

carlosdagos
Copy link
Member

@carlosdagos carlosdagos commented Jul 19, 2018

Motivation for this change

Nice shell for kubectl 馃槃

I don't know if development/tools is the most appropriate place for this though. I'll happy to change it otherwise.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Fits CONTRIBUTING.md.

@matthewbauer
Copy link
Member

@GrahamcOfBorg build kube-shell

@GrahamcOfBorg
Copy link

Failure on x86_64-linux (full log)

Attempted: kube-shell

Partial log (click to expand)

Reading https://pypi.org/simple/kubernetes/
Download error on https://pypi.org/simple/kubernetes/: [Errno -2] Name or service not known -- Some packages may not be found!
Couldn't find index page for 'kubernetes' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading https://pypi.org/simple/
Download error on https://pypi.org/simple/: [Errno -2] Name or service not known -- Some packages may not be found!
No local packages or working download links found for kubernetes<3.0.0,>=0.10.0
error: Could not find suitable distribution for Requirement.parse('kubernetes<3.0.0,>=0.10.0')
builder for '/nix/store/d2lby71mdysch4frj7kpb93n94rs0012-kube-shell-0.0.21.drv' failed with exit code 1
error: build of '/nix/store/d2lby71mdysch4frj7kpb93n94rs0012-kube-shell-0.0.21.drv' failed

@GrahamcOfBorg
Copy link

Failure on aarch64-linux (full log)

Attempted: kube-shell

Partial log (click to expand)

Reading https://pypi.org/simple/kubernetes/
Download error on https://pypi.org/simple/kubernetes/: [Errno -2] Name or service not known -- Some packages may not be found!
Couldn't find index page for 'kubernetes' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading https://pypi.org/simple/
Download error on https://pypi.org/simple/: [Errno -2] Name or service not known -- Some packages may not be found!
No local packages or working download links found for kubernetes<3.0.0,>=0.10.0
error: Could not find suitable distribution for Requirement.parse('kubernetes<3.0.0,>=0.10.0')
builder for '/nix/store/mazws7dhrzljh7r50zw72rk2ra977dz0-kube-shell-0.0.21.drv' failed with exit code 1
error: build of '/nix/store/mazws7dhrzljh7r50zw72rk2ra977dz0-kube-shell-0.0.21.drv' failed

@GrahamcOfBorg
Copy link

Failure on x86_64-linux (full log)

Attempted: kube-shell

Partial log (click to expand)

Reading https://pypi.org/simple/kubernetes/
Download error on https://pypi.org/simple/kubernetes/: [Errno -2] Name or service not known -- Some packages may not be found!
Couldn't find index page for 'kubernetes' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading https://pypi.org/simple/
Download error on https://pypi.org/simple/: [Errno -2] Name or service not known -- Some packages may not be found!
No local packages or working download links found for kubernetes<3.0.0,>=0.10.0
error: Could not find suitable distribution for Requirement.parse('kubernetes<3.0.0,>=0.10.0')
builder for '/nix/store/d2lby71mdysch4frj7kpb93n94rs0012-kube-shell-0.0.21.drv' failed with exit code 1
error: build of '/nix/store/d2lby71mdysch4frj7kpb93n94rs0012-kube-shell-0.0.21.drv' failed

@GrahamcOfBorg
Copy link

Failure on aarch64-linux (full log)

Attempted: kube-shell

Partial log (click to expand)

Reading https://pypi.org/simple/kubernetes/
Download error on https://pypi.org/simple/kubernetes/: [Errno -2] Name or service not known -- Some packages may not be found!
Couldn't find index page for 'kubernetes' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading https://pypi.org/simple/
Download error on https://pypi.org/simple/: [Errno -2] Name or service not known -- Some packages may not be found!
No local packages or working download links found for kubernetes<3.0.0,>=0.10.0
error: Could not find suitable distribution for Requirement.parse('kubernetes<3.0.0,>=0.10.0')
builder for '/nix/store/mazws7dhrzljh7r50zw72rk2ra977dz0-kube-shell-0.0.21.drv' failed with exit code 1
error: build of '/nix/store/mazws7dhrzljh7r50zw72rk2ra977dz0-kube-shell-0.0.21.drv' failed

@GrahamcOfBorg
Copy link

Failure on aarch64-linux (full log)

Attempted: kube-shell

Partial log (click to expand)

Reading https://pypi.org/simple/kubernetes/
Download error on https://pypi.org/simple/kubernetes/: [Errno -2] Name or service not known -- Some packages may not be found!
Couldn't find index page for 'kubernetes' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading https://pypi.org/simple/
Download error on https://pypi.org/simple/: [Errno -2] Name or service not known -- Some packages may not be found!
No local packages or working download links found for kubernetes<3.0.0,>=0.10.0
error: Could not find suitable distribution for Requirement.parse('kubernetes<3.0.0,>=0.10.0')
builder for '/nix/store/mazws7dhrzljh7r50zw72rk2ra977dz0-kube-shell-0.0.21.drv' failed with exit code 1
error: build of '/nix/store/mazws7dhrzljh7r50zw72rk2ra977dz0-kube-shell-0.0.21.drv' failed

@GrahamcOfBorg
Copy link

Failure on x86_64-linux (full log)

Attempted: kube-shell

Partial log (click to expand)

Reading https://pypi.org/simple/kubernetes/
Download error on https://pypi.org/simple/kubernetes/: [Errno -2] Name or service not known -- Some packages may not be found!
Couldn't find index page for 'kubernetes' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading https://pypi.org/simple/
Download error on https://pypi.org/simple/: [Errno -2] Name or service not known -- Some packages may not be found!
No local packages or working download links found for kubernetes<3.0.0,>=0.10.0
error: Could not find suitable distribution for Requirement.parse('kubernetes<3.0.0,>=0.10.0')
builder for '/nix/store/d2lby71mdysch4frj7kpb93n94rs0012-kube-shell-0.0.21.drv' failed with exit code 1
error: build of '/nix/store/d2lby71mdysch4frj7kpb93n94rs0012-kube-shell-0.0.21.drv' failed

@GrahamcOfBorg
Copy link

Success on x86_64-darwin (full log)

Attempted: kube-shell

Partial log (click to expand)

wrapping `/nix/store/mrj8972g4hpy1anhsclvh6apy7hwhx3d-kube-shell-0.0.21/bin/pyrsa-sign'...
wrapping `/nix/store/mrj8972g4hpy1anhsclvh6apy7hwhx3d-kube-shell-0.0.21/bin/pyrsa-verify'...
wrapping `/nix/store/mrj8972g4hpy1anhsclvh6apy7hwhx3d-kube-shell-0.0.21/bin/wsdump.py'...
running install tests
.
----------------------------------------------------------------------
Ran 1 test in 3.611s

OK
/nix/store/mrj8972g4hpy1anhsclvh6apy7hwhx3d-kube-shell-0.0.21

@GrahamcOfBorg
Copy link

Success on x86_64-darwin (full log)

Attempted: kube-shell

Partial log (click to expand)

/nix/store/mrj8972g4hpy1anhsclvh6apy7hwhx3d-kube-shell-0.0.21

@GrahamcOfBorg
Copy link

Success on x86_64-darwin (full log)

Attempted: kube-shell

Partial log (click to expand)

/nix/store/mrj8972g4hpy1anhsclvh6apy7hwhx3d-kube-shell-0.0.21

@carlosdagos
Copy link
Member Author

Seems like the build failures were due to some network error?

Download error on https://pypi.org/simple/kubernetes/: [Errno -2] Name or service not known -- Some packages may not be found!

Still kind of weird that it only succeeded in Darwin 馃槙

@matthewbauer
Copy link
Member

It is probably a sandbox issue. Darwin should fail but the sandbox is broken.

@carlosdagos
Copy link
Member Author

Do you think it's a matter of retrying @matthewbauer? I tried to build using Ubuntu and also worked. I can try NixOS too if that helps.


buildInputs = with pythonPackages; [ pexpect ];

buildPhase = ''
Copy link
Member

Choose a reason for hiding this comment

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

You should be able to use the builtin buildPhase provided by buildPythonApplication

owner = "cloudnativelabs";
};

buildInputs = with pythonPackages; [ pexpect ];
Copy link
Member

Choose a reason for hiding this comment

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

You will need to add to build inputs all of these:

    'prompt-toolkit>=1.0.10,<1.1.0',
    'Pygments>=2.1.3,<3.0.0',
    'fuzzyfinder>=1.0.0',
    'click>=4.0,<7.0',
'kubernetes>=0.10.0,<3.0.0',

${python.interpreter} setup.py build
'';

installPhase = ''
Copy link
Member

Choose a reason for hiding this comment

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

Install phase should also be handled by buildPythonApplication.

@carlosdagos
Copy link
Member Author

This one is pretty stale by now. Will look at it again and open another PR if necessary 馃憤 Thanks!

@carlosdagos carlosdagos closed this Apr 2, 2019
@carlosdagos carlosdagos deleted the kube-shell branch April 2, 2019 00:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants