Commit graph

12 commits

Author SHA1 Message Date
Radek Simko
0fe906fa8c make copyrightfix 2026-02-17 13:56:34 +00:00
Bruno Schaatsbergen
a5d8673a41
Revert "Merge pull request #35929 from bschaatsbergen/b/fix-retry-messages-in-cloud-backend-json"
This reverts commit f8cb25a246, reversing
changes made to a25831d6ef.
2024-11-13 18:22:26 -07:00
Bruno Schaatsbergen
6b0ba4d20d
refactor: gracefully handle marshalling error with empty output 2024-11-12 18:46:53 -07:00
Bruno Schaatsbergen
b358e333ee
refactor: make methods private 2024-11-12 18:36:43 -07:00
Bruno Schaatsbergen
ae661f3568
views: add comments for clarity
Signed-off-by: Bruno Schaatsbergen <git@bschaatsbergen.com>
2024-11-08 14:03:28 -06:00
Bruno Schaatsbergen
94c732b7a5
views: refactor RetryLog to use an elapsed time
Signed-off-by: Bruno Schaatsbergen <git@bschaatsbergen.com>
2024-11-06 14:00:18 -06:00
Bruno Schaatsbergen
c71a1a775e
views: refactor retry logic with retryHelper function
Signed-off-by: Bruno Schaatsbergen <git@bschaatsbergen.com>
2024-11-06 06:52:41 -06:00
Bruno Schaatsbergen
c9f418d853
views: add PrepareMessage to cloud view interface
Signed-off-by: Bruno Schaatsbergen <git@bschaatsbergen.com>
2024-11-04 18:47:21 +01:00
Bruno Schaatsbergen
377c959c33
views: add cloud view
The cloud view is responsible for rendering messages related to cloud operations, presenting them to the user in either a human-readable format or as JSON output in the terminal.

Signed-off-by: Bruno Schaatsbergen <git@bschaatsbergen.com>
2024-11-01 15:40:51 +01:00
Bruno Schaatsbergen
8635cb1cfb
views: move retryLog hook to init view
The cloud backend includes a retry hook that relies on a go-tfe implementation. Since these retry messages were not rendered through a view, the `-json` flag was not respected, leading to mixed (non-pure JSON) output in the terminal whenever retry messages were printed.

Before passing the init view to the cloud backend, we ensure the retryLog hook is included in the init view.

Signed-off-by: Bruno Schaatsbergen <git@bschaatsbergen.com>
2024-10-30 19:50:33 +01:00
Sebastian Rivera
015f795ff0 Rebrand Terraform Cloud to HCP Terraform 2024-04-23 16:12:59 -04:00
Liam Cervante
ffbcaf8bef
Implement TFC integration for private module registry test runs (#33710)
* implement module testing via TFC

* ready for review

* fix static checks

* licence headers
2023-09-14 09:01:25 +02:00