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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nixos test containers python port #74218

Merged
merged 3 commits into from Nov 27, 2019

Conversation

tfc
Copy link
Contributor

@tfc tfc commented Nov 25, 2019

Motivation for this change

#72828

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • 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 nix-review --run "nix-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)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.
Notify maintainers

cc @flokli @worldofpeace @Lassulus

@tfc
Copy link
Contributor Author

tfc commented Nov 25, 2019

@GrahamcOfBorg test containers-bridge containers-ipv4 containers-ipv6

Copy link
Contributor

@flokli flokli left a comment

Choose a reason for hiding this comment

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

As all of these are very similar, what do you think about joining the network-related ones into a single testScript, and testing each variant in a subtest?

chomp $ip;
$machine->succeed("ping -n -c1 $ip");
$machine->succeed("curl --fail http://$ip/ > /dev/null");
with subtest("wait 2s for container to start and network to be up"):
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we shouldn't overdo with grouping things into subtests. This should really be just a comment. ;-)

@tfc
Copy link
Contributor Author

tfc commented Nov 26, 2019

@GrahamcOfBorg test containers-bridge containers-ipv containers-imperative

@tfc tfc force-pushed the nixos-test-containers-python-port branch from 1479e03 to f58088c Compare November 26, 2019 08:29
@tfc
Copy link
Contributor Author

tfc commented Nov 26, 2019

@GrahamcOfBorg test containers-bridge containers-ip containers-imperative

@tfc tfc force-pushed the nixos-test-containers-python-port branch from f58088c to b1e9e7c Compare November 26, 2019 09:06
@tfc
Copy link
Contributor Author

tfc commented Nov 26, 2019

@GrahamcOfBorg test containers-bridge containers-ip containers-imperative

@tfc tfc force-pushed the nixos-test-containers-python-port branch from b1e9e7c to 9de0a8a Compare November 27, 2019 08:13
@tfc
Copy link
Contributor Author

tfc commented Nov 27, 2019

@GrahamcOfBorg test containers-bridge containers-ip containers-imperative

@globin globin merged commit 39022bc into NixOS:master Nov 27, 2019
@tfc tfc deleted the nixos-test-containers-python-port branch November 27, 2019 19:30
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

3 participants