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

fix-tests #7345

Merged
merged 39 commits into from Mar 4, 2024
Merged

fix-tests #7345

merged 39 commits into from Mar 4, 2024

Conversation

pngwn
Copy link
Member

@pngwn pngwn commented Feb 7, 2024

Description

Please include a concise summary, in clear English, of the changes in this pull request. If it closes an issue, please mention it here.

Closes: #(issue)

🎯 PRs Should Target Issues

Before your create a PR, please check to see if there is an existing issue for this change. If not, please create an issue before you create this PR, unless the fix is very small.

Not adhering to this guideline will result in the PR being closed.

Tests

  1. PRs will only be merged if tests pass on CI. To run the tests locally, please set up your Gradio environment locally and run the tests: bash scripts/run_all_tests.sh

  2. You may need to run the linters: bash scripts/format_backend.sh and bash scripts/format_frontend.sh

@gradio-pr-bot
Copy link
Contributor

gradio-pr-bot commented Feb 7, 2024

🪼 branch checks and previews

Name Status URL
Spaces ready! Spaces preview
Website ready! Website preview
Storybook failed! Details
🦄 Changes detecting...

Install Gradio from this PR

pip install https://gradio-builds.s3.amazonaws.com/cc76deb08dc62e6a90e978340839f0be4a9d83b2/gradio-4.19.2-py3-none-any.whl

Install Gradio Python Client from this PR

pip install "gradio-client @ git+https://github.com/gradio-app/gradio@cc76deb08dc62e6a90e978340839f0be4a9d83b2#subdirectory=client/python"

@gradio-pr-bot
Copy link
Contributor

gradio-pr-bot commented Feb 7, 2024

🦄 change detected

This Pull Request includes changes to the following packages.

Package Version
@gradio/app patch
@gradio/lite patch
@gradio/tootils patch
@gradio/wasm patch
gradio patch
  • Maintainers can select this checkbox to manually select packages to update.

With the following changelog entry.

fix-tests

Maintainers or the PR author can modify the PR title to modify this entry.

Something isn't right?

  • Maintainers can change the version label to modify the version bump.
  • If the bot has failed to detect any changes, or if this pull request needs to update multiple packages to different versions or requires a more comprehensive changelog entry, maintainers can update the changelog file directly.

@pngwn pngwn marked this pull request as draft February 7, 2024 15:33
@whitphx
Copy link
Member

whitphx commented Feb 21, 2024

I think Lite's E2E tests should be run on a separate CI job because the functional tests take a long time and randomly fail.

@pngwn
Copy link
Member Author

pngwn commented Feb 21, 2024

I think Lite's E2E tests should be run on a separate CI job because the functional tests take a long time and randomly fail.

This is something we should fix rather than adding complexity to the Ci to workaround. I am aware of that failing test and looking into it.

@whitphx
Copy link
Member

whitphx commented Feb 21, 2024

That's correct about the random failures, but parallel execution is a right solution for long-running tests in general, not a workaround. It's not complex.

@whitphx
Copy link
Member

whitphx commented Feb 21, 2024

Anyway, the test passed after several trials 👍 .
The job failed because the do check step fails as it refers to the changes job which is temporarily removed in this PR.

@whitphx
Copy link
Member

whitphx commented Feb 21, 2024

Commit 32154f3 to trigger the CI using the changes in this PR. Will revert it after confirming it works.

Update: Reverted. It worked well (https://github.com/gradio-app/gradio/actions/runs/7991559044/job/21823007428).

Copy link
Member Author

@pngwn pngwn left a comment

Choose a reason for hiding this comment

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

I mentioned this somewhere else, but we don't need to run all of the functional tests, most of them test similar code paths and don't really give us much additional info.

The test I added via playwright's test match are sufficient as those tests include the kitchen sink which covers the majority of the API surface area. The lite tests are significantly slower than the normal functional tests, so as we add more it will make things much worse than expected and it is much easier to maintain and include list than an ignore list.

This also means we can get rid of the lite specific flags in the test code.

If you think there are any specific tests worth running against lite then feel free to include those as well.

We can review this over time if specific bugs seem to recur.

… original test-functional.yml content"""

This reverts commit 204075e.
@whitphx whitphx force-pushed the run-lite-tests branch 2 times, most recently from 8a39588 to 90b99b5 Compare February 23, 2024 08:07
@whitphx
Copy link
Member

whitphx commented Feb 23, 2024

@pngwn Ok, done.

If it's ok, revert 95b2ee6 before merging.

@whitphx whitphx mentioned this pull request Mar 1, 2024
@pngwn pngwn added the v: patch A change that requires a patch release label Mar 4, 2024
@pngwn pngwn merged commit 561579d into main Mar 4, 2024
6 of 7 checks passed
@pngwn pngwn deleted the run-lite-tests branch March 4, 2024 14:03
@pngwn pngwn mentioned this pull request Mar 3, 2024
@whitphx
Copy link
Member

whitphx commented Mar 5, 2024

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
v: patch A change that requires a patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants