Commit graph

104 commits

Author SHA1 Message Date
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
pulumi-bot 3082ebe275 Ensuring that Pulumi automation api is minimum 3.0.0 CLI version 2021-04-14 19:32:18 +01:00
Komal fd3ec6b86f [automation/nodejs] - Fix missing OpTypes and PreviewOptions (#6507) 2021-04-14 19:32:17 +01:00
Paul Stack dc0d75feb9
GHA Workflow job to test containers changes (#6708) 2021-04-06 19:00:14 +01:00
Pat Gavlin 55ecf7a81e
Run SDK lint jobs (#6674)
Just what it says on the tin. Fixes #6628.
2021-04-01 11:23:47 -07:00
Paul Stack 4efec0f791
[docker] allow docker container builds to pass when security advistory (#6662)
Right now, we test the container at the end of the build rather than
before publishing so while we decouple that work, we should not fail
the build step if a security advisory was found - it's too late, the
containers are released so we should instead catch the advisory and
that will allow our release pipeline to continue
2021-03-31 15:22:58 +01:00
Paul Stack 8369bf22e4
Ensure we pass a v prefix to the version string on Windows (#6598) 2021-03-22 20:19:06 +00:00
Paul Stack e65c150bfc
Set VERSION_PREFIX to be 3.0.0 when using feature-3.0 branch (#6516)
This will allow us to start publishing dev channel builds as
3.0.0-alpha.<githash>

```
VERSION_PREFIX=3.0.0 pulumictl get version
3.0.0-alpha.1615565817+0c439b9e

pulumictl get version
2.23.0-alpha.1615565817+0c439b9e
```
2021-03-12 18:28:55 +00:00
Paul Stack 3f2d58ef7b
Fixing up go.mod and go.sum to ensure they don't continually change (#6502) 2021-03-11 20:41:45 +00:00
pulumi-bot 5a8e470176 [debug] Finding the git differences as part of the dirty build packages 2021-03-11 01:29:21 +00:00
pulumi-bot 74258cfa87 [debug] checking git status of pulumi directory on windows post publishing 2021-03-11 00:57:46 +00:00
Paul Stack 2e321020bf
Debugging why windows builds are being marked as dirty (#6501) 2021-03-11 00:27:19 +00:00
Paul Stack c48ba37fcf
Migrate the version calculation to use pulumictl (#6460) 2021-03-10 19:03:29 +00:00
Paul Stack dc7eb5e2d2
[cli] Add ability to consume arm64 plugins from pulumi cli (#6492)
Related: #4868

Also adds the arm64 build and deployment steps via goreleaser
2021-03-10 16:28:55 +00:00
Paul Stack a1864c5c1a
Adding autorebase functionality to allow state PRs to be rebased (#6484) 2021-03-10 15:59:46 +00:00
Paul Stack 20e84dfe9e
Upgrading Go to 1.16.x (#6470) 2021-03-09 20:05:23 +00:00
Paul Stack 0d5b3d375d
Ensuring dotnet package sources are correct for local packages (#6476)
When passing a package source as part of a `dotnet add package` in
our acceptance testing framework, dotnet was then trying to use that
package source for the restoration of other packages in the csproj
file.

We have removed passing the source to dotnet add package add
and replaced it with adding a machine level package source via
dotnet nuget add source command

this is the more correct way to work and will allow us to be able
to search multiple locations as part of the dotnet restore command
2021-03-09 14:57:24 +00:00
Paul Stack ec220de5f9
Ensuring that changes to codegen runs a test against azure-nextgen (#6102) 2021-03-03 00:37:26 +00:00
Paul Stack aab9cb5e42
Changing the process for CHANGELOG entries (#6408)
As part of our continued effort to make our releases more useful,
we will be adding our CHANGELOG entries to the GitHub Release.

To make this process smooth, we are going to change things a little:

1. All new changelog entries when submitting a PR for an upcoming
release will now need to get added to CHANGELOG_PENDING.md
This is the source of information for what will be delivered in the
release.

2. When a release is being made, the entries from CHANGELOG_PENDING
will be copied to a new version and dated section in CHANGLOG to
mark the release

3. The GH tags will continue as normal and Goreleaser will copy
the changelog entries to the release section in GH
2021-02-23 19:59:59 +00:00
Paul Stack 66052f5d29
Ensure changes to pkg/codegen/docs run PR build (#6340) 2021-02-16 16:09:43 +00:00
Paul Stack 5401057561
Move linting check into command-dispatch job (#6277)
This fixes not picking up linting issues when sending a PR as
the PR job uses `pull_request_target` which in turn only checks out
from master which is a security measure
2021-02-08 19:55:02 +00:00
Paul Stack a045a613f2
Revert "Split the windows build + testing to be separate jobs to allow for future language matrix tests" (#6274)
This reverts commit 2e695196ae.
2021-02-08 17:02:20 +00:00
stack72 ee5fd19a1b Forcing update of homebrew formulae before install pulumi in download cron 2021-02-08 11:22:16 +00:00
Paul Stack 2e695196ae
Split the windows build + testing to be separate jobs to allow for future language matrix tests (#6193) 2021-02-08 11:17:47 +00:00
stack72 6c9635c508 Updating the installation of Pulumi in the download cron tester 2021-02-07 19:36:02 +00:00
Paul Stack 059382c336
Adding a nightly cron job to ensure we are testing Pulumi install (#6246)
Fixes: #4132

This will test across all available download styles that are Pulumi
managed. I will not install anything like nixos etc
2021-02-04 14:57:44 +00:00
Paul Stack 8a6d81ef64
Ensure ubi container installs correct dotnet sdk version (#6245)
Fixes: #6185

This PR also addresses the fact that we create an image of
pulumi-nodejs:latest and then the ubi and debian builds override
that pulumi-nodejs:latest with their versions

this overwrite is actually last container wins. Therefore, we will
not be tagging the ubi and debian builds with latest to ensure that
latest is *actually* deterministic
2021-02-03 18:29:52 +00:00
Paul Stack d3187d630f
Migrating to smoke-test-cli repository_dispatch event in examples repo (#6216)
This is a specific repository dispatch event that can be used for
updating and testing a CLI version
2021-01-28 19:28:13 +00:00
Lee-Ming Zen 044e37573e Remove checkout of head in PR workflow 2021-01-21 20:18:56 -08:00
Paul Stack c1cdbccb46
Change back to pull-request-target which allows a write GitHub Token (#6151) 2021-01-20 19:53:44 +00:00
Paul Stack bd1554d33e
Adding the pulumi.ecr.aws images as part of the docker images release (#6072) 2021-01-12 16:59:16 +00:00
stack72 7979fe3ff8 Ensure container tests run on ubuntu not macOS 2021-01-04 21:56:20 +00:00
stack72 7faf8f2dd5 Ensuring the docker containe tests are only run on ubuntu 2021-01-04 20:36:03 +00:00
Paul Stack fead88d4a6
Ensure that testing containers happens as part of a pulumi publish event (#6030) 2021-01-04 18:28:13 +00:00
Levi Blackstone 7e3d69a53a
Fix CI build 2020-12-22 13:53:16 -07:00
Levi Blackstone dd9b02dcef
Prepare for v2.16.1 release (#5996) 2020-12-22 13:43:08 -07:00
jon 30088d34c5
fixes lint checkout target for prs (#5971) 2020-12-16 21:15:06 -08:00
Komal cba68b0874
Fix union types in resource docs (#5909) 2020-12-09 18:18:34 -08:00
Komal 62abd821e9
Update run-docs-gen to use v3 of create-pull-request (#5899) 2020-12-08 15:30:05 -08:00
stack72 7393f80b43 DEBUG when trying to understand why master sdks are classed as dirty for dev builds 2020-12-08 13:20:46 +00:00
Paul Stack 8396030578
Enable command dispatch workflow for dealing with PRs (#5851)
There are a few things happening here:

- Rename the command dispatch release events to be prefixed with trigger-
- Introduce a new command-dispatch event

  This new event listens for a trigger term in a comment e.g. /run-acceptance-tests

  This trigger term is *only* needed when the PR is from a fork! When the trigger term is posted
  then the run-build-and-acceptance-tests.yml event is fired

- run-build-and-acceptance-tests.yml

  If the user runs the code from a pulumi based branch, then the tests and builds will work as normal
  If this file is being run via respository_dispatch then it will be able to run the test and builds
  and also post a comment back to the PR with the link to the test run

It's important to say that PRs affecting the codegen and resource docs paths will only fire from a
pulumi based branch - there is currently no command dispatch events for these codegen and resource PRs!
2020-12-07 19:29:04 +00:00
Lee Briggs bed7c64afb
use correct repository for actions build (#5820) 2020-11-24 02:49:09 +00:00
Paul Stack 8df7d24523
Trigger Template and Examples tests on a release (#5815)
Fixes: #5738

This will ensure we find any potential issues after a release
2020-11-23 17:47:57 +00:00
Paul Stack 509be5003f
Ensure we pass a version with v prefix to bump-homebrew version (#5786) 2020-11-19 18:16:59 +00:00
stack72 3919ef5010 Ensure we call the correct build container action in the container build command-dispatch 2020-11-18 18:12:42 +00:00
stack72 342a024207 Ensuring that a GitHub Token is present in the workflow release for docker builds 2020-11-18 18:04:11 +00:00