Skip to content
New issue

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

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

Already on GitHub? # to your account

Fix test printing old value for debugging #2855

Merged
merged 2 commits into from
Sep 13, 2024
Merged

Conversation

jimmykarily
Copy link
Contributor

ShouldNot(Equal(currentVersion), out) is a method call and as such, it received the value of out at the time of the call. That was not the updated value after the Eventually timeout had passed but rather the value from the previous call that populated it.
This made the test output very confusing because, even though the upgrade Pod was erroring out, the output shows the cluster being only some seconds old and the pod still being created (ouch!)

What this PR does / why we need it:

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #

ShouldNot(Equal(currentVersion), out) is a method call and as such, it
received the value of `out` at the time of the call. That was not the
updated value after the `Eventually` timeout had passed but rather the
value from the previous call that populated it.
This made the test output very confusing because, even though the
upgrade Pod was erroring out, the output shows the cluster being only
some seconds old and the pod still being created (ouch!)

Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
@jimmykarily jimmykarily self-assigned this Sep 13, 2024
@jimmykarily jimmykarily requested a review from a team September 13, 2024 08:32
of passing old value instead of func

Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
@jimmykarily jimmykarily merged commit 7aa3a71 into master Sep 13, 2024
42 of 43 checks passed
@jimmykarily jimmykarily deleted the fix-test-output branch September 13, 2024 11:07
renovate bot referenced this pull request in marinatedconcrete/config Sep 22, 2024
This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [kairos-io/kairos](https://github.com/kairos-io/kairos) |
patch | `v3.1.2` -> `v3.1.3` |

---

> [!WARNING]
> Some dependencies could not be looked up. Check the Dependency
Dashboard for more information.

---

### Release Notes

<details>
<summary>kairos-io/kairos (kairos-io/kairos)</summary>

###
[`v3.1.3`](https://github.com/kairos-io/kairos/releases/tag/v3.1.3)

[Compare
Source](https://github.com/kairos-io/kairos/compare/v3.1.2...v3.1.3)

##### Release highlights:

- In the previous release, we introduced a fix for the broken
permissions of the user's home directory. It turned out that the fix
only applied to users created by the top level `users:` key in the
Kairos configuration file. In this release, users created in various
stages will also get their home directory permissions fixed. If for some
reason, you don't want [the script]() to recursively fix the home
directory permissions, you can create [a sentinel
file](https://github.com/kairos-io/packages/blob/2fce89f6499a722768b1c58b6eace5ed7e45742d/packages/static/kairos-overlay-files/files/usr/bin/fix-home-dir-ownership#L5-L7)
to skip the fix and apply it on your own as you see fit.
- Fixed an issue where we didn't calculate the upgrade image size and
the always created an image with the default size
([https://github.com/kairos-io/kairos/issues/2818](https://github.com/kairos-io/kairos/issues/2818))
- Fixed an issue in Kairos upgrades through Kuberentes, where various
host directories were also used in image size calculation
([https://github.com/kairos-io/kairos-agent/pull/537](https://github.com/kairos-io/kairos-agent/pull/537))
- We now display the webui url below the QR code to avoid people having
to plug a keyboard just to find the IP address of the node
([https://github.com/kairos-io/kairos/issues/2826](https://github.com/kairos-io/kairos/issues/2826))
- Fixed a bug in Alpine flavors where we passed the edgevpn arguments in
the openrc service file wrongly
([https://github.com/kairos-io/kairos/issues/2789](https://github.com/kairos-io/kairos/issues/2789))
-   Lots of version bumps on dependencies (mostly automated).

##### Known Issues

- \[Carry over from previous releases] RPi EFI booting no longer
supported on kernels shipped with Ubuntu 24.04+
[#&#8203;2249](https://github.com/kairos-io/kairos/issues/2249)

##### What's Changed

- Add permissions to generic arm release pipeline by
[@&#8203;mauromorales](https://github.com/mauromorales) in
[https://github.com/kairos-io/kairos/pull/2840](https://github.com/kairos-io/kairos/pull/2840)
- Update tj-actions/changed-files action to v45 by
[@&#8203;renovate](https://github.com/renovate) in
[https://github.com/kairos-io/kairos/pull/2816](https://github.com/kairos-io/kairos/pull/2816)
- Add upgrade uki test by
[@&#8203;jimmykarily](https://github.com/jimmykarily) in
[https://github.com/kairos-io/kairos/pull/2776](https://github.com/kairos-io/kairos/pull/2776)
- Update dependency go to v1.23.1 by
[@&#8203;renovate](https://github.com/renovate) in
[https://github.com/kairos-io/kairos/pull/2845](https://github.com/kairos-io/kairos/pull/2845)
- Generate relative paths to files by
[@&#8203;jimmykarily](https://github.com/jimmykarily) in
[https://github.com/kairos-io/kairos/pull/2846](https://github.com/kairos-io/kairos/pull/2846)
- 🤖 Make arm64 workers use docker mirror by
[@&#8203;Itxaka](https://github.com/Itxaka) in
[https://github.com/kairos-io/kairos/pull/2850](https://github.com/kairos-io/kairos/pull/2850)
- 🐛 Fix wifi cloud-config example by
[@&#8203;jimmyjones2](https://github.com/jimmyjones2) in
[https://github.com/kairos-io/kairos/pull/2820](https://github.com/kairos-io/kairos/pull/2820)
- 📖 Add alpine wifi cloud-config by
[@&#8203;jimmyjones2](https://github.com/jimmyjones2) in
[https://github.com/kairos-io/kairos/pull/2819](https://github.com/kairos-io/kairos/pull/2819)
- Update anchore/grype Docker tag to v0.80.1 by
[@&#8203;renovate](https://github.com/renovate) in
[https://github.com/kairos-io/kairos/pull/2852](https://github.com/kairos-io/kairos/pull/2852)
- Update aquasec/trivy Docker tag to v0.55.0 by
[@&#8203;renovate](https://github.com/renovate) in
[https://github.com/kairos-io/kairos/pull/2781](https://github.com/kairos-io/kairos/pull/2781)
- Update aquasec/trivy Docker tag to v0.55.1 by
[@&#8203;renovate](https://github.com/renovate) in
[https://github.com/kairos-io/kairos/pull/2854](https://github.com/kairos-io/kairos/pull/2854)
- Update github/codeql-action action to v3.26.6 by
[@&#8203;renovate](https://github.com/renovate) in
[https://github.com/kairos-io/kairos/pull/2799](https://github.com/kairos-io/kairos/pull/2799)
- Fix test printing old value for debugging by
[@&#8203;jimmykarily](https://github.com/jimmykarily) in
[https://github.com/kairos-io/kairos/pull/2855](https://github.com/kairos-io/kairos/pull/2855)
- Update google/osv-scanner-action action to v1.8.5 by
[@&#8203;renovate](https://github.com/renovate) in
[https://github.com/kairos-io/kairos/pull/2853](https://github.com/kairos-io/kairos/pull/2853)
- Update quay.io/kairos/framework Docker tag to v2.11.5 by
[@&#8203;renovate](https://github.com/renovate) in
[https://github.com/kairos-io/kairos/pull/2856](https://github.com/kairos-io/kairos/pull/2856)
- Update github/codeql-action action to v3.26.7 by
[@&#8203;renovate](https://github.com/renovate) in
[https://github.com/kairos-io/kairos/pull/2858](https://github.com/kairos-io/kairos/pull/2858)
- Update quay.io/kairos/framework Docker tag to v2.11.7 by
[@&#8203;renovate](https://github.com/renovate) in
[https://github.com/kairos-io/kairos/pull/2859](https://github.com/kairos-io/kairos/pull/2859)
- Split the uploading of trivy and grype results by
[@&#8203;jimmykarily](https://github.com/jimmykarily) in
[https://github.com/kairos-io/kairos/pull/2860](https://github.com/kairos-io/kairos/pull/2860)

##### New Contributors

- [@&#8203;jimmyjones2](https://github.com/jimmyjones2) made
their first contribution in
[https://github.com/kairos-io/kairos/pull/2820](https://github.com/kairos-io/kairos/pull/2820)

**Full Changelog**:
kairos-io/kairos@v3.1.2...v3.1.3

</details>

---

### Configuration

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

🚦 **Automerge**: Enabled.

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

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

---

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

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/marinatedconcrete/config).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC44MC4wIiwidXBkYXRlZEluVmVyIjoiMzguODAuMCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants