Mutahhir Hayat
2bb747222b
Update copyright for conversion_test.go
build / Build for freebsd_amd64 (push) Has been cancelled
build / Build for linux_amd64 (push) Has been cancelled
build / Build for openbsd_amd64 (push) Has been cancelled
build / Build for solaris_amd64 (push) Has been cancelled
build / Build for windows_amd64 (push) Has been cancelled
build / Build for freebsd_arm (push) Has been cancelled
build / Build for linux_arm (push) Has been cancelled
build / Build for darwin_arm64 (push) Has been cancelled
build / Build for linux_arm64 (push) Has been cancelled
build / Build for windows_arm64 (push) Has been cancelled
build / Build Docker image for linux_386 (push) Has been cancelled
build / Build Docker image for linux_amd64 (push) Has been cancelled
build / Build Docker image for linux_arm (push) Has been cancelled
build / Build Docker image for linux_arm64 (push) Has been cancelled
build / Build e2etest for linux_386 (push) Has been cancelled
build / Build e2etest for windows_386 (push) Has been cancelled
build / Build e2etest for darwin_amd64 (push) Has been cancelled
build / Build e2etest for linux_amd64 (push) Has been cancelled
build / Build e2etest for windows_amd64 (push) Has been cancelled
build / Build e2etest for linux_arm (push) Has been cancelled
build / Build e2etest for darwin_arm64 (push) Has been cancelled
build / Build e2etest for linux_arm64 (push) Has been cancelled
build / Run e2e test for linux_386 (push) Has been cancelled
build / Run e2e test for windows_386 (push) Has been cancelled
build / Run e2e test for darwin_amd64 (push) Has been cancelled
build / Run e2e test for linux_amd64 (push) Has been cancelled
build / Run e2e test for windows_amd64 (push) Has been cancelled
build / Run e2e test for linux_arm (push) Has been cancelled
build / Run e2e test for linux_arm64 (push) Has been cancelled
build / Run terraform-exec test for linux amd64 (push) Has been cancelled
2026-03-02 17:08:15 +01:00
Mutahhir Hayat
71f0afc644
Include trigger information in progress messages
...
This disambiguates multiple invocations of the same action instance (see
this excellent comment by @DanielMSchmidt for a better overview
(https://github.com/hashicorp/terraform/pull/38051/changes#r2812460131 )
2026-03-02 17:08:15 +01:00
Mutahhir Hayat
551bf42090
Add Action Invocations in ComponenentInstanceChanges
2026-03-02 17:08:15 +01:00
Roniece
a38c47ae72
Add ActionInvocationStatus, ActionInvocationProgress messages
2026-03-02 17:08:15 +01:00
Mutahhir Hayat
7aa0a71078
Create Protobuf changes for stack planning that includes Action invocations
2026-03-02 17:08:15 +01:00
Sarah French
9f5f21f1d8
test: Enable mocking http provider sources in tests ( #38206 )
...
* test: Update`MockSource` to be able to present providers as being installed via HTTP, add `newMockProviderSourceViaHTTP` for direct use in tests.
Compare newMockProviderSourceViaHTTP to the existing newMockProviderSource. newMockProviderSource uses FakeInstallablePackageMeta, which creates metadata for providers that says it's being sourced from a local archive. In newMockProviderSourceViaHTTP the metadata reports the provider is downloaded via HTTP. The URL is created using a base URL that should be obtained from a test http server created in the test.
* test: Add `newMockProviderSourceUsingTestHttpServer` helper, to abstract away making the http test server. Add test showing it in use.
* refactor: Update test helpers to call t.Cleanup internally
2026-02-26 10:24:13 +00:00
Radek Simko
56c39007e2
make protobuf
2026-02-17 13:56:34 +00:00
Radek Simko
cee1246acc
rpcapi: Manually update copyright in template
2026-02-17 13:56:34 +00:00
Radek Simko
0fe906fa8c
make copyrightfix
2026-02-17 13:56:34 +00:00
Daniel Schmidt
c3cc222a1f
separate tests between different modes
build / Build for freebsd_amd64 (push) Has been cancelled
build / Build for linux_amd64 (push) Has been cancelled
build / Build for openbsd_amd64 (push) Has been cancelled
build / Build for solaris_amd64 (push) Has been cancelled
build / Build for windows_amd64 (push) Has been cancelled
build / Build for freebsd_arm (push) Has been cancelled
build / Build for linux_arm (push) Has been cancelled
build / Build for darwin_arm64 (push) Has been cancelled
build / Build for linux_arm64 (push) Has been cancelled
build / Build for windows_arm64 (push) Has been cancelled
build / Build Docker image for linux_386 (push) Has been cancelled
build / Build Docker image for linux_amd64 (push) Has been cancelled
build / Build Docker image for linux_arm (push) Has been cancelled
build / Build Docker image for linux_arm64 (push) Has been cancelled
build / Build e2etest for linux_386 (push) Has been cancelled
build / Build e2etest for windows_386 (push) Has been cancelled
build / Build e2etest for darwin_amd64 (push) Has been cancelled
build / Build e2etest for linux_amd64 (push) Has been cancelled
build / Build e2etest for windows_amd64 (push) Has been cancelled
build / Build e2etest for linux_arm (push) Has been cancelled
build / Build e2etest for darwin_arm64 (push) Has been cancelled
build / Build e2etest for linux_arm64 (push) Has been cancelled
build / Run e2e test for linux_386 (push) Has been cancelled
build / Run e2e test for windows_386 (push) Has been cancelled
build / Run e2e test for darwin_amd64 (push) Has been cancelled
build / Run e2e test for linux_amd64 (push) Has been cancelled
build / Run e2e test for windows_amd64 (push) Has been cancelled
build / Run e2e test for linux_arm (push) Has been cancelled
build / Run e2e test for linux_arm64 (push) Has been cancelled
build / Run terraform-exec test for linux amd64 (push) Has been cancelled
2026-01-30 16:13:59 +01:00
Daniel Schmidt
7307d92619
ignore sorting of diagnostics
...
The events are non-deterministic
2026-01-30 16:13:59 +01:00
Daniel Schmidt
fa14a97346
stacks: ensure an empty plan sends an applied status for the component
2026-01-30 16:13:59 +01:00
Daniel Schmidt
ed79a4745b
stacks: add apply time progress message test case
2026-01-30 16:13:59 +01:00
Daniel Schmidt
c24699eab7
stacks: ensure an empty plan produces a planned status
2026-01-30 16:13:59 +01:00
Daniel Schmidt
dce80d4465
stacks: add tests to validate progress events for destroy plans
2026-01-30 16:13:59 +01:00
Daniel Schmidt
f4c22be3c5
stacks: send progress events on failed provider configurations
2026-01-30 16:13:59 +01:00
Sarah French
2e5b5dee5d
Upgrade protoc and protoc-gen-go-grpc versions to matching terraform-plugin-go ( #37647 )
...
build / Build for freebsd_amd64 (push) Has been cancelled
build / Build for linux_amd64 (push) Has been cancelled
build / Build for openbsd_amd64 (push) Has been cancelled
build / Build for solaris_amd64 (push) Has been cancelled
build / Build for windows_amd64 (push) Has been cancelled
build / Build for freebsd_arm (push) Has been cancelled
build / Build for linux_arm (push) Has been cancelled
build / Build for darwin_arm64 (push) Has been cancelled
build / Build for linux_arm64 (push) Has been cancelled
build / Build for windows_arm64 (push) Has been cancelled
build / Build Docker image for linux_386 (push) Has been cancelled
build / Build Docker image for linux_amd64 (push) Has been cancelled
build / Build Docker image for linux_arm (push) Has been cancelled
build / Build Docker image for linux_arm64 (push) Has been cancelled
build / Build e2etest for linux_386 (push) Has been cancelled
build / Build e2etest for windows_386 (push) Has been cancelled
build / Build e2etest for darwin_amd64 (push) Has been cancelled
build / Build e2etest for linux_amd64 (push) Has been cancelled
build / Build e2etest for windows_amd64 (push) Has been cancelled
build / Build e2etest for linux_arm (push) Has been cancelled
build / Build e2etest for darwin_arm64 (push) Has been cancelled
build / Build e2etest for linux_arm64 (push) Has been cancelled
build / Run e2e test for linux_386 (push) Has been cancelled
build / Run e2e test for windows_386 (push) Has been cancelled
build / Run e2e test for darwin_amd64 (push) Has been cancelled
build / Run e2e test for linux_amd64 (push) Has been cancelled
build / Run e2e test for windows_amd64 (push) Has been cancelled
build / Run e2e test for linux_arm (push) Has been cancelled
build / Run e2e test for linux_arm64 (push) Has been cancelled
build / Run terraform-exec test for linux amd64 (push) Has been cancelled
* Update protoc version in downloader script
* go get google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.5.1
This matched terraform-plugin-go
* make protobuf
* Run `make protobuf`
* Update generator to handle generic types from google.golang.org/grpc
Looks like this was added in v1.69.3 in https://github.com/grpc/grpc-go/pull/7057 ?
* Run `make generate`
* Fix "cannot infer Res" compile error - more usage of generics
* More fixing compile errors due to switching to use of a generic
* Make putting `google.golang.org/grpc` import into generated files conditional
* Run `make generate`
* Update more places where generics now need to be used
* Update generator to handle any types from google.golang.org/grpc in same switch case.
2025-10-22 14:46:18 +01:00
Sarah French
2657a4daec
Set let require_unimplemented_servers default to true when generating code from .proto files ( #37737 )
...
* Remove `require_unimplemented_servers=false` option when generating code from proto files. Run `make protobuf`.
This allows require_unimplemented_servers to default to true, and the generated code shows the impacts of that.
* Update generator script to embed 'UnimplementedFoobarServer' structs and skip generating code for the `mustEmbedUnimplementedFoobarServer` method that is implemented via that embedding.
* Run `make generate`
* Embed UnimplementedProviderServer into implementations of ProviderServer
* Embed UnimplementedProvisionerServer into implementations of ProvisionerServer
2025-10-09 11:18:13 +01:00
Dirk Avery
9e155d7250
Update for newer telemetry
2025-10-03 10:20:40 -04:00
Sarah French
ffbb62b369
Swap to using google.golang.org/protobuf/cmd/protoc-gen-go instead of github.com/golang/protobuf/protoc-gen-go ( #37685 )
...
* Reformat Args in steps definitions
* Swap to using the new version of protoc-gen-go that doesn't include grpc support (instead it relies on protoc-gen-go-grpc).
Update command flags to reflect this change in tooling.
See this comment for explanation: https://github.com/golang/protobuf/issues/1070#issuecomment-607293496
* Run `make protobuf` with problem generate steps commented out.
* Use `require_unimplemented_servers=false` to minimise changes at the time of upgrading tooling
In future we can navigate the consequences of this in its own PR.
* WIP
* Fix out/opt typo, add remaining flags once terraform1.proto was being found ok
* Run `make protobuf`
* `go get google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.3.0` && `go mod tidy`
This version includes a feature that allows the copyright comment in the .proto file to be pulled across to generated _grpc.pb.go files.
* Run `make protobuf` with new version of protoc-gen-go-grpc that allows copyright comment to be copied to generated output files
* Potential fix for `internal/rpcapi/dynrpcserver/generator`
2025-09-30 11:52:24 +01:00
James Bardin
7ed24d208a
make protobuf
2025-08-12 14:05:10 -04:00
Mark DeCrane
ffca158061
Merge pull request #37015 from hashicorp/TF-25893/handle-stacks-plugin-interupts
...
Handle stacks plugin interrupts
2025-05-19 09:58:02 -04:00
Mark DeCrane
96c9240945
Add log noting remote operations that have started will continue if command is interrupted
2025-05-18 13:36:48 -04:00
Liam Cervante
b6be635748
stacks migrate: allow resource mapping to include nested resources ( #37060 )
...
* stacks migrate: allow resource mapping to include nested resources
* make protobuf
2025-05-16 10:10:47 +02:00
Liam Cervante
a80220dcc9
stacks: rename .tfstack files to .tfcomponent ( #37013 )
...
* stacks: rename .tfstack files to .tfcomponent
* fix consistency issues
2025-05-15 08:33:13 +02:00
Mark DeCrane
5b33d74641
Handle the propagation of interrupt signals to stacks plugin
2025-05-14 15:19:24 -04:00
UKEME BASSEY
25b5607b7b
fix server startup panics
2025-05-12 19:01:11 -04:00
UKEME BASSEY
3bc13593f9
add proto files gen for stacks plugin, & regenerate protofiles
...
add tests
update changelog
2025-05-05 16:06:49 -04:00
UKEME BASSEY
fcdcb15f56
update stack grpc client
2025-04-29 11:43:40 -04:00
Liam Cervante
063757ff45
stacks: refactor plan, state, and removed tracking with tree structures for efficient lookups ( #36850 )
2025-04-16 14:05:51 +02:00
Liam Cervante
a06f82746a
stacks: update removed blocks to allow targeting of embedded stacks ( #36814 )
...
* stacks: update removed blocks to allow targeting of embedded stacks
* copywrite headers
2025-04-04 15:01:37 +02:00
Liam Cervante
fbd5a7930e
stacks: allow removed blocks to target components in nested stacks ( #36787 )
...
* stacks: allow removed blocks to target components in nested stacks
* make copywrite fix
* fix comments
2025-04-03 10:29:18 +02:00
Sarah French
6ef0498f9c
Update to Go 1.24.1, update dependencies ( #36790 )
...
* go get github.com/hashicorp/go-azure-helpers@v0.72.0
* .go-version to 1.24.1
* Run `./scripts/syncdeps.sh`
This propagates the Go version upgrade
* gcs : go get google.golang.org/api@v0.155.0
* gcs: go mod tidy
* Run `./scripts/syncdeps.sh`
* make generate && make protobuf
2025-03-27 17:15:46 +00:00
Sarah French
a04664a2e5
Update hashicorp/go-plugin dependency ( #36561 )
...
* go get github.com/hashicorp/go-plugin
* ./scripts/syncdeps.sh
* make protobuf
2025-03-26 12:09:01 +00:00
Samsondeen
71dbc7d726
migrate command for terraform stacks ( #36482 )
2025-03-19 10:39:50 +01:00
Liam Cervante
c16d466773
stacks: allow multiple removed blocks to target the same component ( #36693 )
...
* stacks: allow multiple removed blocks to target the same component
* make linter happy
2025-03-18 08:54:27 +01:00
Daniel Schmidt
3d11463533
remove unused struct
...
Co-authored-by: Liam Cervante <liam.cervante@hashicorp.com>
2025-03-12 09:54:44 +01:00
Daniel Schmidt
98ae4d1fe2
fix indentation
...
Co-authored-by: Liam Cervante <liam.cervante@hashicorp.com>
2025-03-12 09:54:44 +01:00
Daniel Schmidt
43fe6ca8cc
stacks: add rpc call to list resource identities of a stack
2025-03-12 09:54:44 +01:00
Daniel Banck
10c9b64007
Rename schema.Block to Body ( #36629 )
2025-03-04 16:33:43 +01:00
Radek Simko
289a3568da
Address go vet 1.24 failures ( #36485 )
...
* address go vet failures
* avoid unnecessary .Error()
2025-02-12 16:51:53 +00:00
Liam Cervante
7c4aeac5f3
stacks: load credentials from config file on startup ( #35952 )
...
* stacks: load credentials from config file on startup
* delete unneeded file
2024-11-05 16:13:08 +01:00
Graham Davison
6883ab0ecf
Updates for OTel SDK 1.30
2024-09-23 13:54:20 -07:00
Daniel Schmidt
ec33b03661
stacks: add destroy bool to FindStackConfigurationComponents Removed blocks
2024-09-16 12:02:01 +02:00
Liam Cervante
d142486a40
stacks: expand plan and apply outputs for inputs ( #35724 )
2024-09-16 11:45:19 +02:00
Liam Cervante
73e3f8096b
stacks: complete stack output implementation for plan and apply ( #35723 )
2024-09-16 11:36:36 +02:00
James Bardin
9ff727440e
udpate generated files
2024-09-11 14:09:42 -04:00
James Bardin
2cbb6bf92f
udpate code which was failing staticckeck
...
Some updates to staticcheck were catching more errors. Most of these
were format functions without a format string, but rather than adding
more exceptions I just fixed them all. This did also catch some
incorrectly wrapped errors.
2024-09-11 14:09:12 -04:00
Daniel Schmidt
69e4412a59
stacks: return removed components in find components rpc call
2024-09-10 16:39:45 +02:00
Liam Cervante
436b72b63b
stacks: fix memory leak caused by unclosed providers ( #35678 )
...
* stacks: make the mock provider error if it's not cleaned up
* stacks: start and clean up unconfigured clients once
2024-09-07 14:22:16 +02:00