Commit Graph

96 Commits

Author SHA1 Message Date
Adrian Wälchli 51ab51a731
User-friendly exception if root flow does not override the `run()` method (#14760) 2022-09-17 07:25:54 +01:00
Alec Merdler 71719b9960
Support Injecting Secrets into Apps Running in the Cloud (#14612)
Adds a new '--secret' flag to 'lightning run app':

lightning run app --cloud --secret MY_SECRET=my-secret-name app.py

When the Lightning App runs in the cloud, the 'MY_SECRET'
environment variable will be populated with the value of the
referenced Secret. The value of the Secret is encrypted in the
database, and will only be decrypted and accessible to the
Flow/Work processes in the cloud.

Co-authored-by: Sherin Thomas <sherin@grid.ai>
Co-authored-by: Noha Alon <nohalon@gmail.com>
Co-authored-by: thomas chaton <thomas@grid.ai>
2022-09-15 09:15:59 -04:00
Sherin Thomas 7dbd038a94
Bump lightning cloud for memory leak fix (#14697)
Bump lightning cloud for memory leak fix (#14697)
2022-09-15 17:59:12 +05:30
Neven Miculinic 75e6c9109c
[CLI] Fix cluster logs with over 5000 entries (#14458) 2022-09-15 11:05:46 +00:00
Sherin Thomas d579733b08
Lightning cloud client call with key word arguments (#14685) 2022-09-14 08:44:59 +02:00
thomas chaton c81a71c908
Lightning App Fixes from Training Studio App dev (#14532)
* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update
2022-09-13 11:43:15 -04:00
Pritam Soni 16b4644e06
feat: LAI2-10296 check if user has sufficient credits to run an app from the cli (#14285) 2022-09-13 19:19:09 +05:30
Dmitry Frolov 6e21f46fe8
[CLI] Move storage from app prefix to project/app prefix (#14583)
* Move storage from app prefix to project/app prefix: checking and legacy support

* Changelog message

Co-authored-by: Jirka Borovec <Borda@users.noreply.github.com>
2022-09-12 20:11:00 -04:00
thomas chaton 80e2f097e0
(app): Add load_state_dict and state_dict (#14100)
Co-authored-by: manskx <ahmed.mansy156@gmail.com>
Co-authored-by: Jirka Borovec <Borda@users.noreply.github.com>
Co-authored-by: Jirka <jirka.borovec@seznam.cz>
2022-09-12 18:29:23 +00:00
thomas chaton b679fc2922
(app) Resolve a bug where the state changes isn't detected properly (#14465)
Co-authored-by: Mansy <ahmed.mansy156@gmail.com>
Co-authored-by: Jirka Borovec <Borda@users.noreply.github.com>
2022-09-12 16:54:14 +00:00
thomas chaton 86fd5b22d4
(app) Make Logging DEBUG mode lazy (#14464) 2022-09-12 14:47:24 +00:00
Carlos Mocholí e859546b96
Integrate lightning_utilities `is_overridden` (#14620) 2022-09-12 15:16:57 +02:00
Carlos Mocholí 273a9ed8c1
Integrate `lightning_utilities.core.apply_func` (#14537) 2022-09-06 13:52:54 +00:00
Carlos Mocholí 44216fdd69
Integrate `lightning_utilities.core.imports` (#14475)
Co-authored-by: Adrian Wälchli <aedu.waelchli@gmail.com>
2022-09-06 12:56:20 +00:00
Mansy 1bcb5c301d
[App][CLI] Fix lightning cli --version (#14433)
* [App][CLI] Fix lightning cli --version
2022-09-01 07:58:09 +00:00
thomas chaton a7c01c4754
Introduce lightning connect (#14452)
* update

* update

* update

* update

* Review of content

* Formatting updates

* Fomatting updates

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Updates based on new commits

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* update

* update

* update

* update

* Introduce lightning connect (#14183)


Co-authored-by: Luca Antiga <luca.antiga@gmail.com>

Co-authored-by: Felonious-Spellfire <felonious.spellfire@gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Luca Antiga <luca.antiga@gmail.com>
2022-08-31 15:59:03 -04:00
Dmitry Frolov 9372981263
[CLI] Cluster logs CLI improvements: new log labels + test coverage increasing (#14459)
* Cluster logs improvements

* Unit tests added

* Labels for processing deletion errors
2022-08-30 22:22:01 -04:00
Marc Skov Madsen 18e2a8eecd
PanelFrontend and Panel Web UI Intermediate docs (#13531)
Co-authored-by: thomas chaton <thomas@grid.ai>
Co-authored-by: Adrian Wälchli <aedu.waelchli@gmail.com>
Co-authored-by: Marc Skov Madsen <masma@orsted.com>
Co-authored-by: Laverne Henderson <laverne.henderson@coupa.com>
Co-authored-by: Felonious-Spellfire <felonious.spellfire@gmail.com>
Co-authored-by: Jirka Borovec <Borda@users.noreply.github.com>
Co-authored-by: Mansy <ahmed.mansy156@gmail.com>
Co-authored-by: Jirka <jirka.borovec@seznam.cz>
2022-08-30 00:33:21 +00:00
Mansy 0e30e4a5a0
[App][CI] Fix psutil requirement CI (#14413) 2022-08-26 23:55:22 +00:00
Dmitry Frolov 2182d755c4
[CLI] Adding opportunity to see basic cluster logs (#14334)
* pinning starsessions

* pinning starsessions

* adding strict back to requirements.txt

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Duplicated

* Basic implementation

* Basic implementation

* Basic implementation

* Basic implementation

* Common things moved to log helpers file

* Decomposing logs reader classes for reusing

* Setting colors for log levels

* Manifest trimming

* Changes added to CHANGELOG

* Prettifications

* Prettifications

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Logs function name change

* Logs function name change

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* attempt to fix the pydanitc import

* Tests + command name fixes

* Extending tests

* Adding limit argument

* Unmerging CI fix

* Unmerging CI fix

* Adding fields for errors

* Adding log level fixed field width

* Adding absent typing + exeptions raising

* Adding socket error logging

* Addressing comments on cluster list function return value

* Addressing comments on adding e2e tests

* Adding version range for arrow package in reqs

* New unit tests

* arrow time parsing callback modified + unit tests

* helpers updated

* helpers updated

* helpers updated

* One more test

* CMD test fix

* CMD test fix

* CMD test fix

* CMD test fix

* CMD test fix

* LightningClient mocking

* Flaky test removed

Co-authored-by: hhsecond <sherin@grid.ai>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Jirka Borovec <Borda@users.noreply.github.com>
2022-08-23 15:48:22 -04:00
Alec Merdler 0b1a29b5eb
Remove references to local app admin view (#14306)
The local app '/admin' route is being removed because it does
not provide any value, so we need to remove references from it
in the CLI.
2022-08-19 12:29:44 -04:00
Raphael Randschau d71dba3721
BYOC: fix default types for cluster instance types (#14260) 2022-08-18 14:12:59 -07:00
Adrian Wälchli 7c329dd3ac
Warn when http URLs are configured (#14233)
* add a warning

* add test

* add test

* add changelog

* remove todo

* clarify http won't work in cloud

* Apply suggestions from code review

Co-authored-by: Sherin Thomas <sherin@grid.ai>

Co-authored-by: Jirka Borovec <Borda@users.noreply.github.com>
Co-authored-by: Sherin Thomas <sherin@grid.ai>
2022-08-17 10:17:11 -04:00
Mansy 562d22f0c8
Fix install latest version of app/component (#14181)
* fix install latest version of app/component

* Add changelog

* a better testcase

* Update src/lightning_app/CHANGELOG.md

Co-authored-by: mansy <mansy@lightning.ai>
Co-authored-by: Adrian Wälchli <aedu.waelchli@gmail.com>
2022-08-15 09:31:16 -04:00
Raphael Randschau 98ded4524f
[CLI] change cluster creation cost savings mode default (#14132)
* [CLI] change cluster creation cost savings mode default

instead of having customers opt-into cost savings mode, we'll ask them to opt-out of cost savings mode.
2022-08-11 08:19:21 -07:00
Rick Izzo 7c8c996f6a
Feature GRID-9731: Update Lightning Cloud.py Backend to Accept Drive Specs (2/2) (#14106)
initial work adding drives to create work API from framework cloud dispatcher
2022-08-11 13:22:59 +00:00
thomas chaton 6eed72b621
(app) Introduce configure_api and Post, Get, Delete, Put HttpMethods (#13945) 2022-08-11 10:35:00 +00:00
panos-is 784b60412c
(app) Add s3 drive type (1/2) (#14002)
* Add S3 protocol and optimization field to the drive object

* Add a list of drives to the work specification

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* add only protocol for s3 drives, no optimization arguments, and add tests

* added trailing slash criteria

* allow slash in s3 drives

* fix

* fixed test issues

Co-authored-by: Panos Lantavos-Stratigakis <default-email@gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Rick Izzo <rick@grid.ai>
Co-authored-by: Jirka Borovec <Borda@users.noreply.github.com>
Co-authored-by: Rick Izzo <rlizzo@users.noreply.github.com>
2022-08-10 20:07:23 +00:00
thomas chaton b8b8f033fd
(app) Run the flow only if the state has updated 1/2 (#14076) 2022-08-10 14:56:41 +02:00
thomas chaton 2f7daac4b8
Use websockets in e2es (#14138) 2022-08-10 13:17:29 +02:00
Adam Bobowski ddb476d334
[App] Application logs in CLI (#13634) 2022-08-10 09:48:06 +00:00
Raphael Randschau 619c2ff058
[CLI] fix cluster creation CLI requiring instance-type selection (#14056)
fix cluster creation CLI requiring instace-type selection

we've marked `instance_types` as `required=False`, but the CLI calls `split` on the value.
So if nothing is provided, we'll actually receive a runtime error, effectively rendering the flag as required.

Co-authored-by: thomas chaton <thomas@grid.ai>
2022-08-09 12:17:57 -07:00
thomas chaton 55ae812dbf
Resolve increased time. (#14074) 2022-08-08 15:48:50 +02:00
Rick Izzo b4ade232c8
Fix: Start Lightning App on Cloud if Repo Begins With Name "Lightning" (#14025) 2022-08-08 11:13:25 +00:00
Raphael Randschau 26d69ceada
[CLI] add support for listing apps (#13987)
* add support for listing apps

* update changelog with correct PR number

* add tests for pagination

* fix wrong mock on test_cli

* ensure all enum values are accounted for

* make AppManager and AppList protected, add limit to pagination calls

* add restarting transition /w tests

* add state transition not yet run with tests
2022-08-05 13:42:00 -07:00
Adam Bobowski 12a061f2aa
[App] Increased DeepDiff's verbose level to properly handle dict changes (#13960) 2022-08-05 07:57:00 +00:00
Raphael Randschau 341c63c2b9
[CLI] add support to run app on a specific cluster (#13894)
Add `--cluster-id` flag which can be passed to `lightning run app` if the `--cloud` flag is present.
This allows you to run your Lightning AI apps on Lightning AI BYOC clusters running on your own cloud provider infrastructure.

Co-authored-by: William Falcon <waf2107@columbia.edu>
Co-authored-by: Laverne Henderson <laverne.henderson@coupa.com>
2022-08-04 10:48:29 -07:00
Mansy b8739a0167
Deprecate sheety API (#14004)
* deprecate sheety

Co-authored-by: manskx <ahmed.mansy156@gmail.com>
2022-08-04 16:25:41 +02:00
thomas chaton 5479c60b22
Reduce state size (#13970) 2022-08-03 13:47:16 +00:00
Raphael Randschau 2919dcf7ee
[CLI] add support for cluster management (#13835) 2022-08-02 10:31:09 +02:00
thomas chaton aefb9ab43f
(app) Introduce LightningTrainingComponent (#13830) 2022-07-29 16:44:52 +02:00
thomas chaton 4c35867b61
[App] Introduce Commands (#13602) 2022-07-25 17:13:46 +00:00
Carlos Mocholí 4f53e7132f
Promote the CLI out of utilities (#13767) 2022-07-23 12:07:29 +00:00
thomas chaton d4c7f91fec
Change AWS credentials to Lightning ones (#13703) 2022-07-18 16:01:57 +02:00
Mansy dc70b6511c
Add CI for python lightning app Python unit tests (#13491)
* Update lightning_app src

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* update lightning app tests

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* add CI

* update tests

* requirements

* fix version tests

* todo

* fix tests

* fix tests

* fix tests

* fix tests

* fix formatting

Co-authored-by: mansy <mansy@lightning.ai>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: awaelchli <aedu.waelchli@gmail.com>
2022-07-01 16:28:44 -04:00
Sherin Thomas b90525b5b5
adding LAI test (#13321)
* tests

* ci

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* update tests

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

Co-authored-by: Jirka <jirka.borovec@seznam.cz>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: mansy <mansy@lightning.ai>
2022-06-30 16:43:04 -04:00