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

Terraform 0.12.0-alpha2 #50781

Merged
merged 4 commits into from Nov 20, 2018
Merged

Terraform 0.12.0-alpha2 #50781

merged 4 commits into from Nov 20, 2018

Conversation

zimbatm
Copy link
Member

@zimbatm zimbatm commented Nov 19, 2018

Motivation for this change

test terraform 0.12 before it's released

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.

@GrahamcOfBorg
Copy link

Success on x86_64-darwin (full log)

Attempted: terraform, terraform_0_12

Partial log (click to expand)

find: '/nix/store/c7hcdx6mnns7p7zcbdy518mkzakya8n5-terraform-0.12.0-alpha2': No such file or directory
find: '/nix/store/c7hcdx6mnns7p7zcbdy518mkzakya8n5-terraform-0.12.0-alpha2': No such file or directory
find: '/nix/store/c7hcdx6mnns7p7zcbdy518mkzakya8n5-terraform-0.12.0-alpha2': No such file or directory
find: '/nix/store/c7hcdx6mnns7p7zcbdy518mkzakya8n5-terraform-0.12.0-alpha2': No such file or directory
find: '/nix/store/c7hcdx6mnns7p7zcbdy518mkzakya8n5-terraform-0.12.0-alpha2': No such file or directory
find: '/nix/store/c7hcdx6mnns7p7zcbdy518mkzakya8n5-terraform-0.12.0-alpha2': No such file or directory
find: '/nix/store/c7hcdx6mnns7p7zcbdy518mkzakya8n5-terraform-0.12.0-alpha2': No such file or directory
find: '/nix/store/c7hcdx6mnns7p7zcbdy518mkzakya8n5-terraform-0.12.0-alpha2': No such file or directory
/nix/store/vvarv292id3s0918wkjmb267zaaz1g48-terraform-0.11.10-bin
/nix/store/nifiqjjd1yn9grq6hapsqs027b8l9qm5-terraform-0.12.0-alpha2-bin

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: terraform, terraform_0_12

Partial log (click to expand)

post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/zpdcdbjjaj4bkag7rrjhcjbwmk7pv3fm-terraform-0.12.0-alpha2-bin
shrinking /nix/store/zpdcdbjjaj4bkag7rrjhcjbwmk7pv3fm-terraform-0.12.0-alpha2-bin/bin/terraform
strip is /nix/store/vcc4svb8gy29g4pam2zja6llkbcwsyiq-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/zpdcdbjjaj4bkag7rrjhcjbwmk7pv3fm-terraform-0.12.0-alpha2-bin/bin
patching script interpreter paths in /nix/store/zpdcdbjjaj4bkag7rrjhcjbwmk7pv3fm-terraform-0.12.0-alpha2-bin
checking for references to /build in /nix/store/zpdcdbjjaj4bkag7rrjhcjbwmk7pv3fm-terraform-0.12.0-alpha2-bin...
strip is /nix/store/vcc4svb8gy29g4pam2zja6llkbcwsyiq-binutils-2.30/bin/strip
/nix/store/l0zsjrhfq3p43crh71pcz2hzn47y8gmx-terraform-0.11.10-bin
/nix/store/zpdcdbjjaj4bkag7rrjhcjbwmk7pv3fm-terraform-0.12.0-alpha2-bin

@GrahamcOfBorg
Copy link

Failure on aarch64-linux (full log)

Attempted: terraform, terraform_0_12

Partial log (click to expand)

github.com/hashicorp/terraform/registry/test
github.com/hashicorp/terraform/scripts
github.com/hashicorp/terraform/state/testdata
github.com/hashicorp/terraform/states/statemgr/testdata
github.com/hashicorp/terraform/svchost/auth/test-helper
github.com/hashicorp/terraform/tools/loggraphdiff
github.com/hashicorp/terraform/tools/terraform-bundle
github.com/hashicorp/terraform/tools/terraform-bundle/e2etest
builder for '/nix/store/ih3f17hlgyflh05gp5nzqpj1zzzzd2sj-terraform-0.12.0-alpha2.drv' failed with exit code 46
error: build of '/nix/store/ih3f17hlgyflh05gp5nzqpj1zzzzd2sj-terraform-0.12.0-alpha2.drv' failed

@@ -22593,11 +22593,12 @@ with pkgs;
terraform_0_10-full
terraform_0_11
terraform_0_11-full
terraform_0_12
Copy link
Member

Choose a reason for hiding this comment

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

Adding new versions is fine, but what about removing old ones?
I don't see terraform maintaining previous releases so we should also limit the amounts of versions.

Copy link
Member

Choose a reason for hiding this comment

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

I agree. Since 0.12 is actually functionally different we'll probably want to keep 0.11 around for a while after the fact, but the earlier ones are probably disposable. I do remember @shlevy having some use case for even earlier versions but I don't know if he still does.

Copy link
Member Author

Choose a reason for hiding this comment

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

agreed, deleted a bunch of old versions with associated dependants

Copy link
Member Author

Choose a reason for hiding this comment

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

actually even 0.10 should be safe to delete, there hasn't been any backward-incompatible changes in 0.11

Copy link
Member

Choose a reason for hiding this comment

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

Agreed from my standpoint, I'd just make sure that @shlevy doesn't have some weird corner case because I do recall him saying he had a reason to keep the older one around.

The rest of the PR seems fine to me, thanks!

Copy link
Member

Choose a reason for hiding this comment

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

OK to delete some of the old ones. We ran into cases where TF was updating quickly and breaking backwards compat but certainly the oldest ones can be removed now. We're using 0.11 currently IIRC.

Copy link
Member Author

Choose a reason for hiding this comment

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

Alright, deleting 0.10 as well

These are very old and blocking cleaning old terraform releases
@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: terraform, terraform_0_12, terragrunt

Partial log (click to expand)

copying path '/nix/store/25pr1y732yzy9p23kqqdcmmyadx819wb-zfs-user-0.7.12-lib' from 'https://cache.nixos.org'...
copying path '/nix/store/yhv0iv0vyvhnqh56ikv4d9426hfhz9lv-zfs-user-0.7.12' from 'https://cache.nixos.org'...
copying path '/nix/store/4jhrn2rqb5wafnhl59nixlskg0yasmdy-libvirt-4.7.0' from 'https://cache.nixos.org'...
copying path '/nix/store/1xv3yfzgggbaahml5z8wiqg8fi675142-terraform-provider-libvirt-0.4-bin' from 'https://cache.nixos.org'...
copying path '/nix/store/n60jhxbqwzx6zdgr92caljlszmlvxnda-tf-plugin-env' from 'https://cache.nixos.org'...
copying path '/nix/store/pf5xjai2jmafa2dpaxxryi87p9zrbmjw-terraform-0.11.10' from 'https://cache.nixos.org'...
copying path '/nix/store/2zzkbhwfv3d1qq41v6p8kp4rdqvdij96-terragrunt-0.17.2-bin' from 'https://cache.nixos.org'...
/nix/store/l0zsjrhfq3p43crh71pcz2hzn47y8gmx-terraform-0.11.10-bin
/nix/store/zpdcdbjjaj4bkag7rrjhcjbwmk7pv3fm-terraform-0.12.0-alpha2-bin
/nix/store/2zzkbhwfv3d1qq41v6p8kp4rdqvdij96-terragrunt-0.17.2-bin

@GrahamcOfBorg
Copy link

Success on x86_64-darwin (full log)

Attempted: terraform, terraform_0_12

The following builds were skipped because they don't evaluate on x86_64-darwin: terragrunt

Partial log (click to expand)

find: '/nix/store/c7hcdx6mnns7p7zcbdy518mkzakya8n5-terraform-0.12.0-alpha2': No such file or directory
find: '/nix/store/c7hcdx6mnns7p7zcbdy518mkzakya8n5-terraform-0.12.0-alpha2': No such file or directory
find: '/nix/store/c7hcdx6mnns7p7zcbdy518mkzakya8n5-terraform-0.12.0-alpha2': No such file or directory
find: '/nix/store/c7hcdx6mnns7p7zcbdy518mkzakya8n5-terraform-0.12.0-alpha2': No such file or directory
find: '/nix/store/c7hcdx6mnns7p7zcbdy518mkzakya8n5-terraform-0.12.0-alpha2': No such file or directory
find: '/nix/store/c7hcdx6mnns7p7zcbdy518mkzakya8n5-terraform-0.12.0-alpha2': No such file or directory
find: '/nix/store/c7hcdx6mnns7p7zcbdy518mkzakya8n5-terraform-0.12.0-alpha2': No such file or directory
find: '/nix/store/c7hcdx6mnns7p7zcbdy518mkzakya8n5-terraform-0.12.0-alpha2': No such file or directory
/nix/store/vvarv292id3s0918wkjmb267zaaz1g48-terraform-0.11.10-bin
/nix/store/nifiqjjd1yn9grq6hapsqs027b8l9qm5-terraform-0.12.0-alpha2-bin

@GrahamcOfBorg
Copy link

Failure on aarch64-linux (full log)

Attempted: terraform, terraform_0_12, terragrunt

Partial log (click to expand)

/nix/store/r4sahv4pkqb5b0qm4gg6qik6nd2i34bf-libvirt-4.7.0/var/lib/rc.d/init.d/libvirtd: interpreter directive changed from "/bin/sh" to "/nix/store/dsyc1z7ck08ga7l0b1jcxx35wj69qcii-bash-4.4-p23/bin/sh"
/nix/store/r4sahv4pkqb5b0qm4gg6qik6nd2i34bf-libvirt-4.7.0/var/lib/rc.d/init.d/virtlogd: interpreter directive changed from "/bin/sh" to "/nix/store/dsyc1z7ck08ga7l0b1jcxx35wj69qcii-bash-4.4-p23/bin/sh"
/nix/store/r4sahv4pkqb5b0qm4gg6qik6nd2i34bf-libvirt-4.7.0/libexec/libvirt-guests.sh: interpreter directive changed from "/bin/sh" to "/nix/store/dsyc1z7ck08ga7l0b1jcxx35wj69qcii-bash-4.4-p23/bin/sh"
checking for references to /build in /nix/store/r4sahv4pkqb5b0qm4gg6qik6nd2i34bf-libvirt-4.7.0...
moving /nix/store/r4sahv4pkqb5b0qm4gg6qik6nd2i34bf-libvirt-4.7.0/sbin/* to /nix/store/r4sahv4pkqb5b0qm4gg6qik6nd2i34bf-libvirt-4.7.0/bin
cannot build derivation '/nix/store/abq75g7fwggvrx6yn48hzaqy96w98fym-terraform-provider-libvirt-0.4.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/wlv9cxnymczik2sdhyh20h5nscmdfk4c-tf-plugin-env.drv': 6 dependencies couldn't be built
cannot build derivation '/nix/store/dsk049wmm8ms2hk2bnwymyi0al1vrbzj-terraform-0.11.10.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/dkz74jaa5nh5d8jakqmbb7kmax24q960-terragrunt-0.17.2.drv': 1 dependencies couldn't be built
error: build of '/nix/store/dkz74jaa5nh5d8jakqmbb7kmax24q960-terragrunt-0.17.2.drv', '/nix/store/ih3f17hlgyflh05gp5nzqpj1zzzzd2sj-terraform-0.12.0-alpha2.drv' failed

@GrahamcOfBorg
Copy link

Success on x86_64-darwin (full log)

Attempted: terraform, terraform_0_12

The following builds were skipped because they don't evaluate on x86_64-darwin: terragrunt

Partial log (click to expand)

  { nixpkgs.config.allowUnsupportedSystem = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowUnsupportedSystem = true; }
to ~/.config/nixpkgs/config.nix.


/nix/store/vvarv292id3s0918wkjmb267zaaz1g48-terraform-0.11.10-bin
/nix/store/nifiqjjd1yn9grq6hapsqs027b8l9qm5-terraform-0.12.0-alpha2-bin

providers are already compiled independently so we don't need Hydra to
follow terraform_MAJ_MIN_full to have them all compiled.

Instead of having to create two aliases per release, add a "full"
passthru for that common use-case.

Eg:

  terraform_0_11_full -> terraform_0_11.full
@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: terraform, terraform_0_12, terragrunt

Partial log (click to expand)

patching script interpreter paths in /nix/store/zpdcdbjjaj4bkag7rrjhcjbwmk7pv3fm-terraform-0.12.0-alpha2-bin
checking for references to /build in /nix/store/zpdcdbjjaj4bkag7rrjhcjbwmk7pv3fm-terraform-0.12.0-alpha2-bin...
strip is /nix/store/vcc4svb8gy29g4pam2zja6llkbcwsyiq-binutils-2.30/bin/strip
copying path '/nix/store/1xv3yfzgggbaahml5z8wiqg8fi675142-terraform-provider-libvirt-0.4-bin' from 'https://nix-cache.s3.amazonaws.com'...
copying path '/nix/store/n60jhxbqwzx6zdgr92caljlszmlvxnda-tf-plugin-env' from 'https://nix-cache.s3.amazonaws.com'...
copying path '/nix/store/pf5xjai2jmafa2dpaxxryi87p9zrbmjw-terraform-0.11.10' from 'https://nix-cache.s3.amazonaws.com'...
copying path '/nix/store/2zzkbhwfv3d1qq41v6p8kp4rdqvdij96-terragrunt-0.17.2-bin' from 'https://nix-cache.s3.amazonaws.com'...
/nix/store/l0zsjrhfq3p43crh71pcz2hzn47y8gmx-terraform-0.11.10-bin
/nix/store/zpdcdbjjaj4bkag7rrjhcjbwmk7pv3fm-terraform-0.12.0-alpha2-bin
/nix/store/2zzkbhwfv3d1qq41v6p8kp4rdqvdij96-terragrunt-0.17.2-bin

@GrahamcOfBorg
Copy link

Failure on aarch64-linux (full log)

Attempted: terraform, terraform_0_12, terragrunt

Partial log (click to expand)

installing
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/rfpkkzxnb9bqmcv3yjs8p1qvdc83gh8q-terragrunt-0.17.2-bin
shrinking /nix/store/rfpkkzxnb9bqmcv3yjs8p1qvdc83gh8q-terragrunt-0.17.2-bin/bin/.terragrunt-wrapped
strip is /nix/store/p9akxn2sfy4wkhqdqa3li97pc6jaz3r1-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/rfpkkzxnb9bqmcv3yjs8p1qvdc83gh8q-terragrunt-0.17.2-bin/bin
patching script interpreter paths in /nix/store/rfpkkzxnb9bqmcv3yjs8p1qvdc83gh8q-terragrunt-0.17.2-bin
checking for references to /build in /nix/store/rfpkkzxnb9bqmcv3yjs8p1qvdc83gh8q-terragrunt-0.17.2-bin...
strip is /nix/store/p9akxn2sfy4wkhqdqa3li97pc6jaz3r1-binutils-2.30/bin/strip
error: build of '/nix/store/ih3f17hlgyflh05gp5nzqpj1zzzzd2sj-terraform-0.12.0-alpha2.drv' failed

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: terraform, terraform_0_12, terragrunt

Partial log (click to expand)

  /nix/store/n60jhxbqwzx6zdgr92caljlszmlvxnda-tf-plugin-env
  /nix/store/pf5xjai2jmafa2dpaxxryi87p9zrbmjw-terraform-0.11.10
copying path '/nix/store/4jhrn2rqb5wafnhl59nixlskg0yasmdy-libvirt-4.7.0' from 'https://nix-cache.s3.amazonaws.com'...
copying path '/nix/store/1xv3yfzgggbaahml5z8wiqg8fi675142-terraform-provider-libvirt-0.4-bin' from 'https://nix-cache.s3.amazonaws.com'...
copying path '/nix/store/n60jhxbqwzx6zdgr92caljlszmlvxnda-tf-plugin-env' from 'https://nix-cache.s3.amazonaws.com'...
copying path '/nix/store/pf5xjai2jmafa2dpaxxryi87p9zrbmjw-terraform-0.11.10' from 'https://nix-cache.s3.amazonaws.com'...
copying path '/nix/store/2zzkbhwfv3d1qq41v6p8kp4rdqvdij96-terragrunt-0.17.2-bin' from 'https://nix-cache.s3.amazonaws.com'...
/nix/store/l0zsjrhfq3p43crh71pcz2hzn47y8gmx-terraform-0.11.10-bin
/nix/store/zpdcdbjjaj4bkag7rrjhcjbwmk7pv3fm-terraform-0.12.0-alpha2-bin
/nix/store/2zzkbhwfv3d1qq41v6p8kp4rdqvdij96-terragrunt-0.17.2-bin

@GrahamcOfBorg
Copy link

Success on x86_64-darwin (full log)

Attempted: terraform, terraform_0_12

The following builds were skipped because they don't evaluate on x86_64-darwin: terragrunt

Partial log (click to expand)

  { nixpkgs.config.allowUnsupportedSystem = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowUnsupportedSystem = true; }
to ~/.config/nixpkgs/config.nix.


/nix/store/vvarv292id3s0918wkjmb267zaaz1g48-terraform-0.11.10-bin
/nix/store/nifiqjjd1yn9grq6hapsqs027b8l9qm5-terraform-0.12.0-alpha2-bin

@zimbatm zimbatm merged commit 7a9acea into NixOS:master Nov 20, 2018
@zimbatm zimbatm deleted the terraform_0_12-alpha branch November 20, 2018 10:09
@GrahamcOfBorg
Copy link

Failure on aarch64-linux (full log)

Attempted: terraform, terraform_0_12, terragrunt

Partial log (click to expand)

github.com/hashicorp/terraform/registry/test
github.com/hashicorp/terraform/scripts
github.com/hashicorp/terraform/state/testdata
github.com/hashicorp/terraform/states/statemgr/testdata
github.com/hashicorp/terraform/svchost/auth/test-helper
github.com/hashicorp/terraform/tools/loggraphdiff
github.com/hashicorp/terraform/tools/terraform-bundle
github.com/hashicorp/terraform/tools/terraform-bundle/e2etest
builder for '/nix/store/ih3f17hlgyflh05gp5nzqpj1zzzzd2sj-terraform-0.12.0-alpha2.drv' failed with exit code 47
error: build of '/nix/store/ih3f17hlgyflh05gp5nzqpj1zzzzd2sj-terraform-0.12.0-alpha2.drv' failed

@GrahamcOfBorg
Copy link

Success on x86_64-darwin (full log)

Attempted: terraform, terraform_0_12

The following builds were skipped because they don't evaluate on x86_64-darwin: terragrunt

Partial log (click to expand)

  { nixpkgs.config.allowUnsupportedSystem = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowUnsupportedSystem = true; }
to ~/.config/nixpkgs/config.nix.


/nix/store/vvarv292id3s0918wkjmb267zaaz1g48-terraform-0.11.10-bin
/nix/store/nifiqjjd1yn9grq6hapsqs027b8l9qm5-terraform-0.12.0-alpha2-bin

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: terraform, terraform_0_12, terragrunt

Partial log (click to expand)

copying path '/nix/store/25pr1y732yzy9p23kqqdcmmyadx819wb-zfs-user-0.7.12-lib' from 'https://cache.nixos.org'...
copying path '/nix/store/yhv0iv0vyvhnqh56ikv4d9426hfhz9lv-zfs-user-0.7.12' from 'https://cache.nixos.org'...
copying path '/nix/store/4jhrn2rqb5wafnhl59nixlskg0yasmdy-libvirt-4.7.0' from 'https://cache.nixos.org'...
copying path '/nix/store/1xv3yfzgggbaahml5z8wiqg8fi675142-terraform-provider-libvirt-0.4-bin' from 'https://cache.nixos.org'...
copying path '/nix/store/n60jhxbqwzx6zdgr92caljlszmlvxnda-tf-plugin-env' from 'https://cache.nixos.org'...
copying path '/nix/store/pf5xjai2jmafa2dpaxxryi87p9zrbmjw-terraform-0.11.10' from 'https://cache.nixos.org'...
copying path '/nix/store/2zzkbhwfv3d1qq41v6p8kp4rdqvdij96-terragrunt-0.17.2-bin' from 'https://cache.nixos.org'...
/nix/store/l0zsjrhfq3p43crh71pcz2hzn47y8gmx-terraform-0.11.10-bin
/nix/store/zpdcdbjjaj4bkag7rrjhcjbwmk7pv3fm-terraform-0.12.0-alpha2-bin
/nix/store/2zzkbhwfv3d1qq41v6p8kp4rdqvdij96-terragrunt-0.17.2-bin

@GrahamcOfBorg
Copy link

Failure on aarch64-linux (full log)

Attempted: terraform, terraform_0_12, terragrunt

Partial log (click to expand)

github.com/hashicorp/terraform/registry/test
github.com/hashicorp/terraform/scripts
github.com/hashicorp/terraform/state/testdata
github.com/hashicorp/terraform/states/statemgr/testdata
github.com/hashicorp/terraform/svchost/auth/test-helper
github.com/hashicorp/terraform/tools/loggraphdiff
github.com/hashicorp/terraform/tools/terraform-bundle
github.com/hashicorp/terraform/tools/terraform-bundle/e2etest
builder for '/nix/store/ih3f17hlgyflh05gp5nzqpj1zzzzd2sj-terraform-0.12.0-alpha2.drv' failed with exit code 46
error: build of '/nix/store/ih3f17hlgyflh05gp5nzqpj1zzzzd2sj-terraform-0.12.0-alpha2.drv' failed

@copumpkin
Copy link
Member

Thanks for doing this!

@ben0x539
Copy link
Contributor

Is it intentional that nix-env -u switches me from terraform 0.11 to this pre-release package?

@rasendubi
Copy link
Member

rasendubi commented Dec 13, 2018 via email

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

7 participants