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 — fix(openfga): remove playground wait from Run and up image to v1.18.0 by selvakannanjr · Pull Request #3745 · testcontainers/testcontainers-go

Conversation

@selvakannanjr

@selvakannanjr selvakannanjr commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

What does this PR do?

Removes the unconditional wait.ForHTTP("/playground") wait strategy from the default Run() function in the OpenFGA module, and updates the default image version referenced in examples and tests from v1.5.0 to v1.18.0.

The playground wait strategy is now opt-in: the ExampleRun_connectToPlayground example demonstrates how to enable it explicitly using testcontainers.WithAdditionalWaitStrategy(...) alongside the required environment variables (OPENFGA_PLAYGROUND_ENABLED=true, OPENFGA_PLAYGROUND_ADDR=0.0.0.0:3000).

Why is it important?

The playground is not enabled by default in OpenFGA — it requires explicit configuration. Having Run() unconditionally wait for the playground HTTP endpoint meant that containers started without playground support would either time out or rely on an endpoint that was never going to be available. This made Run() unnecessarily slow and fragile for users who don't need the playground.

The image bump to v1.18.0 brings the examples in line with a current, supported release of OpenFGA.

Related issues

  • Closes [Enhancement]: Bring openfga testcontainer module up to date #3744

How to test this PR

The example tests use the recent v1.18.0 image and shows you how to enable and connect to the Playground if needed. The openfga_test.go tests the new version with the default container options.

Sorry, something went wrong.

Uh oh!

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

All reactions
@selvakannanjr
fix(openfga): remove unconditional playground wait strategy from Run …
96d6236
…and update image to v1.18.0

The playground wait strategy is now opt-in via WithAdditionalWaitStrategy,
since the playground requires explicit OPENFGA_PLAYGROUND_ENABLED=true to be active
in the newer OpenFGA versions.
@selvakannanjr
selvakannanjr requested a review from a team as a code owner June 30, 2026 15:30
@netlify

netlify Bot commented Jun 30, 2026 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown

✅ Deploy Preview for testcontainers-go ready!

Name Link
🔨 Latest commit 3813467
🔍 Latest deploy log https://app.netlify.com/projects/testcontainers-go/deploys/6a43ee4ab4385c00072ce8e0
😎 Deploy Preview https://deploy-preview-3745--testcontainers-go.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

All reactions

Sorry, something went wrong.

Uh oh!

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

@coderabbitai

coderabbitai Bot commented Jun 30, 2026 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: e5a1bf7f-3063-4f80-b8e6-c53d8db52d12

📥 Commits

Reviewing files that changed from the base of the PR and between 96d6236 and 3813467.

📒 Files selected for processing (2)
  • docs/modules/openfga.md
  • modules/openfga/examples_test.go
✅ Files skipped from review due to trivial changes (1)
  • docs/modules/openfga.md
🚧 Files skipped from review as they are similar to previous changes (1)
  • modules/openfga/examples_test.go

Summary by CodeRabbit

  • Bug Fixes

    • Updated OpenFGA startup checks so the Playground is only used when it is actually available, improving readiness behavior.
    • Bumped the OpenFGA version used in examples and tests to a newer release.
  • Documentation

    • Clarified that Playground is disabled by default in newer OpenFGA versions.
    • Added guidance and an example for enabling Playground when needed.

Walkthrough

The OpenFGA module removes its default /playground HTTP readiness check. The playground-specific example now enables playground support explicitly and waits for /playground to return HTTP 200. OpenFGA image tags are updated to v1.18.0, and the docs reflect the new playground behavior.

Changes

OpenFGA v1.18.0 upgrade and playground wait strategy fix

Layer / File(s) Summary
Remove playground HTTP wait from module default
modules/openfga/openfga.go
Removes the net/http import and the /playground HTTP 200 readiness check from the module’s default wait strategy.
Update example image tags and playground docs
modules/openfga/examples_test.go, modules/openfga/openfga_test.go, docs/modules/openfga.md
Updates OpenFGA container image tags to openfga/openfga:v1.18.0; ExampleRun_connectToPlayground adds playground env vars and an HTTP wait for /playground returning 200 on port 3000; the docs add the playground note and the new enable-playground example section.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~5 minutes

Poem

🐇 The playground gate no longer stands,
The bunny hops at newer lands.
v1.18.0 is here to stay,
With docs and waits that point the way.
A tiny hop, a tidy tune—
The OpenFGA moonlight glows by noon.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly summarizes the main changes: removing the playground wait and bumping the OpenFGA image version.
Description check ✅ Passed The description is directly related to the code changes and explains the readiness and image-version updates.
Linked Issues check ✅ Passed The PR removes the playground dependency from default readiness checks, matching #3744's requirement.
Out of Scope Changes check ✅ Passed The example, test, and docs updates all support the OpenFGA readiness and version bump changes.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
  • X
  • Mastodon
  • Reddit
  • LinkedIn

Comment @coderabbitai help to get the list of available commands.

All reactions

Sorry, something went wrong.

Uh oh!

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

@selvakannanjr

selvakannanjr commented Jun 30, 2026

Copy link
Copy Markdown
Contributor Author

Will update the docs next

All reactions

Sorry, something went wrong.

Uh oh!

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

@selvakannanjr selvakannanjr changed the title fix(openfga): remove unconditional playground wait strategy from Run … fix(openfga): remove playground wait from Run and up image to v1.18.0 Jun 30, 2026
mdelapenya
mdelapenya reviewed Jun 30, 2026
View reviewed changes
Comment thread modules/openfga/openfga.go Resolved

Uh oh!

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

@selvakannanjr
docs(openfga): update docs
3813467
mdelapenya
mdelapenya approved these changes Jul 2, 2026
View reviewed changes

@mdelapenya mdelapenya left a comment

Copy link
Copy Markdown
Member

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.

LGTM, thanks!

Sorry, something went wrong.

Uh oh!

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

selvakannanjr reacted with laugh emoji
All reactions
  • 😄 1 reaction
@mdelapenya mdelapenya self-assigned this Jul 2, 2026
@mdelapenya mdelapenya added the bug An issue with the library label Jul 2, 2026
@mdelapenya
Merge branch 'main' into fix/openfga-remove-playground-wait-update-image
20478ba
@selvakannanjr

selvakannanjr commented Jul 2, 2026

Copy link
Copy Markdown
Contributor Author

@mdelapenya will you take care of this hereafter and merge it when ready? do I have to do anything else?

All reactions

Sorry, something went wrong.

Uh oh!

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

@mdelapenya
mdelapenya merged commit 823337f into testcontainers:main Jul 2, 2026
13 checks passed

Uh oh!

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

@mdelapenya

mdelapenya commented Jul 2, 2026

Copy link
Copy Markdown
Member

Merged, thanks for your support to Testcontainers! 🙇

selvakannanjr and rohitmane-dev-dutient reacted with hooray emoji
All reactions
  • 🎉 2 reactions

Sorry, something went wrong.

Uh oh!

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@mdelapenya mdelapenya mdelapenya approved these changes

Uh oh!

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

Assignees

@mdelapenya mdelapenya

Labels

bug An issue with the library

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

[Enhancement]: Bring openfga testcontainer module up to date

Uh oh!

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

2 participants

@selvakannanjr @mdelapenya
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 01402792 — 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.