Skip to content

[test] Remove manually_trigger_reftest option. NFC #22665

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

Merged
merged 1 commit into from
Oct 2, 2024

Conversation

sbc100
Copy link
Collaborator

@sbc100 sbc100 commented Oct 1, 2024

This option was only being used by 5 tests. These 5 tests are all for SDL_image and they seem to work perfectly fine with automatic reftest which happens when the application is done

@sbc100 sbc100 requested review from kripken and brendandahl October 1, 2024 21:25
@sbc100 sbc100 force-pushed the manually_trigger_reftest branch 2 times, most recently from 673b9d5 to dba72ec Compare October 1, 2024 21:38
@@ -2215,6 +2213,7 @@ def make_reftest(self, expected, manually_trigger=False):
function doReftest() {
if (doReftest.done) return;
doReftest.done = true;
console.log('doReftest');
Copy link
Member

Choose a reason for hiding this comment

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

temporary debugging?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I'm happy to leave this.. seems useful for debugging.

Copy link
Member

Choose a reason for hiding this comment

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

Sounds good.

This option was only being used by 5 tests.  These 5 tests are all for
SDL_image and they seem to work perfectly fine with automatic reftest
which happens when the application is done
@sbc100 sbc100 force-pushed the manually_trigger_reftest branch from dba72ec to 142f070 Compare October 1, 2024 22:54
@sbc100 sbc100 enabled auto-merge (squash) October 2, 2024 00:13
@sbc100 sbc100 merged commit 649e86a into emscripten-core:main Oct 2, 2024
28 checks passed
@sbc100 sbc100 deleted the manually_trigger_reftest branch October 2, 2024 00:53
sbc100 added a commit to sbc100/emscripten that referenced this pull request Oct 2, 2024
In emscripten-core#22665 I removed the manually_trigger_reftest. However this resulted
in racey behaviour in some tests.  It turns out that running `doReftest`
during `postRun` was working, but only because `doReftest` itself
was doing async work, thus delaying the actual capture of the canvas
bits.

This change re-instates the behaviour but without the need to test
setting in python.
sbc100 added a commit to sbc100/emscripten that referenced this pull request Oct 2, 2024
In emscripten-core#22665 I removed the manually_trigger_reftest. However this resulted
in racey behaviour in some tests.  It turns out that running `doReftest`
during `postRun` was working, but only because `doReftest` itself
was doing async work, thus delaying the actual capture of the canvas
bits.

This change re-instates the behaviour but without the need to test
setting in python.
sbc100 added a commit to sbc100/emscripten that referenced this pull request Oct 2, 2024
In emscripten-core#22665 I removed the manually_trigger_reftest. However this resulted
in racey behaviour in some tests.  It turns out that running `doReftest`
during `postRun` was working, but only because `doReftest` itself
was doing async work, thus delaying the actual capture of the canvas
bits.

This change re-instates the behaviour but without the need to test
setting in python.
sbc100 added a commit to sbc100/emscripten that referenced this pull request Oct 2, 2024
In emscripten-core#22665 I removed the manually_trigger_reftest. However this resulted
in racey behaviour in some tests.  It turns out that running `doReftest`
during `postRun` was working, but only because `doReftest` itself
was doing async work, thus delaying the actual capture of the canvas
bits.

This change re-instates the behaviour but without the need to test
setting in python.
sbc100 added a commit to sbc100/emscripten that referenced this pull request Oct 2, 2024
In emscripten-core#22665 I removed the manually_trigger_reftest. However this resulted
in racey behaviour in some tests.  It turns out that running `doReftest`
during `postRun` was working, but only because `doReftest` itself
was doing async work, thus delaying the actual capture of the canvas
bits.

This change re-instates the behaviour but without the need to test
setting in python.
sbc100 added a commit that referenced this pull request Oct 2, 2024
…22672)

In #22665 I removed the manually_trigger_reftest. However this resulted
in racey behaviour in some tests. It turns out that running `doReftest`
during `postRun` was working, but only because `doReftest` itself was
doing async work, thus delaying the actual capture of the canvas bits.

This change re-instates the behaviour but without the need to test
setting in python.
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.

2 participants