Skip to content
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

[ci][web] Run integration tests in wasm. #8111

Draft
wants to merge 17 commits into
base: main
Choose a base branch
from

Conversation

ditman
Copy link
Member

@ditman ditman commented Nov 16, 2024

This PR runs the integration tests in web packages using Wasm.

(This should fail, because packages need a further migration review like this one)

Pre-launch Checklist

If you need help, consider asking for advice on the #hackers-new channel on Discord.

Copy link
Member Author

@ditman ditman left a comment

Choose a reason for hiding this comment

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

Changes are required, do not merge as is.

"--exclude=script/configs/exclude_integration_web_wasm.yaml"
]

# DO NOT PUSH THIS FILE! Temporarily changed to test --wasm without waiting for CI
Copy link
Member Author

Choose a reason for hiding this comment

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

Do not push!

.ci.yaml Outdated Show resolved Hide resolved
// Give the browser some time to perform DOM operations (for Wasm code)
await tester.pump(const Duration(milliseconds: 500));
Copy link
Member Author

Choose a reason for hiding this comment

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

Talk to @eyebrowsoffire about this new delay.

Copy link
Member Author

Choose a reason for hiding this comment

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

We discussed this, the skwasm renderer is now async, so it makes sense that there's some timing differences compared to the JS one. Needing this additional delay is probably caused by the tester not being aware of this asynchronicity, and declaring a frame "pumped" before it's really been fully rendered.

@ditman ditman force-pushed the run-web-integration-wasm branch from 420958b to 598ed80 Compare December 23, 2024 23:28
@ditman
Copy link
Member Author

ditman commented Dec 24, 2024

[0:00] Running for packages/animations...
  No version change.
  Found NEXT; validating next version in the CHANGELOG.
No CHANGELOG change found.
If this PR needs an exemption from the standard policy of listing all changes in the CHANGELOG,
comment in the PR to explain why the PR is exempt, and add (or ask your reviewer to add) the
"override: no changelog needed" label.
Otherwise, please add a NEXT entry in the CHANGELOG as described in the contributing guide.

The only change to packages/animations is the .gitignore, which is having a flutter fix that I introduced in May 2022 (here). No need to version anything, it's purely repo related.

@ditman ditman added the override: no changelog needed Override the check requiring CHANGELOG updates for most changes label Dec 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant