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

Reduce test flakiness #8947

Merged
merged 4 commits into from
Feb 5, 2024
Merged

Reduce test flakiness #8947

merged 4 commits into from
Feb 5, 2024

Conversation

farmaazon
Copy link
Contributor

@farmaazon farmaazon commented Feb 2, 2024

Pull Request Description

Probably fixes the first point in #8942

My guess is that the mockExpressionUpdate may be not set in cases when the test runs before App mounting. To make sure all the setup is done, we wait for App widget to being mounted before proceeding.

Important Notes

This PR also change the way we run test's server. Before it was always a production build, but this makes development iteration long. Now we test production build only on CI or when PROD=true env variable is set.

Checklist

Please ensure that the following checklist has been satisfied before submitting the PR:

  • The documentation has been updated, if necessary.
  • Screenshots/screencasts have been attached, if there are any visual changes. For interactive or animated visual changes, a screencast is preferred.
  • All code follows the
    Scala,
    Java,
    and
    Rust
    style guides. In case you are using a language not listed above, follow the Rust style guide.
  • All code has been tested:
    • Unit tests have been written where possible.
    • If GUI codebase was changed, the GUI was tested when built using ./run ide build.

@farmaazon farmaazon added CI: No changelog needed Do not require a changelog entry for this PR. --bug Type: bug -gui labels Feb 2, 2024
@farmaazon farmaazon self-assigned this Feb 2, 2024
Copy link
Contributor

mergify bot commented Feb 2, 2024

⚠️ The sha of the head commit of this PR conflicts with #8946. Mergify cannot evaluate rules on this PR. ⚠️

@farmaazon farmaazon marked this pull request as ready for review February 5, 2024 09:54
@farmaazon farmaazon added the CI: Ready to merge This PR is eligible for automatic merge label Feb 5, 2024
@mergify mergify bot merged commit fa4b980 into develop Feb 5, 2024
25 of 27 checks passed
@mergify mergify bot deleted the wip/farmaazon/test-fixes branch February 5, 2024 14:20
MichaelMauderer pushed a commit that referenced this pull request Feb 6, 2024
Probably fixes the first point in #8942

My guess is that the mockExpressionUpdate may be not set in cases when the test runs before App mounting. To make sure all the setup is done, we wait for `App` widget to being mounted before proceeding.

# Important Notes
This PR also change the way we run test's server. Before it was always a production build, but this makes development iteration long. Now we test production build only on CI or when `PROD=true` env variable is set.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
--bug Type: bug -gui CI: No changelog needed Do not require a changelog entry for this PR. CI: Ready to merge This PR is eligible for automatic merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants