Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
cca7698
add integration test tldr
justusschock Feb 6, 2023
f99510c
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Feb 6, 2023
74b1fb2
add integration test tldr
justusschock Feb 6, 2023
6578415
Merge remote-tracking branch 'origin/integration_tests/tldr' into int…
justusschock Feb 6, 2023
c558623
add integration test tldr
justusschock Feb 6, 2023
eaf1fa7
add integration test tldr
justusschock Feb 6, 2023
361d0fe
add integration test tldr
justusschock Feb 6, 2023
c5a608a
add integration test tldr
justusschock Feb 6, 2023
52aacc5
add integration test tldr
justusschock Feb 6, 2023
5882e1c
add integration test tldr
justusschock Feb 6, 2023
24cee0e
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Feb 6, 2023
95d930d
add integration test tldr
justusschock Feb 6, 2023
3652168
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Feb 6, 2023
d8c793e
add integration test tldr
justusschock Feb 7, 2023
7a869b1
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Feb 7, 2023
72d5004
add integration test tldr
justusschock Feb 7, 2023
1fdd484
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Feb 7, 2023
8feea59
add integration test tldr
justusschock Feb 7, 2023
133b34b
add integration test tldr
justusschock Feb 7, 2023
1cf2798
add integration test tldr
justusschock Feb 7, 2023
79a4ec2
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Feb 7, 2023
739773a
add integration test tldr
justusschock Feb 8, 2023
e9e9b9b
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Feb 8, 2023
a7144c1
add integration test tldr
justusschock Feb 8, 2023
ec3995d
add integration test tldr
justusschock Feb 8, 2023
b38c36e
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Feb 8, 2023
2edc907
add integration test tldr
justusschock Feb 8, 2023
776c5ae
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Feb 8, 2023
2152572
add integration test tldr
justusschock Feb 8, 2023
6d425d3
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Feb 8, 2023
ee8c22d
add integration test tldr
justusschock Feb 8, 2023
85d8c95
add integration test tldr
justusschock Feb 8, 2023
983a9d2
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Feb 8, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 12 additions & 3 deletions .github/workflows/_flagship-apps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,10 @@ jobs:
fail-fast: false
matrix:
include:
- {app: "flashy", repo: "Lightning-Universe/Flashy-app"}
- {app: "muse", repo: "Lightning-Universe/stable-diffusion-deploy"}
- {app: "jupyter", repo: "Lightning-Universe/Jupyter-component"}
- {app: "flashy", repo: "Lightning-Universe/Flashy-app", requirements: ''}
- {app: "muse", repo: "Lightning-Universe/stable-diffusion-deploy", requirements: ''}
- {app: "jupyter", repo: "Lightning-Universe/Jupyter-component", requirements: ''}
- {app: "tldr", repo: "Lightning-Universe/TLDR-component", requirements: 'tests/requirements.txt'}

# TODO:
# - Training Studio
Expand Down Expand Up @@ -89,6 +90,14 @@ jobs:

- name: Install Lightning package
run: pip install -e .[cloud,test] -f $TORCH_URL

- name: Install Repo
run: pip install -e ./tests/_flagship-app

- name: Install Flagship Test Requirements
run: pip install -r ./tests/_flagship-app/${{ matrix.requirements }}
if: ${{ matrix.requirements }}

- name: List pip dependency
run: pip --version && pip list

Expand Down
37 changes: 37 additions & 0 deletions tests/integrations_app/flagship/test_tldr.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
from time import sleep

from integrations_app.flagship import _PATH_INTEGRATIONS_DIR

from lightning.app.testing.testing import run_app_in_cloud


def test_app_in_cloud():

with run_app_in_cloud(_PATH_INTEGRATIONS_DIR, "dummy_test_app.py") as (
_,
view_page,
fetch_logs,
name,
):

# Validate the logs.
has_logs = False
while not has_logs:
logs = list(fetch_logs("multinode.ws.0"))
for log in logs:
if "`Trainer.fit` stopped: `max_epochs=2` reached." in log:
has_logs = True
sleep(1)

expected_strings = [
# don't include values for actual hardware availability as this may depend on environment.
"GPU available: ",
"All distributed processes registered.",
"674 K Trainable params\n0 Non - trainable params\n674 K Total params\n2.699 Total estimated model params size(MB)",
"Epoch 0:",
"`Trainer.fit` stopped: `max_epochs=2` reached.",
"Input text:Input text:\n summarize: ML Ops platforms come in many flavors from platforms that train models",
]

for curr_str in expected_strings:
assert any([curr_str in line for line in logs])