Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: allow retrieving the action from an action error #538

Merged
merged 1 commit into from
Oct 16, 2024
Merged

Conversation

jooola
Copy link
Member

@jooola jooola commented Oct 16, 2024

When an action error occurs within the action waiter utilities, we are missing information about the related action that failed. With this change, we can now retrieve the action that triggered the failure after casting the error to an action error.

@jooola jooola requested a review from a team as a code owner October 16, 2024 12:20
Copy link

codecov bot commented Oct 16, 2024

Codecov Report

Attention: Patch coverage is 33.33333% with 2 lines in your changes missing coverage. Please review.

Project coverage is 71.44%. Comparing base (65a79f3) to head (4d3bd4d).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
hcloud/action.go 33.33% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #538      +/-   ##
==========================================
- Coverage   71.47%   71.44%   -0.03%     
==========================================
  Files          46       46              
  Lines        3930     3933       +3     
==========================================
+ Hits         2809     2810       +1     
- Misses        709      711       +2     
  Partials      412      412              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jooola jooola requested a review from apricote October 16, 2024 12:23
When an action error occur within the actions waiter utilities, we are laking information about the related action that failed. With this change, we can now retrieve the action that triggered the failure after casting the error to an action error.
@jooola
Copy link
Member Author

jooola commented Oct 16, 2024

@jooola jooola merged commit 07727d3 into main Oct 16, 2024
5 checks passed
@jooola jooola deleted the action_error branch October 16, 2024 14:42
jooola pushed a commit that referenced this pull request Oct 21, 2024
🤖 I have created a release *beep* *boop*
---


##
[2.14.0](v2.13.1...v2.14.0)
(2024-10-21)


### Features

* add support for Go 1.23
([#532](#532))
([838f878](838f878))
* allow retrieving the action from an action error
([#538](#538))
([07727d3](07727d3))
* include action ID in action error string
([#539](#539))
([ad5417f](ad5417f))


### Bug Fixes

* deprecate pricing floating ip field
([#523](#523))
([1089d40](1089d40))
* deprecate unused window parameter in the `EnableBackup` call
([#531](#531))
([584f6c2](584f6c2)),
closes [#525](#525)

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
apricote pushed a commit to hetznercloud/fleeting-plugin-hetzner that referenced this pull request Oct 21, 2024
…4.0 (hetznercloud/fleeting-plugin-hetzner!141)

This MR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [github.com/hetznercloud/hcloud-go/v2](https://github.com/hetznercloud/hcloud-go) | require | minor | `v2.13.1` -> `v2.14.0` |

---

### Release Notes

<details>
<summary>hetznercloud/hcloud-go (github.com/hetznercloud/hcloud-go/v2)</summary>

### [`v2.14.0`](https://github.com/hetznercloud/hcloud-go/releases/tag/v2.14.0)

[Compare Source](hetznercloud/hcloud-go@v2.13.1...v2.14.0)

##### Features

-   add support for Go 1.23 ([#&#8203;532](hetznercloud/hcloud-go#532)) ([838f878](hetznercloud/hcloud-go@838f878))
-   allow retrieving the action from an action error ([#&#8203;538](hetznercloud/hcloud-go#538)) ([07727d3](hetznercloud/hcloud-go@07727d3))
-   include action ID in action error string ([#&#8203;539](hetznercloud/hcloud-go#539)) ([ad5417f](hetznercloud/hcloud-go@ad5417f))

##### Bug Fixes

-   deprecate pricing floating ip field ([#&#8203;523](hetznercloud/hcloud-go#523)) ([1089d40](hetznercloud/hcloud-go@1089d40))
-   deprecate unused window parameter in the `EnableBackup` call  ([#&#8203;531](hetznercloud/hcloud-go#531)) ([584f6c2](hetznercloud/hcloud-go@584f6c2)), closes [#&#8203;525](hetznercloud/hcloud-go#525)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever MR is behind base branch, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this MR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this MR, check this box

---

This MR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC4xMjguNiIsInVwZGF0ZWRJblZlciI6IjM4LjEyOC42IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants