Commit graph

153 commits

Author SHA1 Message Date
Ian Wahbe 3e2f36548e
[codegen/typescript] Call site defaults for plain Pulumi Object types (#8400)
* Add test case

* Fix tests

* Add test dependencies correctly

* Feed through error handling

* Include test output

* Get types to line up

* Add remaining test files

* Update changelog

* Correctly find type paths

* Handle transitive objects

* Handle required fields

* Add required+default test case

* Don't `<any>` cast known types.

* Add plain object to env-helper test

This test fails right now. My next problem is fixing it.

* Handle plain types

* Handle function inputs

* Fix the indentation

* Handle output types correctly

* Remove unnecessary `!`

* Add missing change to fix test

* Run tests with merge

* Merge in next _index.md diff

* Another attempt at _index.md

* Make module generation deterministic

* Fix docs generation

Credit to @praneetloke
2021-11-18 12:23:30 -08:00
Fraser Waters c6240cf38d
Improve vscode dotnet support (#8384)
* Run make ensure on devcontainer creation

Added an ensure target to the dotnet makefile to run `dotnet restore`.

* Add dotnet test explorer and set default vscode settings for it

* Ensure PULUMI_LOCAL_NUGET exists

* Add missing mkdirs
2021-11-11 20:40:18 +00:00
Praneet Loke 0343a6de76
[codegen/docs] Use go:embed for templates and use DisplayName from schema for titles (#8389)
* Use the display name from the schema, if available

* Update comment on the titleLookup map

* Add examples of reserved labels that can be used with the Keywords array in the schema
2021-11-10 11:07:43 -08:00
Anton Tayanovskyy 99fdad0ed9
Fix python dependencies issues in GHA (#8361) 2021-11-06 00:55:17 -07:00
Justin Van Patten 7e2c74d58c
Delete redundant docker step from release workflow (#8347) 2021-11-03 20:51:31 +02:00
Paul Stack 52ba8b446c
Cleanup of all docker operations since moving to pulumi/pulumi-docker-containers (#8252)
Co-authored-by: Josh Kodroff <josh@pulumi.com>
2021-10-26 20:37:33 +03:00
Emiliza Gutierrez 5f70bccaca
Revert "Pin goreleaser to v0.181.1 (#8216)" (#8247)
This reverts commit 793c7db172.
2021-10-18 10:33:33 -07:00
Anton Tayanovskyy 6766e53574
Pin Python versions for tests running on GHA Windows workers (#8225)
* Pin Python versions for tests running on GHA Windows workers

* Fix interpolation syntax
2021-10-14 15:08:49 -07:00
Emiliza Gutierrez 793c7db172
Pin goreleaser to v0.181.1 (#8216) 2021-10-14 13:06:24 -04:00
Ian Wahbe 20287afdd7
Iwahbe/8000/uprgade go versions (#8171)
* Upgrade the pulumi cli to go1.17.1

* Run go mod tidy

* Update CHANGELOG_PENDING.md

* Update pkg/go.mod for go1.17

* Update sdk and tests
2021-10-11 09:47:08 -07:00
Paul Stack d694276ed7
Ensure the command dispatch has correct access to new docker repo (#8167) 2021-10-08 17:51:25 +03:00
Josh Kodroff 72d48f162e
Change CI and prerelease builds to send dispatches. (#8135) 2021-10-07 01:26:17 +03:00
Anton Tayanovskyy 4dd5022225
Improve concurrent ID computation for /run-acceptance-tests (#8148)
* Improve concurrent ID computation so /run-acceptance-tests ids are unique and do not conflict

* Fix syntax

* More toJSON fixes

* Flip if-then-else branches

* Clean up comments
2021-10-06 15:19:51 -04:00
Anton Tayanovskyy 19a18e7b53
Bring back PR automatic outdated commit check pre-emption (#8145)
* Bring back PR automatic outdated commit check pre-emption

* Trigger a re-run
2021-10-06 13:35:38 -04:00
Emiliza Gutierrez 33953c0a6b
Revert "Cancel checks on outdated PR commits (#8016)" (#8118)
This reverts commit a9c9853e85.
2021-10-01 14:31:51 -07:00
Praneet Loke 90be3930ad Fix typo in matrix ref 2021-09-29 16:12:58 -07:00
Praneet Loke 63febd8d94 Use setup-go@v2 for the docs generation PR workflow 2021-09-29 16:10:43 -07:00
Komal 4dc9c4bf39
Check worktree is clean before releasing (#8093)
* Check worktree is clean before releasing
2021-09-28 16:55:16 -07:00
Josh Kodroff e117e21b99 Change Docker build to use Pulumi's fork of action-docker-build. 2021-09-27 11:05:07 -04:00
Anton Tayanovskyy c16970b488
Faster CI PR verification on Mac OS: run fewer tests, use fewer workers (#8004)
* Experiment with matrix exclude/include rules

* Check if this applies to current PR

* Try again on the right yml file

* Why is GHA trying to find self-hosted workers

* Revert all changes

* No-op change

* Try a system where PR verification uses only 1 worker

* Fix include directive so that mac job has the right variables

* Fix YAML syntax
2021-09-21 19:54:47 -04:00
Anton Tayanovskyy a9c9853e85
Cancel checks on outdated PR commits (#8016) 2021-09-21 18:17:06 -04:00
Paul Stack a70cf66fae
Upgrade pulumi docker image to use NodeJS 14.x (#7904)
Fixes: #7878

also, we stopp building the pulumi actions docker container as we are
now EOL as per 31st August
2021-09-09 20:49:22 +03:00
Komal 1e235330d6
Don't fail if one subset fails (#7917) 2021-09-08 08:59:40 -07:00
Anton Tayanovskyy 669aa8a7ff
Fan out release workflow (#7687) 2021-07-29 20:38:56 -04:00
Anton Tayanovskyy 6724684172
Apply the same build tricks we run on PRs to master workflow (#7685) 2021-07-29 18:18:15 -04:00
Anton Tayanovskyy ba70b3fdba
Attempt to avoid triple-building projects in the solution (#7638) 2021-07-28 20:31:11 -04:00
Anton Tayanovskyy 3aa97a4b7d
Fanout build experiment (#7628)
* Experiment with gotestsum and test timings

* Fix to locating the helper script

* Fix the code for installing gotestsum

* Try alternative installation method

* Use go to compute test stats; Python fails parsing time values

* Try version without v

* Try with fixed gorelaser config

* Fix test time correlation

* Try a stable test stat sort finally

* Use more accurate test duration aggregation

* Include python and auto-api tests in the Go timing counts

* Bring back TESTPARALLELISM

* Fix test compilation

* Only top 100 slow tests

* Try to fracture build matrix to fan out tests

* Do not run Publish Test Results on unsuppored Mac

* Auto-create test-results-dir

* Fix new flaky test by polling for logs

* Try to move native tests to their own config

* Actually skip

* Do not fail on empty test-results folder

* Try again

* Try once more

* Integration test config is the crit path - make it smaller

* Squash underutilized test configurations

* Remove the test result summary box from PR - counts now incorrec

* Remove debugging step
2021-07-27 10:07:15 -04:00
Emiliza Gutierrez a2e0b4a3ad
Add resolution label to stale issues about to be closed (#7639) 2021-07-26 10:23:59 -07:00
Emiliza Gutierrez 13a606d54e
Actually close the issue after being marked as stale (#7626) 2021-07-23 13:44:13 -07:00
Alex Mullans 6c59644bf6
Add issue management Actions (#7476)
* Create issue-management.yml

* Update issue-management.yml
2021-07-23 14:07:06 +03:00
stack72 eff9e6239f [build] temp revert master builds from triggering examples smoke tests due to command dispatch issue 2021-07-15 13:35:41 +01:00
Paul Stack eb8e1585c3
Trigger examples tests on merge to master (#7398) 2021-07-14 14:18:52 +03:00
Komal 7682830778
Turn off fail-fast for codegen tests (#7441) 2021-07-06 20:37:08 -07:00
Paul Stack 57347188fb
[sdk/python] Fix linting errors due to missing types files (#7257) 2021-06-09 19:14:59 +03:00
Paul Stack 9d6a2d05c4
[build] ensure downstream codegen tests run go mod tidy (#7222) 2021-06-06 01:36:52 +03:00
Paul Stack 07ad69dfe6
Adding a workflow dispatch to GHA to test master builds from branches (#7203) 2021-06-03 23:24:49 +03:00
Praneet Loke dbea8058a2
Bump the Pulumi Service API version header to 7 (#7193)
* Version 7 indicates to the Pulumi Service that the CLI supports setting required headers for policy pack publishing

* Add bumping the Pulumi Service API version to the PR checklist
2021-06-02 11:32:52 -07:00
Paul Stack 67bcd73a15
Testing out the ability to comment back to a PR from command dispatch (#7110) 2021-05-21 19:03:58 +01:00
Paul Stack 73a8db6435
Add ability to test downstream codegen and docsgen from PRs (#7104)
Fixes: #7099

PRs from maintainers will work as normal - PRs from the community
can now be triggered with command dispatch events
2021-05-21 17:54:14 +01:00
Paul Stack 0bfab87c21
Fix 2 small release issues with regards to uploading binaries to S3 (#7098)
The Windows binary didn't upload to S3 during the release. We had to
ask our ops team to do this - this fixes that issue
2021-05-21 12:08:37 +01:00
Paul Stack ef2e825760
Trigger an update of the templates go.mod files on release (#7006) 2021-05-15 00:24:03 +01:00
Paul Stack 8a5c7d9583
Checkout for command dispatch events was using master (#7037)
We should ensure that when a command dispatch event comes from a
user contribution, that we are running CI against their code
2021-05-12 19:07:39 +01:00
Paul Stack f68b583831
Using goreleaser as the publishing mechanism for Windows binaries (#6975) 2021-05-10 11:11:08 +01:00
Komal 210c16b67a
Update PULL_REQUEST_TEMPLATE.md (#6940) 2021-04-30 11:12:05 -07:00
Komal b655f0bc23
Proposal: PULL_REQUEST_TEMPLATE.md (#6885) 2021-04-29 13:21:36 -07:00
stack72 c27e58bf2d [deps] Ensuring pulumi/pulumi pkg references pulumi sdk v3.0.0 2021-04-19 09:14:31 +01:00
Justin Van Patten f7f33d92af [codegen/python] Remove deprecated __name__ and __opts__ args (#6765)
These have been deprecated for a very long time and it's a trivial change to remove them from the generated code. Let's clean this up for the 3.0-based providers.
2021-04-14 19:32:18 +01:00
Justin Van Patten 1112c513c0 [sdk/python] Improved dict key translation support (#6695)
This change addresses Python dictionary key translation issues. When the
type of `props` passed to the resource is decorated with `@input_type`,
the type's and resource's property name metadata will be used for dict
key translations instead of the resource's `translate_input_property`
and `translate_output_property` methods.

The generated provider SDKs will be updated to opt-in to this new
behavior:

- FIX: Keys in user-defined dicts will no longer be unintentionally
  translated/modified.

- BREAKING: Dictionary keys in nested output classes are now
  consistently snake_case. If accessing camelCase keys from such output
  classes, move to accessing the values via the snake_case property
  getters (or snake_case keys). Generated SDKs will log a warning
  when accessing camelCase keys.

When serializing inputs:

  - If a value is a dict and the associated type is an input type, the
    dict's keys will be translated based on the input type's property
    name metadata.

  - If a value is a dict and the associated type is a dict (or Mapping),
    the dict's keys will _not_ be translated.

When resolving outputs:

  - If a value is a dict and the associated type is an output type, the
    dict's keys will be translated based on the output type's property
    name metadata.

  - If a value is a dict and the associated type is a dict (or Mapping),
    the dict's keys will _not_ be translated.
2021-04-14 19:32:18 +01:00
stack72 e05477b8d6 [deps] Ensuring pulumi/pulumi pkg references pulumi sdk v3.0.0-beta.1 2021-04-14 19:32:18 +01: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