Commit graph

4341 commits

Author SHA1 Message Date
Evan Boyle
67838d8711
Marshal non-string provider config (#3948) 2020-02-21 12:55:27 -08:00
Luke Hoban
5bd954edf6
Include dep ensure step in pulumi new output. (#3949) 2020-02-21 06:41:33 -08:00
Mikhail Shilkov
42d1a606a4
Simplify resource options (#3943)
Simplify resource options, making the base class abstract
2020-02-21 09:24:52 +01:00
Pat Gavlin
259b2d314a Update the CHANGELOG for 1.11.0 2020-02-20 10:11:12 -08:00
Erin Krengel
aacf4bbc10
Add policy config apitypes (#3872) 2020-02-19 10:06:11 -08:00
Luke Hoban
4eb2b555fe
Disable interactive progress display when no terminal size is available (#3936)
It appears there are cases where our IsInteractive heuristics return true, but terminal.GetSize returns an error. In these cases, we should assume we do not have an interactive terminal and avoid trying to render interactive progress by default.

Fixes #3935.
2020-02-19 09:21:03 -08:00
Lee Zen
f6402882c2
Regression tests for StackReference in the Python SDK (#3913)
* Make Python StackReference test similar to others (with two steps)
* Include new Python StackReference integration test that uses multiple stacks
* Expose various life cycle methods for ProgramTester
2020-02-17 10:40:46 -08:00
Luke Hoban
eee99e6011
Revert "Fix getting logs in tests for Lambdas" (#3923)
* Revert "Use test helper. (#1977)"

This reverts commit e498cab239.

* Avoid duplicate newlines

Ensure that we print exactly one trailing newline per log entry.
2020-02-13 22:38:12 -08:00
Jamie Kinkead
abd1b98003
improve PAC error output (#3881)
* Improve pac error output

* Print policy packs applied if no violations present

* Remove unnecessary policyInfo struct

* Adjust integration test
2020-02-13 15:16:46 -08:00
Chris Smith
ba046b063b
Add --version flag to 'pulumi stack export' (#3906)
* Add --version flag to 'pulumi stack export'

* Update CHANGELOG

* Update/rebase with latest

* Fix lint warning
2020-02-13 12:25:57 -08:00
Lee Zen
54d344f7c1
Serialize CustomTimeouts in Python SDK (#3920)
* Translate CustomTimeouts properly for RPC serialization
* Include integration test for custom timeouts
2020-02-13 10:40:56 -08:00
Erin Krengel
c18e513b67
Add version tag to apitypes (#3912) 2020-02-12 10:13:25 -08:00
Lee Zen
a22c1eb929
Fix the fully-specified name test for cmd/new to have the project name match correctly. (#3909) 2020-02-12 09:48:56 -08:00
Pat Gavlin
2b59d1405d
Fix a few codegen issues. (#3915)
- Make go comment generation lint-clean for blank comment lines
- Fix the casing of `Provider.py` in Python to `provider.py`
- Fix a spacing issue in the NodeJS code generator
2020-02-11 14:34:22 -08:00
Mikhail Shilkov
f1cdce9488
Move .NET serialization attributes to Pulumi namespace (#3902)
Move .NET serialization attributes to Pulumi namespace, deprecate the ones in Pulumi.Serialization
2020-02-11 11:40:14 +01:00
Lee Zen
d68d22a541
Run dotnet test with version parameters so that it doesn't generate a differently versioned .nupkg file (#3888) 2020-02-10 14:43:43 -08:00
Levi Blackstone
7efb88de3e
Allow oversize protocol buffers (#3895)
Set an option to increase the memory limit on protobuf
parsing so that we can handle larger gRPC payloads.

Co-authored-by: Evan Boyle <EvanBoyle@users.noreply.github.com>
2020-02-10 15:30:42 -07:00
Erin Krengel
c219633bee
add missing json tag and note (#3896) 2020-02-10 11:04:11 -08:00
Justin Van Patten
3bf9067bac
Expose options, parent, deps, and provider config to policies (#3862) 2020-02-07 16:11:34 -08:00
Luke Hoban
f6e37c25ad
Don't print prelude in terminal mode (#3890)
We can't correctly print simple messages for prelude events when doing progress based display in a terminal, as it would lead to resetting the display of the table rendering.

This does mean that `--show-config` no longer works in the default terminal display mode - but it's not clear it *can* work correctly (at least as currently implemented) since it doesn't cleanly participate in the table rendering.

For cases where `--show-config` is not set (the norm) -nothing would have been printed anyway, so the changes here just avoid resetting the table rendering unnecessarily.

Fixes #3469.
2020-02-07 12:44:22 -08:00
CyrusNajmabadi
060450395c
Breaking out individual testing knobs. (#3894) 2020-02-07 12:36:23 -08:00
Pat Gavlin
4a201a7dfd
Do not busy wait in Python. (#3892)
Instead, keep a stack of outstanding RPCs and await each in turn. This
allows the main loop to block instead of spin.

Fixes #3759.
2020-02-07 12:10:59 -08:00
Pat Gavlin
add181e57c
Small fixes in schema codegen. (#3889)
- Do not JSON-encode provider properties that are token types with an
  underlying string type
- Emit PEP 561 type metadata in setup.py
2020-02-07 09:43:20 -08:00
CyrusNajmabadi
ee6b545358
Be resilient to duplicate tasks in our inflight task list. (#3887) 2020-02-06 15:29:41 -08:00
Praneet Loke
b0696ec42c
Check if TRAVIS_PULL_REQUEST is false before setting the ci vars' PRNumber property (#3869) 2020-02-06 12:25:06 -08:00
Evan Boyle
cea807a244
Go aliases (#3853) 2020-02-06 12:02:13 -08:00
Luke Hoban
5bf490228a
Use \n for provider protocol even on Windows (#3855)
The provider plugin protocol is to write a port number followed by `\n`.  We must guarantee we do that even on Windows, so must avoid Python `print` statements which implicitly rewrite newlines to platform specific character sequences.

Fixes #3807.
2020-02-06 11:34:05 -08:00
Pat Gavlin
3b445f10b4 Update the CHANGELOG for v1.10.1 2020-02-06 10:05:45 -08:00
Evan Boyle
411f1a179a
Support stack references in Go SDK (#3829) 2020-02-06 10:00:46 -08:00
Chris Smith
63be1b5d21
Add --rm to docker run (#3871) 2020-02-06 09:32:33 -08:00
Pat Gavlin
0dbbd919b8
Add schema support for deprecated properties. (#3865)
This is the schema-based version of
https://github.com/pulumi/pulumi-terraform-bridge/pull/96.
2020-02-06 09:29:06 -08:00
Paul Stack
548996d7ae
Restore the work to add Publish release builds of Pulumi (#3875)
Fixes: #3874

As part of #3656, the build.proj was changed around to support
building and running our tests on windows. The work in that PR added
a lot to get Python, Go and DotNet included in our master and PR runs
for those tests

This PR restores the work to allow the original work for non-PRs (i.e.
tagged builds) to work along side this. It adds a `Release` target which
targets the same build targets as before. It is wrapped in a condition that
will mean it can run when AppVeyor is dealing with a tag (i.e a release)

This means that the existing work to allow all of the master and pr builds
to continue running all of our integration tests will still work as
expected
2020-02-06 09:28:08 -08:00
spara
2648c48205 update python instructions 2020-02-05 19:28:34 -06:00
Pat Gavlin
5df00f8303 Update the CHANGELOG for 1.10.0 2020-02-05 12:56:10 -08:00
Mikhail Shilkov
169a1e6a70
Dictionary resource in .NET (#3828)
Dictionary resource for Kubernetes YAML support
2020-02-05 21:22:30 +01:00
Pat Gavlin
ad96a45a05
Align defaults with OpenAPI (#3859)
Replace the various `defaults` maps in the schema with per-property
`default` and `defaultInfo` fields. The former holds the static default
value; the latter holds the envvars and language-specific info.

Also, fix a minor bug in the Python codegen that caused diffs in
property docstrings.
2020-02-05 11:43:39 -08:00
Pat Gavlin
7fff99d346
Do not allocate outputs for nested prompt values. (#3851)
* Do not allocate outputs for nested prompt values.

Currently, `outupt`/`all` in the NodeJS SDK work recursively, allocating
outputs for every value at every depth, then collecting the component
promises into a top-level output. In the case of prompt values, these
nested outputs are not necessary, and allocating them can create massive
amounts of garbage. This appears to be the cause of
https://github.com/pulumi/pulumi-kubernetes/issues/963.
2020-02-04 19:21:37 -08:00
Luke Hoban
615ab3a4bf
Fix bug in computing whether checkpoint write is necessary (#3860)
We were seeing that ~all same steps were requiring checkpoint writes due to percieving a difference between `Dependencies` being `nil` and `[]URN{}` - which should be considered the same for this purpose.
2020-02-04 18:56:24 -08:00
Paul Stack
faec2c6870
Template tests will be part of the templates repo (#3843)
Template tests will be part of the templates repo
2020-02-04 12:41:11 +01:00
Jamie Kinkead
1f2d0cbdf4
Add create flag to stack select (#3852)
* Add create flag to stack select

* Add secrets provider flag
2020-02-03 14:11:55 -08:00
Erin Krengel
89f84dc4d9
Improve PP naming for local PPs (#3839) 2020-01-30 13:31:41 -08:00
CyrusNajmabadi
d48e35b50e
Build feature-xxx branches as well as features/xxx branches (#3848) 2020-01-30 12:28:31 -08:00
stack72
4c8997bf63 Template tests will be part of the templates repo
Fixes: #3744
2020-01-30 13:33:02 +00:00
Mikhail Shilkov
d46a1d1abb
Output watcher (#3836) 2020-01-30 08:05:47 +01:00
Jamie Kinkead
9c0e9021d1
Return current operation info (#3822) 2020-01-29 16:04:09 -08:00
Jamie Kinkead
1f1bb7598c
Fix for windows policy-pack install (#3837)
* Fix for windows policy-pack install

* Add test for npm install
2020-01-29 16:02:44 -08:00
CyrusNajmabadi
2d117e6acf
Fix integration test harness. (#3831) 2020-01-29 11:57:45 -08:00
Anastasia Halim
4c8237aa77
Validate stack tag names (#3804)
* added regex to validate stack tag names

* added tests
2020-01-29 10:53:33 -08:00
Paul Stack
b6b313821c
Skip dynamic provider TestStackBadParenting test on Windows (#3835)
Skip dynamic provider TestStackBadParenting test on Windows
2020-01-29 13:32:42 +00:00
stack72
15193c3674 Skip dynamic provider TestStackBadParenting test on Windows 2020-01-29 12:26:56 +00:00