Commit graph

4340 commits

Author SHA1 Message Date
evanboyle ecfa4cd6cd move sdk/pulumi/secrets/cloud -> pkg/secrets/cloud (undo to remove unneeded dep) 2020-03-17 11:43:13 -07:00
evanboyle de423b81b1 remove top level go mod, add mods for /sdk and /pkg 2020-03-17 11:23:29 -07:00
evanboyle 4cb13af660 go fmt 2020-03-17 11:11:25 -07:00
evanboyle 557b586528 move pkg/tools -> sdk/pulumi/tools 2020-03-17 10:47:13 -07:00
evanboyle a42fa70ae2 selectively move pkg/testing -> sdk/pulumi/testing, leave behind pkg/testing/integration 2020-03-17 10:45:11 -07:00
evanboyle e6c9de20a4 go fmt 2020-03-17 10:24:28 -07:00
evanboyle 54170543ab move pkg/util/gitutil sdk/pulumi/util/gitutil 2020-03-17 10:22:55 -07:00
evanboyle b65a655e8e move pkg/util/archive -> sdk/pulumi/util/archive 2020-03-17 10:20:08 -07:00
evanboyle b14c24ad1a move pkg/util/fsutil -> sdk/pulumi/util/fsutil 2020-03-17 10:08:45 -07:00
evanboyle 44fa3a8b1c move pkg/encoding -> sdk/pulumi/encoding 2020-03-17 10:00:31 -07:00
evanboyle ab52e42a30 move pkg/util/rety -> sdk/pulumi/util/retry 2020-03-17 09:51:52 -07:00
evanboyle 8c3965307b move pkg/util/ciutil -> sdk/pulumi/util/ciutil 2020-03-17 09:48:55 -07:00
evanboyle f9d16f494f move sdk/pulumi/secrets/service -> pkg/secrets/service (undo to get rid of dep on pkg/engine) 2020-03-17 09:37:23 -07:00
evanboyle 62445428db move sdk/pulumi/resource/stack -> pkg/resource/stack (this is an undo, stack has dep on engine) 2020-03-17 09:25:36 -07:00
evanboyle 840939fbeb move pkg/secrets -> sdk/pulumi/secrets 2020-03-17 08:59:05 -07:00
evanboyle e0087c5b69 move pkg/util/result -> sdk/pulumi/util/result 2020-03-17 08:52:28 -07:00
evanboyle ba11d9f3fc move pkg/diag -> sdk/pulumi/diag 2020-03-17 08:49:29 -07:00
evanboyle 7070e96c49 move pkg/workspace -> sdk/pulumi/workspace 2020-03-17 08:46:27 -07:00
evanboyle 992898bc31 move pkg/apitype -> sdk/pulumi/apitype 2020-03-17 08:43:17 -07:00
evanboyle cd6a4104e1 move pkg/util/mapper -> sdk/pulumi/util/mapper 2020-03-17 08:37:56 -07:00
evanboyle d172e46ed3 move pkg/util/httputil -> sdk/pulumi/util/httputil 2020-03-17 08:26:08 -07:00
evanboyle 4936335b82 update sdk readme 2020-03-16 15:09:11 -07:00
evanboyle 758e335724 got fmt to reorder imports 2020-03-16 15:03:50 -07:00
evanboyle 2da3ba5573 move pkg/version -> sdk/pulumi/version 2020-03-16 14:57:06 -07:00
evanboyle c0384d19d6 move pkg/tokens -> sdk/pulumi/tokens 2020-03-16 14:54:48 -07:00
evanboyle c1175147b8 move pkg/util/rpcutil -> sdk/pulumi/util/rpcutil 2020-03-16 14:51:40 -07:00
evanboyle c9ac59d8c0 move pkg/util/cmdutil -> sdk/pulumi/util/cmdutil 2020-03-16 14:46:51 -07:00
evanboyle b527979539 move pkg/util/logging -> sdk/pulumi/util/logging 2020-03-16 14:42:53 -07:00
evanboyle dcd44295f8 move pkg/util/contract -> sdk/pulumi/util/contract 2020-03-16 14:39:45 -07:00
evanboyle 3de10975bc move pkg/resource to sdk/pulumi/resource 2020-03-16 13:35:06 -07:00
evanboyle 1a5122ac83 move package cmd -> pkg/cmd 2020-03-16 13:15:42 -07:00
Mikhail Shilkov dbe365376d
Add Stack Transformations to .NET SDK (#4008)
Stack transformations and integration tests
2020-03-16 17:40:52 +01:00
Luke Hoban fdd9a57ff8
Implement GetSchema in dynamic providers (#4083)
It's not entirely clear why gRPC doesn't already report these cleanly as unimplemented, but for now we'll explicitly implement them to avoid any spurious warnings.

Fixes #4028.
2020-03-15 15:36:08 -07:00
Tasia Halim b6e5d2737d
Update Go logging to use LogArgs (#4078) 2020-03-13 13:30:05 -07:00
Pat Gavlin 8111d33438
Shorten Python package descriptions. (#4068)
These descriptions should only be one line, and should not contain markdown.
2020-03-12 21:43:54 -07:00
Luke Hoban 9da774e180
Fix Python mocks (#4074)
The original version of this code caused inconsistencies in the event
loop associated with a given thread. These changes elimintate the event
loop shenanigans the mocks were trying to play by updating _sync_await
to create an event loop if none exists in the current thread.

It's possible that this will cause problems if the tests run on a
different thread than the original program, as the tests are likely to
end up waiting on outputs created by the program, which is not supported
in Python.

Also adds test coverage of the mocking/testing support in Python.
2020-03-12 21:09:47 -07:00
Tasia Halim ef6f0d4de4
Expose engine logging to Go SDK (#4069)
* expose engine logging to Go SDK

* added comments
2020-03-12 16:00:59 -07:00
Praneet Loke 9abc65d3c6
Remove hard-coded Bucket examples from the schema-based docs generator. (#4067)
* Also remove the Examples property from the resourceDocArgs type since the resource Comment will contain the multi-lang examples on their surrounded by a shortcode.
2020-03-12 13:16:08 -07:00
metral aac1fabb13
Merge pull request #4059 from pulumi/metral/fix-login
Improve documentation of URL formats for `pulumi login`
2020-03-12 11:20:04 -07:00
Luke Hoban 2050f64322
Support "link" style dependencies in Go tests (#4063)
The integration test framework currently supports using `dep` for dependency management.

However, `dep` has no native ability to manage "yarn link"-style dependencies on locally available packages.

This is a necessary scenario for testing in most repos though, as (e.g.) examples in the Kubernetes repo need to test against the locally available version of `pulumi-kubernetes`.

The best we can do is a trick of (a) deleting the vendored copy of the locally available dependency (b) copying the locally available dependency into the vendor folder (c) deleting the nested vendor folder in the new copy of the locally available dependency.
2020-03-12 08:49:52 -07:00
Mike Metral cf7169125d
Improve documentation of URL formats for pulumi login 2020-03-11 18:26:47 -07:00
Praneet Loke 40f17faa73
Updates to resource doc generator for generating docs for Functions (#4055)
* Added a new template for Functions. Implement the genFunction method for generating the docs for Functions.

* Rename type resourceArgs to resourceDocArgs. Minor updates the resource template.

* Generate nested types for Functions.

* Unexport types that don't need to be exported. Create the doc language helper objects in an init function and reuse them rather than recreating them every time. Update genNestedTypes to work with schema functions or resources.

* Fixed bug in nested type generation for Functions. Fixed bug in generating input and output doc links for nested types.
2020-03-11 17:58:12 -07:00
Pat Gavlin cbd5f862c3 Update the CHANGELOG for v1.12.1 2020-03-11 15:43:37 -07:00
Pat Gavlin 622cac4dd4
Stabilize Python codegen. (#4056)
Make sure all property casing conversions are computed prior to codegen.
2020-03-11 15:42:15 -07:00
Mikhail Shilkov a95a4d1195
Unit testing in .NET (#3696)
Mock-based testing in .NET
2020-03-11 23:10:01 +01:00
Mikhail Shilkov f01208af3b
Fix terminal keypad mode (#4042)
Fix terminal keypad mode
2020-03-11 08:55:36 +01:00
Luke Hoban 74ffbfd9ba
Ensure new provider is registered when provider diff is unknown (#4051)
The changes in #4004 caused old provider configuration to be used even when a provider was different between inputs and outputs, in the case that the diff returned DiffUnkown.

To better handle that case, we compute a more accurate (but still conservative) DiffNone or DiffSome so that we can ensure we conservatively update to a new provider when needed, but retain the performance benefit of not creating and configuring a new provider as much as possible.

Part of https://github.com/pulumi/pulumi-aws/issues/814.
2020-03-10 19:40:25 -07:00
Paul Stack e229492d8f
Merge pull request #4005 from pulumi/dep-ensure-go-project
Run Dep Ensure when testing Go integration projects
2020-03-10 10:52:58 +02:00
stack72 f11b7129a0 Run Dep Ensure when testing Go integration projects
Fixes: #3939
2020-03-10 03:11:44 +02:00
Paul Stack 4ec9667a9f
Merge pull request #4043 from pulumi/fix-pygen-overlays
Ensure python overlays work as expected
2020-03-10 00:44:11 +02:00