Commit Graph

18 Commits

Author SHA1 Message Date
Aaron Friel d2a8a140b7 chore: Update makefile, ensure make test_codegen_go 2022-10-17 00:22:48 -07:00
Aaron Friel abb3763229 fix(ci): Split programgen tests over more jobs 2022-10-16 23:20:45 -07:00
bors[bot] 2c4318be5f
Merge
10971: [codegen] Re-enable schema caching for static versioned plugins r=AaronFriel a=AaronFriel

This condition prevents us from using any caches in `~/.pulumi/plugins`, defeating the intent of the cache system. If this is load bearing, will need to determine what the right carve-out is to omit caching behavior.

Resolves 

Co-authored-by: Aaron Friel <mayreply@aaronfriel.com>
2022-10-13 22:59:45 +00:00
Aaron Friel 2d90969b58 feat(ci): Enable fully offline codegen tests with versioned plugins
Commit 1 of 2: this makes the changes to every file except the schemas,
for ease of review.
2022-10-11 05:16:23 -07:00
Zaid Ajaj a63d8b61db refactor: annotateObjectProperties no longer skips top-level object and annotates unions 2022-10-08 14:46:25 +02:00
aq17 525849bf17 Support options.version on pulumi convert 2022-09-23 09:41:17 -07:00
Ian Wahbe e39998784a
Expose the check function () 2022-03-16 11:42:30 -07:00
Aaron Friel ed2923653c ci: radical idea - what if slow tests & no stdout makes GH consider runner dead? 2022-03-06 14:52:13 -08:00
Ian Wahbe a1e18dae4d
export codegen tests for internal use ()
* Export Codegen test modules

* Document pkg stability guarantee

* Expose programgen

* Recommendation: Improve wording

* Move `internal` to `testing`

* Re-rout references to codegen/internal

* Fix some other "internal" references
2022-02-07 12:10:04 +01:00
Ian Wahbe f12b8fa00c
Cleanup program-gen test dependency gathering () 2021-10-19 12:17:19 -07:00
Ian Wahbe 9f6589ed8c
iwahbe/7802/compile program generator test output ()
* Move program tests into folders

* update package schema

* Enabled tests pass

* Fix lints and begin to update test cases

* Re-enable tests

* Update aws version to v4

* Refactor language specific parts

* Hook up dotnet and nodejs

* Update tests from master

* SSOT for schema/version

* Name blocking errors. Leave tests in valid state

* Give each language its own folder

* Remove SkipCompile for azure-sa (bug was fixed)

* Fix nits + changes asserts to require

* Remove unused import

* One last assert => require
2021-09-29 11:33:57 -07:00
Komal fddeea8a88
[codegen] Unify program codegen testing ()
* ProgramGen test driver

* Refactor to avoid exporting hcl2 entities
2021-07-27 18:00:39 -07:00
Pat Gavlin 28b1a25629
[codegen/python] Improve program gen perf. ()
- Only build casing tables once per package
- Right-size buffers in name generation

These changes lead to a significant speedup in example gen for
azure-native.
2021-07-16 15:45:00 -07:00
pulumi-bot 73a66f48ea [breaking] Changing the version of go.mod in sdk / pkg to be v3 2021-04-14 19:32:18 +01:00
Evan Boyle 45a901d3e7
Turn program gen NYIs into diagnostic errors () 2020-06-10 10:21:53 -07:00
Pat Gavlin b4daf94c2f
[codegen] Add support for caching package schemas. ()
If a single process is going to bind and generate multiple programs, it
is useful to be able to cache package schemas in order to avoid the
(large) overhead of deserializing schemas multiple times.
2020-04-30 13:22:24 -07:00
CyrusNajmabadi 66bd3f4aa8
Breaking changes due to Feature 2.0 work
* Make `async:true` the default for `invoke` calls ()

* Switch away from native grpc impl. ()

* Remove usage of the 'deasync' library from @pulumi/pulumi. ()

* Only retry as long as we get unavailable back.  Anything else continues. ()

* Handle all errors for now. ()


* Do not assume --yes was present when using pulumi in non-interactive mode ()

* Upgrade all paths for sdk and pkg to v2

* Backport C# invoke classes and other recent gen changes ()

Adjust C# generation

* Replace IDeployment with a sealed class ()

Replace IDeployment with a sealed class

* .NET: default to args subtype rather than Args.Empty ()

* Adding system namespace for Dotnet code gen

This is required for using Obsolute attributes for deprecations

```
Iam/InstanceProfile.cs(142,10): error CS0246: The type or namespace name 'ObsoleteAttribute' could not be found (are you missing a using directive or an assembly reference?) [/Users/stack72/code/go/src/github.com/pulumi/pulumi-aws/sdk/dotnet/Pulumi.Aws.csproj]
Iam/InstanceProfile.cs(142,10): error CS0246: The type or namespace name 'Obsolete' could not be found (are you missing a using directive or an assembly reference?) [/Users/stack72/code/go/src/github.com/pulumi/pulumi-aws/sdk/dotnet/Pulumi.Aws.csproj]
```

* Fix the nullability of config type properties in C# codegen ()
2020-04-14 09:30:25 +01:00
Pat Gavlin 2f22c1c59c
HCL2 updates ()
Pulumi HCL2 IR:
- Add support for invokes
- Add support for resource options, incl. ranged resources
- Allow the apply rewriter to ignore promise-typed values
- Add tests for the binder
- Add support functions for TF: entries and range

NodeJS codegen:
- Simplify for expression codegen
- Add support for invoke codegen
- Add support for entries and range functions
- Add tests

Python codegen:
- Implement codegen for most expression types
- Add support for invoke codegen
- Add tests
2020-04-06 19:43:16 -07:00