diff --git a/src/lightning_app/CHANGELOG.md b/src/lightning_app/CHANGELOG.md index f18ce518474ad5..0b5e3a455401a0 100644 --- a/src/lightning_app/CHANGELOG.md +++ b/src/lightning_app/CHANGELOG.md @@ -22,7 +22,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/). - Fixed `DDPStrategy` import in app framework ([#16029](https://github.com/Lightning-AI/lightning/pull/16029)) - Fixed `AutoScaler` raising an exception when non-default cloud compute is specified ([#15991](https://github.com/Lightning-AI/lightning/pull/15991)) - Fixed and improvements of login flow ([#16052](https://github.com/Lightning-AI/lightning/pull/16052)) - +- Fixed detect and ignore venv ([#16056](https://github.com/Lightning-AI/lightning/pull/16056)) - Fixed the debugger detection mechanism for lightning App in VSCode ([#16068](https://github.com/Lightning-AI/lightning/pull/16068)) diff --git a/tests/tests_app/runners/test_cloud.py b/tests/tests_app/runners/test_cloud.py index b80998c14454db..407c51e0ae9ee5 100644 --- a/tests/tests_app/runners/test_cloud.py +++ b/tests/tests_app/runners/test_cloud.py @@ -53,6 +53,8 @@ _generate_works_json_web, _validate_build_spec_and_compute, ) +from lightning_app.source_code import LocalSourceCodeDir +from lightning_app.source_code.copytree import _copytree, _parse_lightningignore from lightning_app.storage import Drive, Mount from lightning_app.testing.helpers import EmptyWork from lightning_app.utilities.cloud import _get_project @@ -121,6 +123,13 @@ def project_id(): return "test-project-id" +def write_file_of_size(path, size): + os.makedirs(os.path.dirname(path), exist_ok=True) + with open(path, "wb") as f: + f.seek(size) + f.write(b"\0") + + DEFAULT_CLUSTER = "litng-ai-03"