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

fix: propagate unexpected test errors via the test framework #1559

Merged
merged 5 commits into from Oct 16, 2023

Conversation

omar711
Copy link
Contributor

@omar711 omar711 commented Oct 16, 2023

Description:

When an unexpected error happens in enclave_context.RunStarlarkPackageBlocking, it will return (nil, error). Some tests don't account for this, so they don't detect or report said error, then panic when trying to reference the nil result.

This adds require.NoError(t, err) to all the tests I could find that hit this codepath.

Is this change user facing?

NO

References (if applicable):

#1538

@omar711 omar711 changed the title fix: propagate unexpected errors to the test framework fix: propagate unexpected test errors via the test framework Oct 16, 2023
@omar711 omar711 marked this pull request as ready for review October 16, 2023 11:11
@omar711 omar711 requested a review from a team October 16, 2023 11:35
@omar711 omar711 added this pull request to the merge queue Oct 16, 2023
Merged via the queue into main with commit c463ae2 Oct 16, 2023
35 checks passed
@omar711 omar711 deleted the omar/random-startosis-test-failures branch October 16, 2023 15:18
github-merge-queue bot pushed a commit that referenced this pull request Oct 16, 2023
🤖 I have created a release *beep* *boop*
---


##
[0.84.7](0.84.6...0.84.7)
(2023-10-16)


### Features

* Add create enclave utils to SDK
([#1550](#1550))
([eb952bb](eb952bb))
* provide granular progress of starlark package run
([#1548](#1548))
([8b20031](8b20031))
* rename kurtosis context "switch" to "set"
([#1537](#1537))
([ccff275](ccff275))


### Bug Fixes

* propagate unexpected test errors via the test framework
([#1559](#1559))
([c463ae2](c463ae2))
* show container status instead of service status in enclave inspect
([#1560](#1560))
([3e1208b](3e1208b)),
closes [#1351](#1351)

---
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: kurtosisbot <kurtosisbot@users.noreply.github.com>
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.

None yet

2 participants