test(flagd): drop the per-scenario /stop in e2e teardown once the testbed includes flagd-testbed#396

Open Beginner friendly
#1,891 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
68/100
Issue type
Refactor
Clarity
Clearly specified
Activity status
Active
Tech stack
java
Domain
testing

Research direction

Start at providers/flagd/src/test/java/.../e2e/steps/ProviderSteps.java and read ProviderSteps.tearDown to find the /stop POST block, plus ContainerPool.release and the NoOp provider swap that must stay. First confirm the flagd-testbed dependency has been bumped to a release containing open-feature/flagd-testbed#396 (check the testbed version in the flagd provider's build files), since removing /stop before that gains nothing. Done means the /stop block is gone from tearDown while ContainerPool.release and the provider swap remain, and the full e2e suite (in-process, RPC, file providers) still passes.

Written by the indexing model from the issue text.

Description

Problem

ProviderSteps.tearDown (providers/flagd/src/test/java/.../e2e/steps/ProviderSteps.java) POSTs /stop to the launchpad after every scenario. That makes every /start a cold flagd start.

open-feature/flagd-testbed#396 makes /start reuse the running flagd and restore the baseline flag state in place. Isolation no longer needs the /stop, and keeping it means the suite never gets the speedup.

Proposal

After bumping the testbed to a release that includes open-feature/flagd-testbed#396, remove the /stop block from tearDown. Keep ContainerPool.release and the NoOp provider swap.

Evidence

Tested locally with the /stop removed, against an image built from flagd-testbed#396 and one built from testbed main. All 590 tests (in-process 224, RPC 214, file 152) passed in every run. Wall time (in-process / RPC / file):

with /stop without /stop
flagd-testbed#396 102-107s / 73-79s / 48-65s 96s / 66s / 41s
testbed main 100s / 75s / 50s 120s / 79s / 49s

The machine was shared with other test runs, so treat the times as indicative. Without flagd-testbed#396, dropping /stop gains nothing, which is why this should wait for the bump.

Dominant language
Java
Stars
50
Forks
87
Avg merge
1d 14h
Merged PRs (30d)
53

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from open-feature/java-sdk-contrib

All issues in open-feature/java-sdk-contrib

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.