Update first-party Pulumi dependencies #37
run-acceptance-tests.yml
on: pull_request
Annotations
14 errors and 4 warnings
Unexpected file modified:
sdk/python/pulumi_lambda_builders/_utilities.py#L1
File modified:
@@ -13,10 +13,12 @@ import os
import sys
import typing
import warnings
+import base64
import pulumi
import pulumi.runtime
from pulumi.runtime.sync_await import _sync_await
+from pulumi.runtime.proto import resource_pb2
from semver import VersionInfo as SemverVersion
from parver import Version as PEP440Version
@@ -100,10 +102,6 @@ def _get_semver_version():
_version = _get_semver_version()
_version_str = str(_version)
-
-def get_version():
- return _version_str
-
def get_resource_opts_defaults() -> pulumi.ResourceOptions:
return pulumi.ResourceOptions(
version=get_version(),
@@ -266,7 +264,7 @@ def call_plain(
output = pulumi.runtime.call(tok, props, res, typ)
# Ingoring deps silently. They are typically non-empty, r.f() calls include r as a dependency.
- result, known, secret, _ = _sync_await(asyncio.ensure_future(_await_output(output)))
+ result, known, secret, _ = _sync_await(asyncio.create_task(_await_output(output)))
problem = None
if not known:
@@ -324,3 +322,6 @@ def deprecated(message: str) -> typing.Callable[[C], C]:
def get_plugin_download_url():
return None
+
+def get_version():
+ return _version_str
|
Unexpected file modified:
sdk/python/pulumi_lambda_builders/build_go.py#L1
File modified:
@@ -4,9 +4,14 @@
import copy
import warnings
+import sys
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
+if sys.version_info >= (3, 11):
+ from typing import NotRequired, TypedDict, TypeAlias
+else:
+ from typing_extensions import NotRequired, TypedDict, TypeAlias
from . import _utilities
__all__ = [
@@ -91,12 +96,9 @@ def build_go(architecture: Optional[str] = None,
return AwaitableBuildGoResult(
asset=pulumi.get(__ret__, 'asset'))
-
-
-@_utilities.lift_output_func(build_go)
def build_go_output(architecture: Optional[pulumi.Input[Optional[str]]] = None,
code: Optional[pulumi.Input[Optional[str]]] = None,
- opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[BuildGoResult]:
+ opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[BuildGoResult]:
"""
Builds a Golang Lambda Function into a Pulumi Asset that can be deployed.
@@ -136,4 +138,10 @@ def build_go_output(architecture: Optional[pulumi.Input[Optional[str]]] = None,
:param str architecture: Lambda function architecture to build for. Valid values are `"x86_64"` and `"arm64"`. Default is `"x86_64"`.
:param str code: The path to the go code to build
"""
- ...
+ __args__ = dict()
+ __args__['architecture'] = architecture
+ __args__['code'] = code
+ opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
+ __ret__ = pulumi.runtime.invoke_output('lambda-builders:index:buildGo', __args__, opts=opts, typ=BuildGoResult)
+ return __ret__.apply(lambda __response__: BuildGoResult(
+ asset=pulumi.get(__response__, 'asset')))
|
Unexpected file modified:
sdk/python/pulumi_lambda_builders/provider.py#L1
File modified:
@@ -4,9 +4,14 @@
import copy
import warnings
+import sys
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
+if sys.version_info >= (3, 11):
+ from typing import NotRequired, TypedDict, TypeAlias
+else:
+ from typing_extensions import NotRequired, TypedDict, TypeAlias
from . import _utilities
__all__ = ['ProviderArgs', 'Provider']
|
build_sdks (python)
Unexpected changes detected: 3. See file annotations for details.
|
build_sdks (dotnet)
The job was canceled because "python" failed.
|
Unexpected file modified:
sdk/dotnet/BuildGo.cs#L1
File modified:
@@ -608,6 +608,305 @@ namespace Pulumi.LambdaBuilders
/// </summary>
public static Output<BuildGoResult> Invoke(BuildGoInvokeArgs? args = null, InvokeOptions? options = null)
=> global::Pulumi.Deployment.Instance.Invoke<BuildGoResult>("lambda-builders:index:buildGo", args ?? new BuildGoInvokeArgs(), options.WithDefaults());
+
+ /// <summary>
+ /// Builds a Golang Lambda Function into a Pulumi Asset that can be deployed.
+ ///
+ /// The below example uses a folder structure like this:
+ /// ```tree
+ /// examples/simple-go
+ /// ├── Pulumi.yaml
+ /// ├── cmd
+ /// │ └── simple
+ /// │ └── main.go
+ /// ├── go.mod
+ /// ├── go.sum
+ /// └── main.go
+ /// ```
+ ///
+ /// The output of `buildGo` produces an asset that can be passed to the
+ /// `aws.Lambda` `Code` property.
+ ///
+ /// {{% examples %}}
+ ///
+ /// ## Example Usage
+ ///
+ /// {{% example %}}
+ ///
+ /// Basic usage:
+ ///
+ /// ```typescript
+ /// import * as pulumi from "@pulumi/pulumi";
+ /// import * as aws from "@pulumi/aws";
+ /// import * as lambda_builders from "@pulumi/lambda-builders";
+ ///
+ /// const builder = lambda_builders.buildGo({
+ /// architecture: "arm64",
+ /// code: "cmd/simple",
+ /// });
+ /// const lambdaRolePolicy = aws.iam.getPolicyDocumentOutput({
+ /// statements: [{
+ /// actions: ["sts:AssumeRole"],
+ /// principals: [{
+ /// type: "Service",
+ /// identifiers: ["lambda.amazonaws.com"],
+ /// }],
+ /// }],
+ /// });
+ /// const role = new aws.iam.Role("role", {
+ /// assumeRolePolicy: lambdaRolePolicy.apply(lambdaRolePolicy => lambdaRolePolicy.json),
+ /// });
+ /// new aws.lambda.Function("function", {
+ /// code: builder.asset,
+ /// architectures: ["arm64"],
+ /// handler: "bootstrap",
+ /// role: role.arn,
+ /// runtime: aws.lambda.Runtime.CustomAL2023,
+ /// });
+ /// ```
+ ///
+ /// ```python
+ /// import pulumi
+ /// import pulumi_aws as aws
+ /// import pulumi_lambda_builders as lambda_builders
+ ///
+ /// builder = lambda_builders.build_go(architecture="arm64",
+ /// code="cmd/simple")
+ /// lambda_role_policy = aws.iam.get_policy_document_output(statements=[aws.iam.GetPolicyDocumentStatementArgs(
+ /// actions=["sts:AssumeRole"],
+ /// principals=[aws.iam.GetPolicyDocumentStatementPrincipalArgs(
+ /// type="Service",
+ /// identifiers=["lambda.amazonaws.com"],
+ /// )],
+ /// )])
+ /// role = aws.iam.Role("role", assume_role_policy=lambda_role_policy.json)
+ /// function = aws.lambda_.Function("function",
+ /// code=builder.asset,
+ /// architectures=["arm64"],
+ /// handler="bootstrap",
+ /// role=role.arn,
+ /// runtime=aws.lambda_.Runtime.CUSTOM_AL2023)
+ /// ```
+ ///
+ /// ```go
+ /// package main
+ ///
+ /// import (
+ /// "github.com/pulumi/pulumi-aws/sdk/v6/go/aws/iam"
+ /// "github.com/pulumi/pulumi-aws/sdk/v6/go/aws/lambda"
+ /// lambdabuilders "github.com/pulumi/pulumi-lambda-builders/sdk/go/lambda-builders"
+ /// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
+ /// )
+ ///
+ /// func main() {
+ /// pulumi.Run(func(ctx *pulumi.Context) error {
+ /// builder, err := lambdabuilders.BuildGo(ctx, &lambdabuilders.BuildGoArgs{
+ /// Architecture: pulumi.StringRef("arm64"),
+ /// Code: pulumi.StringRef("cmd/simple"),
+ /// }, nil)
+
|
Unexpected file modified:
sdk/dotnet/Utilities.cs#L1
File modified:
@@ -56,6 +56,13 @@ namespace Pulumi.LambdaBuilders
return dst;
}
+ public static global::Pulumi.InvokeOutputOptions WithDefaults(this global::Pulumi.InvokeOutputOptions? src)
+ {
+ var dst = src ?? new global::Pulumi.InvokeOutputOptions{};
+ dst.Version = src?.Version ?? Version;
+ return dst;
+ }
+
private readonly static string version;
public static string Version => version;
|
build_sdks (dotnet)
Unexpected changes detected: 2. See file annotations for details.
|
build_sdks (nodejs)
The job was canceled because "python" failed.
|
build_sdks (java)
The job was canceled because "python" failed.
|
build_sdks (java)
The operation was canceled.
|
build_sdks (go)
The job was canceled because "python" failed.
|
Unexpected file modified:
sdk/go/lambda-builders/buildGo.go#L1
File modified:
@@ -109,15 +109,11 @@ type BuildGoResult struct {
}
func BuildGoOutput(ctx *pulumi.Context, args BuildGoOutputArgs, opts ...pulumi.InvokeOption) BuildGoResultOutput {
- return pulumi.ToOutputWithContext(context.Background(), args).
- ApplyT(func(v interface{}) (BuildGoResult, error) {
+ return pulumi.ToOutputWithContext(ctx.Context(), args).
+ ApplyT(func(v interface{}) (BuildGoResultOutput, error) {
args := v.(BuildGoArgs)
- r, err := BuildGo(ctx, &args, opts...)
- var s BuildGoResult
- if r != nil {
- s = *r
- }
- return s, err
+ options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)}
+ return ctx.InvokeOutput("lambda-builders:index:buildGo", args, BuildGoResultOutput{}, options).(BuildGoResultOutput), nil
}).(BuildGoResultOutput)
}
|
build_sdks (go)
Unexpected changes detected: 1. See file annotations for details.
|
lint
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
prerequisites
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
prerequisites
Codecov:
Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
|
build_sdks (python)
This job uses deprecated functionality from the 'gradle/gradle-build-action' action. Consult the Job Summary for more details.
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
pulumi-lambda-builders-provider.tar.gz
|
35.5 MB |
|