GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — tests: Fix pre-install fixtures logic by bentsku · Pull Request #13709 · localstack/localstack

This repository was archived by the owner on Mar 23, 2026. It is now read-only.

Conversation

@bentsku

@bentsku bentsku commented Feb 6, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Motivation

Follow up from #13701, the fixture logic was wrong and I could not use early returns, because they were yield fixtures, aka generators. See https://docs.pytest.org/en/stable/how-to/fixtures.html#yield-fixtures-recommended

I've updated the fixture to not use yield anymore, allowing me to use early returns which makes more sense 👍

I've now tested properly the change and it works with no errors 👍 thanks @nik-localstack for surfacing this so quickly!

We got the following error before:

ValueError: opensearch did not yield a value

Changes

  • update the type of the fixtures by remove the yield as they do not have any clean up logic, so that can use early return

Tests

Start LocalStack in an external container and run a test from each service like tests.aws.services.opensearch.test_opensearch.TestOpensearchProvider.test_list_versions and see that it works 👍

Related

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

nik-localstack reacted with rocket emoji
All reactions
  • 🚀 1 reaction
@bentsku
fix fixture logic in pre-install
d4741e1
@bentsku bentsku added this to the 4.14 milestone Feb 6, 2026
@bentsku bentsku self-assigned this Feb 6, 2026
@bentsku
bentsku requested a review from silv-io as a code owner February 6, 2026 10:42
@bentsku bentsku added the semver: patch Non-breaking changes which can be included in patch releases label Feb 6, 2026
@bentsku
bentsku requested review from alexrashed and k-a-il as code owners February 6, 2026 10:42
@bentsku bentsku added docs: skip Pull request does not require documentation changes notes: skip Pull request does not have to be mentioned in the release notes labels Feb 6, 2026
k-a-il
k-a-il approved these changes Feb 6, 2026
View reviewed changes

@k-a-il k-a-il left a comment

Copy link
Copy Markdown
Collaborator

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Good to learn that you could not return from it, nice catch. LGTM

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@bentsku

bentsku commented Feb 6, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor Author

Good to learn that you could not return from it, nice catch. LGTM

Now that you say it, I looked it up a bit: https://docs.pytest.org/en/stable/how-to/fixtures.html#yield-fixtures-recommended

I actually could swap the yield and make it a return fixture instead and it would work 😅 I'll update, seems cleaner, as the fixtures do not have clean up logic

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

bentsku added 2 commits February 6, 2026 11:48
@bentsku
Revert "fix fixture logic in pre-install"
e263304
This reverts commit d4741e1.
@bentsku
remove yield from fixture with no clean up
44deaf2
@github-actions

github-actions Bot commented Feb 6, 2026

Copy link
Copy Markdown

LocalStack Community integration with Pro

 2 files  ±    0   2 suites  ±0   10m 49s ⏱️ - 1h 47m 49s
73 tests  - 5 123  56 ✅  - 4 789  17 💤  - 334  0 ❌ ±0 
75 runs   - 5 123  56 ✅  - 4 789  19 💤  - 334  0 ❌ ±0 

Results for commit 44deaf2. ± Comparison against base commit 965a755.

This pull request removes 5123 tests.
tests.aws.scenario.bookstore.test_bookstore.TestBookstoreApplication ‑ test_lambda_dynamodb
tests.aws.scenario.bookstore.test_bookstore.TestBookstoreApplication ‑ test_opensearch_crud
tests.aws.scenario.bookstore.test_bookstore.TestBookstoreApplication ‑ test_search_books
tests.aws.scenario.bookstore.test_bookstore.TestBookstoreApplication ‑ test_setup
tests.aws.scenario.kinesis_firehose.test_kinesis_firehose.TestKinesisFirehoseScenario ‑ test_kinesis_firehose_s3
tests.aws.scenario.lambda_destination.test_lambda_destination_scenario.TestLambdaDestinationScenario ‑ test_destination_sns
tests.aws.scenario.lambda_destination.test_lambda_destination_scenario.TestLambdaDestinationScenario ‑ test_infra
tests.aws.scenario.loan_broker.test_loan_broker.TestLoanBrokerScenario ‑ test_prefill_dynamodb_table
tests.aws.scenario.loan_broker.test_loan_broker.TestLoanBrokerScenario ‑ test_stepfunctions_input_recipient_list[step_function_input0-SUCCEEDED]
tests.aws.scenario.loan_broker.test_loan_broker.TestLoanBrokerScenario ‑ test_stepfunctions_input_recipient_list[step_function_input1-SUCCEEDED]
…
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions

github-actions Bot commented Feb 6, 2026

Copy link
Copy Markdown

Test Results - Preflight, Unit

23 114 tests  ±0   21 255 ✅ ±0   6m 16s ⏱️ -1s
     1 suites ±0    1 859 💤 ±0 
     1 files   ±0        0 ❌ ±0 

Results for commit 44deaf2. ± Comparison against base commit 965a755.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions

github-actions Bot commented Feb 6, 2026

Copy link
Copy Markdown

Test Results (amd64) - Acceptance

7 tests  ±0   5 ✅ ±0   3m 4s ⏱️ -3s
1 suites ±0   2 💤 ±0 
1 files   ±0   0 ❌ ±0 

Results for commit 44deaf2. ± Comparison against base commit 965a755.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions

github-actions Bot commented Feb 6, 2026

Copy link
Copy Markdown

Test Results (amd64) - Integration, Bootstrap

  5 files   5 suites   20m 19s ⏱️
 97 tests 80 ✅ 17 💤 0 ❌
103 runs  80 ✅ 23 💤 0 ❌

Results for commit 44deaf2.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@bentsku
bentsku merged commit 55611d1 into main Feb 6, 2026
42 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@bentsku
bentsku deleted the fix-fixture-cleanup branch February 6, 2026 11:26
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

@silv-io silv-io Awaiting requested review from silv-io
@alexrashed alexrashed Awaiting requested review from alexrashed alexrashed is a code owner
1 more reviewer
@k-a-il k-a-il k-a-il approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@bentsku bentsku

Labels

docs: skip Pull request does not require documentation changes notes: skip Pull request does not have to be mentioned in the release notes semver: patch Non-breaking changes which can be included in patch releases

Projects

None yet

Milestone

4.14

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@bentsku @k-a-il
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.