Skip to content

Comments

fix: do not ignore action error when the error message is empty#801

Merged
jooola merged 2 commits intomainfrom
fix-action-error
Jan 14, 2026
Merged

fix: do not ignore action error when the error message is empty#801
jooola merged 2 commits intomainfrom
fix-action-error

Conversation

@jooola
Copy link
Member

@jooola jooola commented Jan 9, 2026

The action error message should not be used to evaluate if an action has failed. Instead we now check if the action status is failed or if the error code is set.

@jooola jooola requested a review from a team as a code owner January 9, 2026 14:39
@codecov
Copy link

codecov bot commented Jan 9, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.37%. Comparing base (edaa297) to head (da30a52).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #801      +/-   ##
==========================================
- Coverage   79.42%   79.37%   -0.05%     
==========================================
  Files          60       60              
  Lines        4553     4558       +5     
==========================================
+ Hits         3616     3618       +2     
- Misses        634      637       +3     
  Partials      303      303              

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jooola jooola requested a review from apricote January 9, 2026 14:43
The action error message is bad to evaluate whether an action has failed. Instead we now check if the status is failed or if the error code is set.
@jooola
Copy link
Member Author

jooola commented Jan 9, 2026

Not sure if we want to set default values for the code and the message, when the API is missing those values.

Copy link
Member

@apricote apricote left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The defaults sound good, the <> shows that the value is not coming from the API.

@jooola jooola merged commit 9da4350 into main Jan 14, 2026
4 checks passed
@jooola jooola deleted the fix-action-error branch January 14, 2026 09:52
jooola pushed a commit that referenced this pull request Jan 16, 2026
<!-- section-start changelog -->
###
[`StorageBoxClient.GetSubaccount`](https://pkg.go.dev/github.com/hetznercloud/hcloud-go/v2/hcloud#StorageBoxClient.GetSubaccount)
no longer gets a subaccount by `username`


[`StorageBoxClient.GetSubaccount`](https://pkg.go.dev/github.com/hetznercloud/hcloud-go/v2/hcloud#StorageBoxClient.GetSubaccount)
no longer tries to get a subaccount by `username`, instead it tries to
get it by `name`.

To get a subaccount by `username` please use
[`StorageBoxClient.GetSubaccountByUsername`](https://pkg.go.dev/github.com/hetznercloud/hcloud-go/v2/hcloud#StorageBoxClient.GetSubaccountByUsername).

See the
[changelog](https://docs.hetzner.cloud/changelog#2026-01-15-storage-box-subaccount-name)
for more details.

### Features

- add name to Storage Box Subaccount (#806)

### Bug Fixes

- do not ignore action error when the error message is empty (#801)

<!-- section-end changelog -->

---

<details>
<summary><h4>PR by <a
href="https://github.com/apricote/releaser-pleaser">releaser-pleaser</a>
🤖</h4></summary>

If you want to modify the proposed release, add you overrides here. You
can learn more about the options in the docs.

## Release Notes

### Prefix / Start

This will be added to the start of the release notes.

~~~~rp-prefix
###
[`StorageBoxClient.GetSubaccount`](https://pkg.go.dev/github.com/hetznercloud/hcloud-go/v2/hcloud#StorageBoxClient.GetSubaccount)
no longer gets a subaccount by `username`


[`StorageBoxClient.GetSubaccount`](https://pkg.go.dev/github.com/hetznercloud/hcloud-go/v2/hcloud#StorageBoxClient.GetSubaccount)
no longer tries to get a subaccount by `username`, instead it tries to
get it by `name`.

To get a subaccount by `username` please use
[`StorageBoxClient.GetSubaccountByUsername`](https://pkg.go.dev/github.com/hetznercloud/hcloud-go/v2/hcloud#StorageBoxClient.GetSubaccountByUsername).

See the
[changelog](https://docs.hetzner.cloud/changelog#2026-01-15-storage-box-subaccount-name)
for more details.
~~~~

### Suffix / End

This will be added to the end of the release notes.

~~~~rp-suffix
~~~~

</details>

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 Jan 16, 2026
…5.0 (hetznercloud/fleeting-plugin-hetzner!338)

This MR contains the following updates:

| Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) |
|---|---|---|---|
| [github.com/hetznercloud/hcloud-go/v2](https://github.com/hetznercloud/hcloud-go) | `v2.34.0` → `v2.35.0` | ![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fhetznercloud%2fhcloud-go%2fv2/v2.35.0?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fhetznercloud%2fhcloud-go%2fv2/v2.34.0/v2.35.0?slim=true) |

---

### Release Notes

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

### [`v2.35.0`](https://github.com/hetznercloud/hcloud-go/blob/HEAD/CHANGELOG.md#v2350)

[Compare Source](hetznercloud/hcloud-go@v2.34.0...v2.35.0)

##### [`StorageBoxClient.GetSubaccount`](https://pkg.go.dev/github.com/hetznercloud/hcloud-go/v2/hcloud#StorageBoxClient.GetSubaccount) no longer gets a subaccount by `username`

[`StorageBoxClient.GetSubaccount`](https://pkg.go.dev/github.com/hetznercloud/hcloud-go/v2/hcloud#StorageBoxClient.GetSubaccount) no longer tries to get a subaccount by `username`, instead it tries to get it by `name`.

To get a subaccount by `username` please use [`StorageBoxClient.GetSubaccountByUsername`](https://pkg.go.dev/github.com/hetznercloud/hcloud-go/v2/hcloud#StorageBoxClient.GetSubaccountByUsername).

See the [changelog](https://docs.hetzner.cloud/changelog#2026-01-15-storage-box-subaccount-name) for more details.

##### Features

- add name to Storage Box Subaccount ([#&#8203;806](hetznercloud/hcloud-go#806))

##### Bug Fixes

- do not ignore action error when the error message is empty ([#&#8203;801](hetznercloud/hcloud-go#801))

</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:eyJjcmVhdGVkSW5WZXIiOiI0Mi44Mi4zIiwidXBkYXRlZEluVmVyIjoiNDIuODIuMyIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->
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.

3 participants