Skip to content

Conversation

@JonasPammer
Copy link
Contributor

@JonasPammer JonasPammer commented Aug 20, 2025

Original, Upstream Open Issue: testcontainers/testcontainers-java#3998

The other upstream solution that was suggested, i.e. testcontainers/testcontainers-java#577, seemed way out of bound / too big of a change (that also relies on internals and commands, i.e. volitale to flv.py changes) to hack into here

i also tried a non-reflection attempt, i.e. to manage an own vnc and disable the container's interbound one -- https://gitkraken.dev/link/drafts/3d723754-a136-45c9-bb6f-8cad74600a88?type=patch. but decided to commit this here for comments.

i know reflection code will have a low chance. but at least this also contains a test one could add with Spock-Annotation of "Fails right now".

Edit: Closes #14331

Copy link
Contributor

@jdaugherty jdaugherty left a comment

Choose a reason for hiding this comment

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

Thank you @JonasPammer & Great Work Around!

My only concern is not cleaning up the recordings - can we clean those up unless some setting is set? Otherwise, running grails tests locally will constantly add more recordings.

@cbmarcum
Copy link
Contributor

@JonasPammer Thank you for working on this.

@JonasPammer
Copy link
Contributor Author

matrei and others added 3 commits August 28, 2025 16:08
The system property
`grails.geb.recording.restartRecordingContainerPerTest`
was explicitly set to `true` for tests, but this is now
the default behavior, so the explicit setting is no longer
needed.
Delete all but the two most recent recording directories
as part of the build to avoid unnecessary disk usage.
# Conflicts:
#	grails-geb/src/testFixtures/groovy/grails/plugin/geb/GebRecordingTestListener.groovy
#	grails-geb/src/testFixtures/groovy/grails/plugin/geb/WebDriverContainerHolder.groovy
Restore Slf4j logging lost in the merge
@matrei matrei changed the title monkeypatchingly fix #14331 by restarting vnc container (geb) Restart Geb VNC Container for each Test in a Spec to get correct recordings Aug 29, 2025
@matrei matrei merged commit c3f99a7 into apache:7.0.x Aug 29, 2025
33 checks passed
@github-project-automation github-project-automation bot moved this from In Progress to Done in Apache Grails Aug 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

All recording files are the same (4.1.1)

5 participants