Commit graph

6506 commits

Author SHA1 Message Date
Anton Tayanovskyy c247f6e283
Fix 7913 Python codegen issue with double-quote inside docstrings (#7914)
* Introduce a test that showcases the invalid generated code

* Use shared printComment function

* Check for triple quote escaping

* Accept go

* Accept dotnet

* Accept nodejs

* Move codegen exampe into an existing schema

* Add CHANGELOG entry
2021-09-08 14:52:54 -04:00
Komal 1e235330d6
Don't fail if one subset fails (#7917) 2021-09-08 08:59:40 -07:00
Ian Wahbe 08b428ae96
Add replaceOnChange to schema (#7874)
* Add replaceOnChange to schema

* replaceOnChange at generate time for resources

* ReplaceOnChanges sees through optional types

* Correctly deal with map,array,object,resource type

This is responding to PR clarifications from @justinvp and @lblackstone.

* Update CHANGELOG_PENDING.md

* Detect recursively defined objects

* Display recursion warning

* Check which recursive structures fail

* Add internal logic tests for replaceOnChanges

* Add tests
2021-09-07 22:23:30 -07:00
Ian Wahbe 2f0b370a67
Fix CHANGELOG_PENDING.md spelling (#7919)
One of these is mine. Sorry
2021-09-07 16:08:38 -07:00
Anton Tayanovskyy 27b1404d9e
Fix lint (#7915)
* Fix lint

* Fix lint of pkg folder
2021-09-07 16:41:17 -04:00
Anton Tayanovskyy d7b9c01999
Fix 7862 (#7887)
* Fix 7862

* Add a unit test that reproduces the timeout

* Add a CHANGELOG entry
2021-09-07 11:30:39 -04:00
Evan Boyle 95aa47d3c6
[codegen/go] detect and avoid collisions in resource and type code generation (#7857) 2021-09-03 19:42:45 -07:00
Luke Hoban f89e9a29f5
Revert "Allow Python dynamic provider resources to be constructed outside of __main__ (#7755)" (#7889)
This reverts commit ebb0e6aaed.

The changes in #7755 introduced a regression tracked in #7795.  It is not yet clear how to retain the desired behaviour introduced in #7755 while avoiding this regression, so for now we will revert those changes, and re-open #7453 to track a deeper fix.  That fix may require making changes to upstream `dill` to properly support these serialization requirements.

Fixes #7795.
2021-09-01 20:49:04 -07:00
Vivek Lakshmanan 233b396f29
Merge pull request #7877 from pulumi/vl/FixAuto
[auto/go] Fix stack config loading
2021-08-31 11:32:05 -07:00
Ian Wahbe e0a231013f
Merge pull request #7817 from pulumi/iwahbe/2715/add-pulumi-about-command
Iwahbe/2715/add pulumi about command
2021-08-31 11:23:58 -07:00
Ian Wahbe 27fc39c00a Fix spelling of environment 2021-08-31 00:54:07 -07:00
Ian Wahbe 59f88030b7 Allow failure to cleanup 2021-08-31 00:25:50 -07:00
Ian Wahbe 703104e412 Skip failing test on windows 2021-08-30 22:53:16 -07:00
Ian Wahbe 70833d3a3c Allow windows to find commands without .exe 2021-08-30 21:36:03 -07:00
Vivek Lakshmanan 59b24bd449 Add changelog 2021-08-30 21:28:57 -07:00
Vivek Lakshmanan 9435d9ae9a Update test 2021-08-30 21:26:09 -07:00
Vivek Lakshmanan 6162004df2 Fix stack config loading 2021-08-30 20:56:08 -07:00
Ian Wahbe a2250cc9ef
Merge branch 'master' into iwahbe/2715/add-pulumi-about-command 2021-08-30 22:50:51 -04:00
Ian Wahbe 30a042a9a1 Call os.Remove correctly 2021-08-30 19:48:50 -07:00
Pat Gavlin 76ee1b8ccf
[codegen/schema] Add a schema checker (#7865)
- Change the schema package to report semantic errors as diagnostics
  rather than Go errors
- Add a `pulumi schema check` command to the CLI for static checking of
  package schemas

The semantic checker can be extended in the future to add support for
target-specific checks.
2021-08-30 19:29:24 -07:00
Ian Wahbe aa1eedf5a7 Allow windows to use NPM 2021-08-30 19:16:19 -07:00
Ian Wahbe 09c6a71b56 Fix typo 2021-08-30 19:02:07 -07:00
Ian Wahbe ea43fa2437
Merge branch 'master' into iwahbe/2715/add-pulumi-about-command 2021-08-30 21:57:20 -04:00
Ian Wahbe 43114007eb Whitespace and grammer 2021-08-30 18:56:02 -07:00
Anton Tayanovskyy 4380a63ad9
Implement 5758 {fn}_output codgen for Python (#7825)
* Implement 5758 {fn}_output codgen for Python

* Fix lint issues

* Accept codegen changes in expected examples

* Test and fix positional arg handling

* Add parameter descriptions to illustrate docstring codegen

* Generate docstrings

* Accept doc changes in expected go codegen file

* Use platform-agnostic API to drive Python tests
2021-08-30 16:52:58 -04:00
Ian Wahbe 8150ef0880 Improve CI error messages
Failures unique to windows require a more informative error message to
diagnose.
2021-08-30 12:55:30 -07:00
Ian Wahbe d749ce5265
Merge pull request #7844 from pulumi/iwahbe/make-lint-status-code
"make lint" returns an accurate status code
2021-08-30 13:34:06 -04:00
Ian Wahbe 1e0019340d Tolerate non semver version.Version 2021-08-28 16:01:19 -04:00
Ian Wahbe b1271708ff Final version of the same typo 2021-08-28 11:53:17 -04:00
Ian Wahbe 9ec92fe593 Fix same typo in other copy of test 2021-08-28 02:55:00 -04:00
Ian Wahbe c40ec4a3cb Fix nodejs no snapshot failure 2021-08-28 02:06:41 -04:00
T-Vova 2c63e6fb77
Merge pull request #7792 from pulumi/t-vova/invalid-go-source-fix
Fixed invalid go source code issue
2021-08-27 19:49:30 -10:00
Ian Wahbe 95bbad6e3d Fix typo 2021-08-28 01:17:53 -04:00
Ian Wahbe 4022108287
Merge branch 'master' into iwahbe/make-lint-status-code 2021-08-28 00:39:50 -04:00
Ian Wahbe 67f5b0a246 Update changelog 2021-08-28 00:38:35 -04:00
Ian Wahbe 244b8d9ea5 Another attempt to make tests pass 2021-08-28 00:31:46 -04:00
Emiliza Gutierrez c7614f5066
fix typos in dev docs (#7860)
* typo fixes and styling

* fix typos
2021-08-27 21:18:39 -07:00
Ian Wahbe 4d93b70d79 Set stack for node and go integration tests 2021-08-27 19:04:42 -04:00
Ian Wahbe d82b560ae8 Fix nodejs direct dependencies 2021-08-27 15:42:05 -04:00
Ian Wahbe cdcabc34f3 Fix integration tests && found bug in nodejs -t 2021-08-27 14:25:10 -04:00
Pat Gavlin a5a818b802
[developer-docs] Add links + a broad arch diagram (#7856)
- Add links within the resource registration docs
- Add a broad-strokes architectural diagram to the overview
- Add a `clean` target to the Makefile
- Expand the "Building" docs a bit
2021-08-27 10:55:06 -07:00
Ian Wahbe b5bcc655e7 Add integration tests in each language 2021-08-27 13:39:49 -04:00
Ian Wahbe 878ab50044 Merge branch 'master' into iwahbe/2715/add-pulumi-about-command 2021-08-27 04:50:50 -04:00
Ian Wahbe 0d43d2c4a4 @jutinvp's improvements
These include:
1. Make transitive dependencies optional.
2. Use filepath instead of path.
3. Correctly consider the python virtual enviroments.
2021-08-27 04:37:09 -04:00
Levi Blackstone 96e6eb2592
Fix typos (#7853) 2021-08-26 11:29:56 -07:00
Pat Gavlin ad18fe183e Bump the RTD Python version down to 3.6. 2021-08-25 15:23:46 -07:00
Emiliza Gutierrez f54e4a720f
Cleanup after v3.11.0 release (#7843) 2021-08-25 15:19:02 -07:00
Pat Gavlin 98f73cf1ed
Start in on developer documentation. (#7839)
Developer documentation is written in Markdown and can be built into
HTML, PDF, etc. using Sphinx. Diagrams are written in PlantUML and
rendered as SVGs. All developer docs live in the `developer-docs` folder
under the root of the repository.
2021-08-25 15:18:13 -07:00
Ian Wahbe 0cec2a6268 "make lint" returns an accurate status code 2021-08-25 14:43:50 -07:00
Ian Wahbe 0d3311a4b4 Remove unused dependencies 2021-08-25 13:33:12 -07:00