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
fix-tests #7345
Conversation
🪼 branch checks and previews
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" |
🦄 change detectedThis Pull Request includes changes to the following packages.
With the following changelog entry.
Maintainers or the PR author can modify the PR title to modify this entry.
|
8b49ef1
to
ef6f404
Compare
ef6f404
to
c775c0c
Compare
…wasm_src()`, and `<DownloadLink />` to handle relative URLs
…ement/index.ts to solve a bug that the dev app is mounted twice sometimes
… for Playwright, without editors etc.
15d3874
to
d047a9e
Compare
fd96622
to
640ec99
Compare
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. |
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. |
Anyway, the test passed after several trials 👍 . |
…nal.yml content" This reverts commit de2dbe3.
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). |
…-functional.yml content"" This reverts commit 32154f3.
There was a problem hiding this 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.
8a39588
to
90b99b5
Compare
90b99b5
to
89b67f2
Compare
Thanks! |
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
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
You may need to run the linters:
bash scripts/format_backend.sh
andbash scripts/format_frontend.sh