Skip to content

Commit

Permalink
Enable converter
Browse files Browse the repository at this point in the history
  • Loading branch information
t0yv0 committed Feb 8, 2024
1 parent b5d59b0 commit db44182
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
18 changes: 18 additions & 0 deletions .ci-mgmt.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,18 @@ env:
ARM_TENANT_ID: ${{ secrets.ARM_TENANT_ID }}
ARM_CLIENT_SECRET: ${{ secrets.ARM_CLIENT_SECRET }}
PULUMI_MISSING_DOCS_ERROR: true
# Would rather fail the build to force listing dependencies manually under plugins: than
# auto-install a floating dependency which may influence example generation and cause
# non-deterministic builds later on.
#
# Unfortunately this does not work yet because of e2e tests (example-based tests). Need to find a
# way to scope this env var so that it does not configure tests.
#
# TestAccFrontdoor: no resource plugin 'pulumi-resource-random' found in the workspace at version v4.15.1 or on your $PATH
# Test_sql/e2e: Error: error resolving type of resource random: internal error loading package "random": no resource plugin
# 'pulumi-resource-random' found in the workspace or on your $PATH
#
# PULUMI_DISABLE_AUTOMATIC_PLUGIN_ACQUISITION: true
upstream-provider-repo: terraform-provider-azurerm
makeTemplate: bridged
plugins:
Expand All @@ -23,6 +35,11 @@ plugins:
version: "0.0.15"
- name: local
version: "0.0.1"
- name: std
version: "1.4.0"
- name: terraform
kind: converter
version: "1.0.11"
goBuildParallelism: 2
runner:
prerequisites: pulumi-ubuntu-8core
Expand All @@ -38,3 +55,4 @@ actions:
- name: Run provider tests
run: |
cd provider && go test -v -json -count=1 -cover -timeout 2h -tags=${{ matrix.language }} -parallel 4 . 2>&1 | tee /tmp/gotest.log | gotestfmt
pulumiConvert: 1
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ JAVA_GEN := pulumi-java-gen
TESTPARALLELISM := 10
WORKING_DIR := $(shell pwd)
PULUMI_PROVIDER_BUILD_PARALLELISM ?= -p 2
PULUMI_CONVERT := 0
PULUMI_CONVERT := 1

development: install_plugins provider build_sdks install_sdks

Expand Down Expand Up @@ -99,6 +99,8 @@ install_plugins: .pulumi/bin/pulumi
.pulumi/bin/pulumi plugin install resource azuread 5.33.0
.pulumi/bin/pulumi plugin install resource time 0.0.15
.pulumi/bin/pulumi plugin install resource local 0.0.1
.pulumi/bin/pulumi plugin install resource std 1.4.0
.pulumi/bin/pulumi plugin install converter terraform 1.0.11

lint_provider: provider
cd provider && golangci-lint run -c ../.golangci.yml
Expand Down

0 comments on commit db44182

Please sign in to comment.