Commit Graph

261 Commits

Author SHA1 Message Date
pngwn
22df61a26a
Client node fix (#8252)
* fix client in node

* run all client tests in ci

* add changeset

* fix types

* add changeset

* format

* types

* add changeset

* format

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-05-09 12:06:28 +01:00
renovate[bot]
aedf0c8770
chore(deps): update pnpm to ~9.1.0 (#8221)
* chore(deps): update pnpm to ~9.1.0

* pin 9.1

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: freddyaboulton <alfonsoboulton@gmail.com>
2024-05-06 18:22:39 +00:00
renovate[bot]
0d2e71bed4
chore(deps): update pnpm to v9 (#8123)
* chore(deps): update pnpm to v9

* update workflow

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: pngwn <hello@pngwn.io>
2024-05-01 18:25:25 +01:00
Lê Ngọc Hoa
a0e70366a8
Update test-functional.yml - Fix vulnerability code injection (#8145)
* Update test-functional.yml

* Update test-functional.yml

* tweaks

---------

Co-authored-by: pngwn <hello@pngwn.io>
2024-05-01 14:41:27 +00:00
Yuichiro Tachibana (Tsuchiya)
611c9273a3
Lite wheel optimization (#7855)
* Add `pull_request.branches.main` as a trigger of the `publish` workflow

* [WIP] Comment out the publish steps

* Package and upload the NPM package for debug

* Skip the copy_frontend.py hook in the Lite build

* add changeset

* [WIP] Show gradio files

* [WIP] Show gradio files

* Comment out installing the gradio and gradio_client libraries

* Restore installing gradio_client because it's used by `python js/_website/generate_jsons/generate.py` that follows

* Restore installing gradio because it's used by `python js/_website/generate_jsons/generate.py` that follows

* Add code

* Revert "[WIP] Show gradio files"

This reverts commit e15fef29bd14671576e64d94d3b844786ebe7e83.

* Build the gradio wheel with the custom lite target

* add changeset

* Revert "[WIP] Show gradio files"

This reverts commit aef053f9caad203c7e1bbfa15e9f9e536f77442a.

* Revert "Skip the copy_frontend.py hook in the Lite build"

This reverts commit ca296d0e4e169adbb6af3705561869aa8c9037b7.

* Update .github/actions/install-frontend-deps/action.yml for hatch installation

* [WIP] Fix test-functional.yml and .github/actions/install-all-deps/action.yml to call the setup actions in this branch

* Revert "[WIP] Fix test-functional.yml and .github/actions/install-all-deps/action.yml to call the setup actions in this branch"

This reverts commit 571823b4a05f7e41e0b3731d51c5bd86b2e17ddc.

* Comment-in lines in publish.yml

* Move Lite build from publish.yml to deploy-spaces.yml

* Use the build_lite option of install-all-deps instead of running the build command

* [TMP] Change the branch of action files

* Fix the hatch Lite build setting

* Return pnpm pack to deploy-space

* Revert "[TMP] Change the branch of action files"

This reverts commit fe4e1c8f210eb21ac7ee1bd4b219d35e1ae84c85.

* Remove dependencies for lite build

* [TMP] Change the branch of action files

* Revert "Remove dependencies for lite build"

This reverts commit 856a858c1f49d736bfeb056ba0ec7e9bc35af29c.

* Install packaging>=23.2

* [TMP] Show packaging version

* Fix pip install

* Fix

* Uninstall packaging once

* Use `pip install -U` instead of uninstalling the exiting version

* Revert "[TMP] Show packaging version"

This reverts commit 910b6bbde3dc8777c051bd5576813913d57959f7.

* Add `-U` flag

* Set packaging version as >=23.2

* Revert the changes on pip install

* Set packaging version as >=23.2 in requirements.txt

* Revert "Set packaging version as >=23.2"

This reverts commit 8aa77c8930815e69d7256886cad88b6da8361069.

* Fix hook name

* Revert "Set packaging version as >=23.2 in requirements.txt"

This reverts commit fbd605cbfb5d06706eacc0648a2e9d7816c9de1f.

* Revert "Revert the changes on pip install"

This reverts commit 81ff38a660635fce9cb17862a2072e4d169c3466.

* Add comments

* Revert "[TMP] Change the branch of action files"

This reverts commit 0d6aa48d75a842db9b3987212deffedb0c0ca51d.

* Revert the trigger of .github/workflows/deploy-spaces.yml

* Remove unused `node_auth_token` and `npm_token` inputs from the `install-all-deps` action

* [TMP] Trigger CI based on this PR

* Remove packging installation

* Revert "Remove packging installation"

This reverts commit 4a4f18de3a.

* Revert "[TMP] Trigger CI based on this PR"

This reverts commit 6cea830c8e.

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: freddyaboulton <alfonsoboulton@gmail.com>
2024-04-30 03:18:13 +00:00
pngwn
44eb8ac6c3
ensure @gradio/preview dist files are published (#8142)
* fix build again

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-04-26 13:53:21 +00:00
pngwn
0d41b221dc
fix publish build (#8140)
* fix publish build

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-04-26 13:38:53 +01:00
renovate[bot]
f3f60dafb5
Update actionsdesk/lfs-warning action to v3.3 (#7937)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-08 10:13:44 -07:00
Freddy Boulton
755157f99c
Do not reload code inside gr.NO_RELOAD context (#7684)
* Add code

* Copy files

* I think its working

* Tidy up

* add changeset

* do not change demos

* test

* Don't copy files

* Add code

* lint

* Add reload mode e2e test

* Reload mode test

* add changeset

* add changeset

* Use NO_RELOAD

* add no reload to docs

* add changeset

* Fix docs

* handle else statements. No need to edit string

* Fix typos

* Use compile

* Do not use unparse

* notebook

* Documentation comments

* Fix top-package import without having to delete all modules

* Revert demo calculator

* Typo guides

* Fix website

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: aliabd <ali.si3luwa@gmail.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-03-21 15:59:53 -04:00
Abubakar Abid
dd3e363261
Fail CI if lint or typecheck fails (#7770)
* fail

* test

* revert

* run shebang

* fix

* fixes

* add changeset

* changes

* bash

* not required

* file

* textbox

* add changeset

* changes to demo

* notebook

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-03-21 11:34:56 -04:00
Abubakar Abid
1e45aefde5
switch python version to 3.8 (#7700) 2024-03-14 10:42:55 -07:00
Ali Abdalla
82263ed365
add client wheel (#7612) 2024-03-05 11:00:18 -08:00
pngwn
fc04eed704
fix (#7596) 2024-03-04 14:31:47 +00:00
pngwn
b52997635a
fix ci (#7595) 2024-03-04 14:20:30 +00:00
pngwn
561579d9b7
fix-tests (#7345)
* fix-tests

* [tmp] Comment-out

* Fix the URL constructor calls in `resolve_wasm_src()`, `should_proxy_wasm_src()`, and `<DownloadLink />` to handle relative URLs

* Remove a circular dependency between lite/index.ts and lite/custom-element/index.ts to solve a bug that the dev app is mounted twice sometimes

* Fix js/app/test/image_component_events.spec.ts

* Set the `testIgnore` in `.config/playwright.config.js`

* Fix the Lite dev mode only to create an app and expose the controller for Playwright, without editors etc.

* add changeset

* Set the mocked ruff version as 0.2.2

* Extend timeout

* Fix to use the built lite files instead of the dev server

* add changeset

* comment out failed tests

* Revert "comment out failed tests"

This reverts commit 3580d79887.

* Fix the Gellery component to work in Wasm

* Fix js/app/test/file_explorer_component_events.spec.ts to run on Wasm

* Ignore queue_full_e2e_test.spec.ts

* Revert "[tmp] Comment-out"

This reverts commit c775c0cc29.

* Revert "Extend timeout"

This reverts commit 742d1e1e83.

* Remove a commented out line

* Refactor file_explorer_component_events.spec.ts

* Revert "fix-tests", restoring the original test-functional.yml content

This reverts commit 9ff2a7ddc5.

* Set CI step names

* [tmp] Revert "Revert "fix-tests", restoring the original test-functional.yml content"

This reverts commit de2dbe3317.

* Revert "[tmp] Revert "Revert "fix-tests", restoring the original test-functional.yml content""

This reverts commit 32154f3bb1.

* [tmp] Revert "Revert "[tmp] Revert "Revert "fix-tests", restoring the original test-functional.yml content"""

This reverts commit 204075e190.

* Fix vite.config.js removing unnecessary code

* Revert "Set the `testIgnore` in `.config/playwright.config.js`"

This reverts commit 98dccc5be9.

* Add gallery_component_events.spec.ts

* Revert js/app/test

* tweak

* tweak

* revert workflow changes

* add changeset

---------

Co-authored-by: Yuichiro Tachibana (Tsuchiya) <t.yic.yt@gmail.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-03-04 14:03:46 +00:00
renovate[bot]
ba1459afd9
chore(deps): update chromaui/action action to v11 (#7514)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-02-23 10:35:31 -08:00
Abubakar Abid
06b30ce277
More CI stuff: remove force install (#7462)
* update httpx requirement

* add changeset

* add to client

* add changeset

* fix version

* reorder

* test

* try force reinstall

* change

* reorder action

* remove force

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-02-16 15:33:20 -08:00
Abubakar Abid
a4c307bc2c
Reorder action (#7461)
* update httpx requirement

* add changeset

* add to client

* add changeset

* fix version

* reorder

* test

* try force reinstall

* change

* reorder action

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-02-16 15:27:33 -08:00
pngwn
805a5136a1
fix test reqs in functional tests (#7454) 2024-02-16 17:27:07 +00:00
renovate[bot]
a6371bbcae
chore(deps): update dorny/paths-filter action to v3 (#7418)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-15 16:04:27 -05:00
Abubakar Abid
547517b74e
Small PR to move generate_notebooks.py to scripts folder (#7400)
* move generate_notebooks.py to scripts folder

* generate notebooks

* final? fix
2024-02-13 09:05:19 -08:00
pngwn
d56bb28df8
fix spaces comment and remove echos (#7373)
* remove unnecessary condition for deployment workflow

* remove unnecessary echo statements in GitHub Actions workflows

* fix website ci

* add condition to only run comment-spaces-start workflow if changes workflow outputs 'should_run' as 'true'
2024-02-09 18:01:44 +00:00
pngwn
a6d9f3bb3c
chore: update user mentions and log ci (#7371) 2024-02-09 13:52:12 +00:00
pngwn
e3b302dc01
fix again (#7346) 2024-02-07 15:41:20 +00:00
pngwn
62488923ac
fix ci (#7341)
* fix ci

* disable lite tests
2024-02-07 15:35:29 +00:00
pngwn
5b45a162b3
Fix lite tests (#7343)
* fix-tests

* fix-tests

* fix-tests

* fix-tests

* fix-tests
2024-02-07 15:05:55 +00:00
pngwn
0db7272694
Fix lite tests (#7342)
* fix-tests

* fix-tests

* fix-tests

* fix-tests

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-02-07 14:57:52 +00:00
Yuichiro Tachibana (Tsuchiya)
cccab27fe8
E2E tests for Lite (#6890)
* Set up E2E test config for lite

* Use the same Page instance for all the tests in the case of lite

* Fix reading demo files

* Fix config

* Install requirements based on `requirements.txt`

* Add the "loaded" event dispatched from the main component to make a promise wait for the compoonent to be loaded

* Refactor js/tootils/src/index.ts

* Add testIgnore for lite

* Fix chatbot_multimodal.spec.ts

* Stop raising an exception when trying to cache examples but just show warning

* Update comment

* Mark the test slow when the page is initialized in it

* Add logs

* Set timeout

* add changeset

* Add the CI file .github/workflows/test-lite.yml

* Add E2E testing for Lite to the test-functional job

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-02-06 23:46:54 -08:00
pngwn
59c50811fb
improve visual ci config (#7275)
* fix

* fix
2024-02-01 20:09:01 +00:00
pngwn
d901b7c807
fix (#7273) 2024-02-01 19:39:12 +00:00
Aarni Koskela
5d24c356f8
CI: update GitHub Actions versions (#7249)
Co-authored-by: pngwn <hello@pngwn.io>
2024-02-01 18:14:41 +00:00
pngwn
9fa0a1ce1c
fix (#7268) 2024-02-01 17:08:08 +00:00
pngwn
f1e1c2083c
Fix ci cache (#7262)
* fix

* fix

* fix

* format tweaks

* add changeset

* tweaks

* tweaks

* tweaks

* tweaks

* tweaks

* tweaks

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-02-01 13:27:54 +00:00
pngwn
e983c1c80e
Fix ci cache (#7261)
* fix

* fix

* fix

* format tweaks

* add changeset

* tweaks

* tweaks

* tweaks

* tweaks

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-02-01 13:15:15 +00:00
pngwn
5df96c5b09
Fix ci cache (#7260)
* fix

* fix

* fix

* format tweaks

* add changeset

* tweaks

* tweaks

* tweaks

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-02-01 13:07:03 +00:00
pngwn
c37af22ffe
Fix ci cache (#7259)
* fix

* fix

* fix

* format tweaks

* add changeset

* tweaks

* tweaks

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-02-01 12:56:35 +00:00
pngwn
09257ef1f1
Fix ci cache (#7256)
* fix

* fix

* fix

* format tweaks

* add changeset

* tweaks

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-02-01 12:49:48 +00:00
pngwn
93728da3ba
Fix ci cache (#7254)
* fix

* fix

* fix
2024-02-01 11:22:55 +00:00
pngwn
dca6068bac
Fix ci cache (#7253)
* fix

* fix
2024-02-01 11:20:55 +00:00
pngwn
fb09d6b3fb
fix (#7252) 2024-02-01 11:18:22 +00:00
pngwn
0b09e1bb2f
Debug ci 2 (#7251)
* changes

* fix

* fix
2024-02-01 10:34:22 +00:00
pngwn
22188e922b
Debug ci 2 (#7250)
* changes

* fix
2024-02-01 10:24:15 +00:00
pngwn
46f2ffc99d
fixes (#7248) 2024-02-01 02:10:34 +00:00
pngwn
6bfb375d20
Fix ciasdasd (#7246)
* fixes

* asdasd

* fixes

* fixes
2024-02-01 01:39:27 +00:00
pngwn
213650b92b
Fix ciasdasd (#7245)
* fixes

* asdasd

* fixes
2024-02-01 01:26:19 +00:00
pngwn
43579539a9
Fix ciasdasd (#7244)
* fixes

* asdasd
2024-02-01 01:14:27 +00:00
pngwn
d1b5c7a946
fixes (#7243) 2024-02-01 01:06:39 +00:00
pngwn
4cfd8dcde8
Make ci work (#7233)
* update ci

* test

* test

* test

* test

* test

* test

* test

* test

* editable install

* editable install

* escape backslashes for bash

* escape backslashes for bash

* only generate website json in linux

* that was stupiud

* check ci still works

* please work

* pretty please?

* errr

* now?

* more

* more

* more

* deploy space

* deploy space

* tweaks

* changes

* tweaks

* tweaks

* tweaks

* tweaks

* tweaks

* final tweaks

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-02-01 00:46:55 +00:00
renovate[bot]
59b9715f82
chore(deps): update 8bitjonny/gh-get-current-pr action to v3 (#7232)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-31 09:54:08 -08:00
pngwn
572e360fff
Upload tweak (#7206)
* make uploadprogress display consistently in custom components

* add engines

* add changeset

* add changeset

* bump ci pnpm version

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-01-29 14:53:54 +00:00