Skip to content

Commit c1f3bc6

Browse files
pulumi: 3.156.0 -> 3.162.0 (NixOS#393740)
2 parents da25f94 + 468f5af commit c1f3bc6

File tree

5 files changed

+48
-8
lines changed

5 files changed

+48
-8
lines changed

pkgs/by-name/pu/pulumi/package.nix

Lines changed: 43 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,25 @@
1010
callPackage,
1111
testers,
1212
pulumi,
13+
pulumiPackages,
14+
python3Packages,
15+
nix-update-script,
16+
_experimental-update-script-combinators,
1317
}:
1418
buildGoModule rec {
1519
pname = "pulumi";
16-
version = "3.156.0";
20+
version = "3.162.0";
1721

1822
src = fetchFromGitHub {
1923
owner = "pulumi";
2024
repo = "pulumi";
2125
tag = "v${version}";
22-
hash = "sha256-1iML+WCEkLMdAJ7e+F5XwBzM+pn3eZQsCaSi3Ui/JdM=";
26+
hash = "sha256-avtqURmj3PL82j89kLmVsBWqJJHnOFqR1huoUESt4L4=";
2327
# Some tests rely on checkout directory name
2428
name = "pulumi";
2529
};
2630

27-
vendorHash = "sha256-2hpn1IKJvWtXgNKgf56dZABA4VO1aT0cDsHOmCEPrGo=";
31+
vendorHash = "sha256-fJFpwhbRkxSI2iQfNJ9qdL9oYM1SVVMJ30VIymoZBmg=";
2832

2933
sourceRoot = "${src.name}/pkg";
3034

@@ -56,6 +60,11 @@ buildGoModule rec {
5660
# Skip tests that fail in Nix sandbox.
5761
"-skip=^${
5862
lib.concatStringsSep "$|^" [
63+
# Concurrent map modification in test case.
64+
# TODO: remove after the fix is merged and released.
65+
# https://github.com/pulumi/pulumi/pull/19200
66+
"TestGetDocLinkForPulumiType"
67+
5968
# Seems to require TTY.
6069
"TestProgressEvents"
6170
@@ -68,6 +77,10 @@ buildGoModule rec {
6877
"TestGenerateOnlyProjectCheck"
6978
"TestPulumiNewSetsTemplateTag"
7079
"TestPulumiPromptRuntimeOptions"
80+
"TestPulumiNewOrgTemplate"
81+
"TestPulumiNewWithOrgTemplates"
82+
"TestPulumiNewWithoutPulumiAccessToken"
83+
"TestPulumiNewWithoutTemplateSupport"
7184
7285
# Connects to https://pulumi-testing.vault.azure.net/…
7386
"TestAzureCloudManager"
@@ -117,12 +130,39 @@ buildGoModule rec {
117130
passthru = {
118131
pkgs = callPackage ./plugins.nix { };
119132
withPackages = callPackage ./with-packages.nix { };
133+
updateScript = _experimental-update-script-combinators.sequence [
134+
(nix-update-script { })
135+
(nix-update-script {
136+
attrPath = "pulumiPackages.pulumi-go";
137+
extraArgs = [ "--version=skip" ];
138+
})
139+
(nix-update-script {
140+
attrPath = "pulumiPackages.pulumi-nodejs";
141+
extraArgs = [ "--version=skip" ];
142+
})
143+
(nix-update-script {
144+
attrPath = "pulumiPackages.pulumi-python";
145+
extraArgs = [ "--version=skip" ];
146+
})
147+
];
120148
tests = {
121149
version = testers.testVersion {
122150
package = pulumi;
123151
version = "v${version}";
124152
command = "PULUMI_SKIP_UPDATE_CHECK=1 pulumi version";
125153
};
154+
# Test building packages that reuse our version and src.
155+
inherit (pulumiPackages) pulumi-go pulumi-nodejs pulumi-python;
156+
# Pulumi currently requires protobuf4, but Nixpkgs defaults to a newer
157+
# version. Test that we can actually build the package with protobuf4.
158+
# https://github.com/pulumi/pulumi/issues/16828
159+
# https://github.com/NixOS/nixpkgs/issues/351751#issuecomment-2462163436
160+
pythonPackage =
161+
(python3Packages.overrideScope (
162+
final: _: {
163+
protobuf = final.protobuf4;
164+
}
165+
)).pulumi;
126166
pulumiTestHookShellcheck = testers.shellcheck {
127167
name = "pulumi-test-hook-shellcheck";
128168
src = ./extra/pulumi-test-hook.sh;

pkgs/by-name/pu/pulumi/plugins/pulumi-go/package.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ buildGoModule rec {
99

1010
sourceRoot = "${src.name}/sdk/go/pulumi-language-go";
1111

12-
vendorHash = "sha256-MqqkDuCAHsxyzcofufMSzf1TpntnMy+sNHhBY5vr+TE=";
12+
vendorHash = "sha256-3I9Kh3Zqpu0gT0pQNzg2mMwxQUdhEpjITZOrO7Yt50A=";
1313

1414
ldflags = [
1515
"-s"

pkgs/by-name/pu/pulumi/plugins/pulumi-nodejs/package.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ buildGoModule rec {
1212

1313
sourceRoot = "${src.name}/sdk/nodejs/cmd/pulumi-language-nodejs";
1414

15-
vendorHash = "sha256-Blhbjc9nNj2ZDKs6uO/IZ5RuFJJTkS2wJF/7Egc7VvA=";
15+
vendorHash = "sha256-UvfSmHWRFRZkmcgzUrLkqktQAt8ZlVDEzP6y+pxUOGc=";
1616

1717
ldflags = [
1818
"-s"

pkgs/by-name/pu/pulumi/plugins/pulumi-python/package.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ buildGoModule rec {
1212

1313
sourceRoot = "${src.name}/sdk/python/cmd/pulumi-language-python";
1414

15-
vendorHash = "sha256-x3dWYM8/2cWWhTmfGEDdrGHntqIDObYwQicSHIXr1rw=";
15+
vendorHash = "sha256-5tr3mQ5x6jMOa9meHK6gaoRjNgLoHkWiTiaYXXqmUDo=";
1616

1717
ldflags = [
1818
"-s"

pkgs/development/python-modules/pulumi/default.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,9 @@ buildPythonPackage {
7070
# https://github.com/pulumi/pulumi/blob/0acaf8060640fdd892abccf1ce7435cd6aae69fe/sdk/python/scripts/test_fast.sh#L16
7171
installCheckPhase = ''
7272
runHook preInstallCheck
73-
${python.executable} -m pytest --ignore=lib/test/automation lib/test
73+
${python.executable} -m pytest --junit-xml= --ignore=lib/test/automation lib/test
7474
pushd lib/test_with_mocks
75-
${python.executable} -m pytest
75+
${python.executable} -m pytest --junit-xml=
7676
popd
7777
runHook postInstallCheck
7878
'';

0 commit comments

Comments
 (0)