Skip to content
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

LAI: creating mirror package #15105

Merged
merged 146 commits into from
Oct 27, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
146 commits
Select commit Hold shift + click to select a range
c119c8c
placeholder
Borda Oct 12, 2022
1d178ed
mirror + prune
Borda Oct 13, 2022
19a6917
makedir
Borda Oct 13, 2022
a73ce2f
setup
Borda Oct 13, 2022
fc01887
ci
Borda Oct 13, 2022
df8794a
ci
Borda Oct 13, 2022
ccbe4fd
name
Borda Oct 13, 2022
11744df
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Oct 13, 2022
c6d4d91
ci clean
Borda Oct 13, 2022
f6feaaa
Merge branch 'pkg/lai-source' of https://github.com/PyTorchLightning/…
Borda Oct 13, 2022
36e9c04
empty
Borda Oct 13, 2022
972b509
py
Borda Oct 13, 2022
4acc2df
parallel
Borda Oct 13, 2022
d4294b6
doctest
Borda Oct 13, 2022
b7a6469
flake8
Borda Oct 13, 2022
4fc4fc5
ci
Borda Oct 13, 2022
f03aa13
typo
Borda Oct 13, 2022
170858d
Merge branch 'master' into pkg/lai-source
Borda Oct 13, 2022
3110638
replace
Borda Oct 13, 2022
3b4b535
clean
Borda Oct 13, 2022
d3d838d
Apply suggestions from code review
Borda Oct 13, 2022
254d474
Merge branch 'master' into pkg/lai-source
Borda Oct 13, 2022
0a7e804
re.sub
Borda Oct 13, 2022
c181544
fix UI path
Borda Oct 13, 2022
2285871
full replace
Borda Oct 13, 2022
d7f3c8a
ui path?
Borda Oct 13, 2022
f31153f
Merge branch 'master' into pkg/lai-source
Borda Oct 20, 2022
0a17aba
replace
Borda Oct 20, 2022
afdcbda
Merge branch 'master' into pkg/lai-source
Borda Oct 21, 2022
0e1ce58
Merge branch 'master' into pkg/lai-source
Borda Oct 22, 2022
12899be
Merge branch 'master' into pkg/lai-source
Borda Oct 22, 2022
995c6e9
Merge branch 'master' into pkg/lai-source
Borda Oct 23, 2022
128b577
updates
Borda Oct 23, 2022
5b1acfc
regex
Borda Oct 23, 2022
ac20d05
ci
Borda Oct 23, 2022
20b7045
fix
Borda Oct 23, 2022
f196539
ci
Borda Oct 23, 2022
27a223c
path
Borda Oct 23, 2022
a2dded9
ci
Borda Oct 23, 2022
db2af8b
replace
Borda Oct 23, 2022
85e3bb5
Merge branch 'master' into pkg/lai-source
Borda Oct 24, 2022
8bd7114
Update .actions/setup_tools.py
justusschock Oct 24, 2022
6a503f9
also convert lightning_lite tests for PL tests to adapt mocking paths
justusschock Oct 24, 2022
26801bc
fix app example test
manskx Oct 24, 2022
cba7e16
Merge branch 'pkg/lai-source' of github.com:Lightning-AI/lightning in…
manskx Oct 24, 2022
4ef9c8e
Merge branch 'master' into pkg/lai-source
justusschock Oct 24, 2022
de6b9b1
update logger propagation for PL tests
justusschock Oct 24, 2022
c1a5e11
update logger propagation for PL tests
justusschock Oct 24, 2022
352cc0e
Merge branch 'master' into pkg/lai-source
Borda Oct 24, 2022
3a55416
Apply suggestions from code review
Borda Oct 24, 2022
0ce862e
Revert "update logger propagation for PL tests"
justusschock Oct 24, 2022
543b197
Merge remote-tracking branch 'origin/pkg/lai-source' into pkg/lai-source
justusschock Oct 24, 2022
391d0c4
playwright
Borda Oct 24, 2022
1a63da2
py
Borda Oct 24, 2022
9330b9d
update import in tests
manskx Oct 24, 2022
67b6ea1
Merge branch 'master' into pkg/lai-source
justusschock Oct 24, 2022
cbb1658
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Oct 24, 2022
c02f766
try edit import in overwrite
Borda Oct 24, 2022
70fca84
debug code
manskx Oct 24, 2022
d57ad8a
Merge remote-tracking branch 'origin/pkg/lai-source' into pkg/lai-source
manskx Oct 24, 2022
a97bfd6
rev playwright
Borda Oct 24, 2022
a3fbc75
Revert "try edit import in overwrite"
Borda Oct 24, 2022
da7c3ff
Merge branch 'master' into pkg/lai-source
Borda Oct 24, 2022
51879cd
ci: adjust examples
Borda Oct 24, 2022
43c63c8
adjust examples cloud
manskx Oct 24, 2022
bed45f0
Merge remote-tracking branch 'origin/pkg/lai-source' into pkg/lai-source
manskx Oct 24, 2022
65166d9
mock lightning_app
manskx Oct 24, 2022
4821742
Install assistant dependencies
manskx Oct 24, 2022
ed703f5
lightning
Borda Oct 24, 2022
8c5e8b2
setup
Borda Oct 24, 2022
7e99e8f
Merge branch 'master' into pkg/lai-source
carmocca Oct 24, 2022
831073a
Apply suggestions from code review
Borda Oct 24, 2022
ccfe7f8
Apply suggestions from code review
Borda Oct 24, 2022
68fea9d
Apply suggestions from code review
Borda Oct 24, 2022
bf375b4
disable cache
manskx Oct 25, 2022
80dab9d
move doctest to install
Borda Oct 25, 2022
3651cc7
Merge branch 'pkg/lai-source' of https://github.com/PyTorchLightning/…
Borda Oct 25, 2022
2ecc1d6
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Oct 25, 2022
79362fd
)
Borda Oct 25, 2022
775bfdd
Merge branch 'pkg/lai-source' of https://github.com/PyTorchLightning/…
Borda Oct 25, 2022
7325f7d
Merge branch 'master' into pkg/lai-source
Borda Oct 25, 2022
75d080b
echo ./
Borda Oct 25, 2022
974b58f
ci
Borda Oct 25, 2022
5bdaeab
lru
Borda Oct 25, 2022
c682893
revert disabling cache, prints
manskx Oct 25, 2022
8602e72
Merge remote-tracking branch 'origin/pkg/lai-source' into pkg/lai-source
manskx Oct 25, 2022
29aca4c
ci
Borda Oct 25, 2022
f1630e0
prune ci jobs
Borda Oct 25, 2022
5f2b739
prune ci jobs
Borda Oct 25, 2022
69756af
training loop standalone tests
justusschock Oct 25, 2022
7e65a83
Merge branch 'master' into pkg/lai-source
Borda Oct 25, 2022
9ef3d4f
Merge branch 'master' into pkg/lai-source
Borda Oct 25, 2022
fb10b19
add sys modules cleanup fixture
justusschock Oct 25, 2022
c15efdd
make use of fixture
justusschock Oct 25, 2022
146599a
revert standalone
justusschock Oct 25, 2022
9297fd7
ci e2e
Borda Oct 25, 2022
5a2acb0
fix imports in lightning
manskx Oct 25, 2022
fec212a
fix imports of lightning in tests
manskx Oct 25, 2022
6c24a20
Revert "make use of fixture"
justusschock Oct 25, 2022
f4bcd48
Revert other commits for fixtures
justusschock Oct 25, 2022
12cbf7b
revert use of fixture
justusschock Oct 25, 2022
6849146
Merge branch 'master' into pkg/lai-source
Borda Oct 25, 2022
b00c70b
Merge branch 'master' into pkg/lai-source
Borda Oct 25, 2022
51a5a14
py3.9
Borda Oct 25, 2022
43b48be
fix mocking
Borda Oct 25, 2022
1093b05
Merge branch 'master' into pkg/lai-source
Borda Oct 25, 2022
1089c2a
fix paths
Borda Oct 25, 2022
da89285
Merge branch 'pkg/lai-source' of https://github.com/PyTorchLightning/…
Borda Oct 25, 2022
d4b0b1e
hack mocking
Borda Oct 25, 2022
11635ae
docs
Borda Oct 25, 2022
01e45b9
Apply suggestions from code review
Borda Oct 25, 2022
0fd1be6
rev suggestion
Borda Oct 25, 2022
3b7607a
Minor changes to the parametrizations
carmocca Oct 26, 2022
150d5eb
Update checkgroup with the new and changed jobs
carmocca Oct 26, 2022
570e2a0
include frontend dir
manskx Oct 26, 2022
939e2c9
Merge branch 'master' into pkg/lai-source
tchaton Oct 26, 2022
269a45c
cli
Borda Oct 26, 2022
bf81fe3
fix imports and entry point
tchaton Oct 26, 2022
b19dde5
Merge branch 'pkg/lai-source' of https://github.com/Lightning-AI/ligh…
tchaton Oct 26, 2022
29b6512
Merge branch 'master' into pkg/lai-source
Borda Oct 26, 2022
ac29eeb
Merge branch 'pkg/lai-source' of https://github.com/PyTorchLightning/…
Borda Oct 26, 2022
34b7001
Merge branch 'master' into pkg/lai-source
carmocca Oct 26, 2022
9df9668
Revert standalone
carmocca Oct 26, 2022
7bf2bcd
Merge branch 'master' into pkg/lai-source
Borda Oct 26, 2022
20be13a
rc1
Borda Oct 26, 2022
1402dc4
e2e on staging
Borda Oct 26, 2022
49bd50e
Merge branch 'master' into pkg/lai-source
Borda Oct 26, 2022
f5ad3f2
Merge branch 'master' into pkg/lai-source
Borda Oct 26, 2022
317d245
Merge branch 'master' into pkg/lai-source
carmocca Oct 26, 2022
a42f2ec
Revert "Revert standalone"
Borda Oct 26, 2022
bd4fb2e
Merge branch 'master' into pkg/lai-source
Borda Oct 26, 2022
8e39089
Merge branch 'master' into pkg/lai-source
Borda Oct 26, 2022
cda0898
groups
Borda Oct 26, 2022
30f4bbb
to
Borda Oct 26, 2022
8879195
ci: pt ver
Borda Oct 26, 2022
1f2c5d2
docker
Borda Oct 26, 2022
ef13dd8
Apply suggestions from code review
carmocca Oct 26, 2022
e47a07b
Copy over changes from previous commit to other groups
carmocca Oct 26, 2022
c2ec514
Add back changes from bad merge
carmocca Oct 26, 2022
2a4e9f8
Uppercase step name everywhere
carmocca Oct 26, 2022
247b58c
Merge branch 'master' into pkg/lai-source
carmocca Oct 26, 2022
cdcc76c
update
tchaton Oct 27, 2022
8fcf8a4
Merge branch 'pkg/lai-source' of https://github.com/Lightning-AI/ligh…
tchaton Oct 27, 2022
b491089
ci
Borda Oct 27, 2022
e0ba7ef
Merge branch 'master' into pkg/lai-source
lantiga Oct 27, 2022
7eb085f
ci: lai oldest
Borda Oct 27, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
344 changes: 59 additions & 285 deletions .actions/setup_tools.py

Large diffs are not rendered by default.

31 changes: 21 additions & 10 deletions .azure/app-cloud-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ jobs:
path: $(pip_cache_dir)
displayName: Cache pip

# TODO: we are testing it as `lightning`, so add also version for `lightning_app`
- bash: git restore . && python -m pip install -e . -r requirements/app/test.txt -r requirements/app/ui.txt --find-links https://download.pytorch.org/whl/cpu/torch_stable.html
displayName: 'Install Lightning & dependencies'

Expand All @@ -125,6 +126,16 @@ jobs:
condition: eq(variables['name'], 'quick_start')
displayName: 'Install Quick Start'

- bash: python -m pip install -q -r .actions/requirements.txt
displayName: 'Install assistant dependencies'

# Fix imports to use `lightning` instead of `lightning_app` since we install lightning only ATM
# TODO: fixme when installing `lightning_app` as well
- bash: |
python .actions/assistant.py copy_replace_imports --source_dir="./examples" --source_import="lightning_app" --target_import="lightning.app"
python .actions/assistant.py copy_replace_imports --source_dir="./tests" --source_import="lightning_app" --target_import="lightning.app"
displayName: 'Adjust examples'

- bash: |
pip --version
pip list
Expand All @@ -144,12 +155,12 @@ jobs:
TEST_APP_NAME: $(name)
HAR_LOCATION: './artifacts/hars'
SLOW_MO: '50'
# LAI_USER: $(LAI_USER)
# LAI_PASS: $(LAI_PASS)
LIGHTNING_USER_ID: $(LIGHTNING_USER_ID_PROD)
LIGHTNING_API_KEY: $(LIGHTNING_API_KEY_PROD)
LAI_USER: $(LAI_USER) # for STAGING
LAI_PASS: $(LAI_PASS) # for STAGING
LIGHTNING_USER_ID: $(LIGHTNING_USER_ID_STAGING)
LIGHTNING_API_KEY: $(LIGHTNING_API_KEY_STAGING)
LIGHTNING_USERNAME: $(LIGHTNING_USERNAME)
LIGHTNING_CLOUD_URL: $(LIGHTNING_CLOUD_URL_PROD)
LIGHTNING_CLOUD_URL: $(LIGHTNING_CLOUD_URL_STAGING)
LIGHTNING_DEBUG: '1'
displayName: 'Run the tests'

Expand All @@ -162,12 +173,12 @@ jobs:
time python -c "from lightning.app import testing; testing.delete_cloud_lightning_apps()"
condition: always()
env:
# LAI_USER: $(LAI_USER)
# LAI_PASS: $(LAI_PASS)
LIGHTNING_USER_ID: $(LIGHTNING_USER_ID_PROD)
LIGHTNING_API_KEY: $(LIGHTNING_API_KEY_PROD)
LAI_USER: $(LAI_USER) # for STAGING
LAI_PASS: $(LAI_PASS) # for STAGING
LIGHTNING_USER_ID: $(LIGHTNING_USER_ID_STAGING)
LIGHTNING_API_KEY: $(LIGHTNING_API_KEY_STAGING)
LIGHTNING_USERNAME: $(LIGHTNING_USERNAME)
LIGHTNING_CLOUD_URL: $(LIGHTNING_CLOUD_URL_PROD)
LIGHTNING_CLOUD_URL: $(LIGHTNING_CLOUD_URL_STAGING)
PR_NUMBER: $(local_id)
TEST_APP_NAME: $(name)
# GRID_USER_ID: $(LIGHTNING_USER_ID) # TODO: clarify the meaning
Expand Down
10 changes: 2 additions & 8 deletions .github/actions/pkg-check/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ inputs:
pkg-name:
description: package name inside lightning.*
required: true
default: ""
carmocca marked this conversation as resolved.
Show resolved Hide resolved
nb-dirs:
description: nb of packages in the wrap/distribution
required: false
Expand All @@ -21,10 +22,7 @@ runs:
- name: Source check
env:
PACKAGE_NAME: ${{ inputs.pkg-name }}
run: |
python setup.py check --metadata --strict
# TODO: fix reimporting (F811) which is aftefact after rplacing var assigne with import in meta package
flake8 src/lightning/ --ignore E402,F401,E501,W391,E303,F811
run: python setup.py check --metadata --strict
Borda marked this conversation as resolved.
Show resolved Hide resolved
shell: bash

- name: Create package
Expand All @@ -40,10 +38,6 @@ runs:
# python setup.py clean
shell: bash

- name: copy/export pkg
run: cp dist/* pypi/
shell: bash

- name: Unzip packages
if: ${{ inputs.pkg-name != '' }}
working-directory: dist
Expand Down
4 changes: 2 additions & 2 deletions .github/actions/pkg-install/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ runs:
run: echo "PKG_NAME=${{ inputs.pkg-name }}" >> $GITHUB_ENV
shell: bash

- name: Install | Uninstall package - archive
- name: Install package - archive
working-directory: ./dist
run: |
pip install *.tar.gz ${{ inputs.pip-flags }}
pip list | grep lightning
python -c "import ${PKG_NAME} ; print(${PKG_NAME}.__version__)"
shell: bash

- name: Install | Uninstall package - wheel
- name: Install package - wheel
working-directory: ./dist
run: |
pip install *.whl ${{ inputs.pip-flags }}
Expand Down
73 changes: 56 additions & 17 deletions .github/checkgroup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,23 @@ subprojects:
- "pl-cpu (macOS-11, pytorch, 3.10, 1.12)"
- "pl-cpu (macOS-11, pytorch, 3.7, 1.9, oldest)"
- "pl-cpu (macOS-11, pytorch, 3.10, 1.13, pre)"
- "pl-cpu (ubuntu-20.04, pytorch, 3.8, 1.11)"
- "pl-cpu (ubuntu-20.04, pytorch, 3.8, 1.10)"
- "pl-cpu (ubuntu-20.04, pytorch, 3.9, 1.11)"
- "pl-cpu (ubuntu-20.04, pytorch, 3.10, 1.11)"
- "pl-cpu (ubuntu-20.04, pytorch, 3.10, 1.12)"
- "pl-cpu (ubuntu-20.04, pytorch, 3.7, 1.9, oldest)"
- "pl-cpu (ubuntu-20.04, pytorch, 3.9, 1.13, pre)"
- "pl-cpu (windows-2022, pytorch, 3.8, 1.9)"
- "pl-cpu (windows-2022, pytorch, 3.9, 1.10)"
- "pl-cpu (windows-2022, pytorch, 3.9, 1.11)"
- "pl-cpu (windows-2022, pytorch, 3.10, 1.11)"
- "pl-cpu (windows-2022, pytorch, 3.10, 1.12)"
- "pl-cpu (windows-2022, pytorch, 3.7, 1.9, oldest)"
- "pl-cpu (windows-2022, pytorch, 3.8, 1.13, pre)"
- "pl-cpu (macOS-11, lightning, 3.10, 1.12)"
#- "pl-cpu (macOS-11, lightning, 3.7, 1.9, oldest)"
- "pl-cpu (ubuntu-20.04, lightning, 3.10, 1.12)"
#- "pl-cpu (ubuntu-20.04, lightning, 3.7, 1.9, oldest)"
- "pl-cpu (windows-2022, lightning, 3.10, 1.12)"
#- "pl-cpu (windows-2022, lightning, 3.7, 1.9, oldest)"
- "make-doctest (pytorch)"
- "make-html (pytorch)"
- "mypy"
Expand All @@ -56,21 +63,28 @@ subprojects:
paths:
- ".github/workflows/ci-pytorch-tests.yml"
checks:
- "pl-cpu (macOS-11, pytorch, 3.9, 1.11)"
- "pl-cpu (macOS-11, pytorch, 3.8, 1.10)"
- "pl-cpu (macOS-11, pytorch, 3.9, 1.11)"
- "pl-cpu (macOS-11, pytorch, 3.10, 1.12)"
- "pl-cpu (macOS-11, pytorch, 3.7, 1.9, oldest)"
- "pl-cpu (macOS-11, pytorch, 3.10, 1.13, pre)"
- "pl-cpu (ubuntu-20.04, pytorch, 3.8, 1.11)"
- "pl-cpu (ubuntu-20.04, pytorch, 3.8, 1.10)"
- "pl-cpu (ubuntu-20.04, pytorch, 3.9, 1.11)"
- "pl-cpu (ubuntu-20.04, pytorch, 3.10, 1.11)"
- "pl-cpu (ubuntu-20.04, pytorch, 3.10, 1.12)"
- "pl-cpu (ubuntu-20.04, pytorch, 3.7, 1.9, oldest)"
- "pl-cpu (ubuntu-20.04, pytorch, 3.9, 1.13, pre)"
- "pl-cpu (windows-2022, pytorch, 3.8, 1.9)"
- "pl-cpu (windows-2022, pytorch, 3.9, 1.10)"
- "pl-cpu (windows-2022, pytorch, 3.9, 1.11)"
- "pl-cpu (windows-2022, pytorch, 3.10, 1.11)"
- "pl-cpu (windows-2022, pytorch, 3.10, 1.12)"
- "pl-cpu (windows-2022, pytorch, 3.7, 1.9, oldest)"
- "pl-cpu (windows-2022, pytorch, 3.8, 1.13, pre)"
- "pl-cpu (macOS-11, lightning, 3.10, 1.12)"
#- "pl-cpu (macOS-11, lightning, 3.7, 1.9, oldest)"
- "pl-cpu (ubuntu-20.04, lightning, 3.10, 1.12)"
#- "pl-cpu (ubuntu-20.04, lightning, 3.7, 1.9, oldest)"
- "pl-cpu (windows-2022, lightning, 3.10, 1.12)"
#- "pl-cpu (windows-2022, lightning, 3.7, 1.9, oldest)"

- id: "pytorch_lightning: Slow"
paths:
Expand Down Expand Up @@ -165,24 +179,34 @@ subprojects:
- "lite-cpu (windows-2022, lite, 3.10, 1.12)"
- "lite-cpu (windows-2022, lite, 3.7, 1.9, oldest)"
- "lite-cpu (windows-2022, lite, 3.8, 1.13, pre)"
- "lite-cpu (macOS-11, lightning, 3.8, 1.12)"
- "lite-cpu (ubuntu-20.04, lightning, 3.8, 1.12)"
- "lite-cpu (windows-2022, lightning, 3.8, 1.12)"
- "lightning-lite (GPUs)"
- "mypy"
# Lite also requires PL checks as it depends on Lite
- "pl-cpu (macOS-11, pytorch, 3.9, 1.11)"
- "pl-cpu (macOS-11, pytorch, 3.8, 1.10)"
- "pl-cpu (macOS-11, pytorch, 3.9, 1.11)"
- "pl-cpu (macOS-11, pytorch, 3.10, 1.12)"
- "pl-cpu (macOS-11, pytorch, 3.7, 1.9, oldest)"
- "pl-cpu (macOS-11, pytorch, 3.10, 1.13, pre)"
- "pl-cpu (ubuntu-20.04, pytorch, 3.8, 1.11)"
- "pl-cpu (ubuntu-20.04, pytorch, 3.8, 1.10)"
- "pl-cpu (ubuntu-20.04, pytorch, 3.9, 1.11)"
- "pl-cpu (ubuntu-20.04, pytorch, 3.10, 1.11)"
- "pl-cpu (ubuntu-20.04, pytorch, 3.10, 1.12)"
- "pl-cpu (ubuntu-20.04, pytorch, 3.7, 1.9, oldest)"
- "pl-cpu (ubuntu-20.04, pytorch, 3.9, 1.13, pre)"
- "pl-cpu (windows-2022, pytorch, 3.8, 1.9)"
- "pl-cpu (windows-2022, pytorch, 3.9, 1.10)"
- "pl-cpu (windows-2022, pytorch, 3.9, 1.11)"
- "pl-cpu (windows-2022, pytorch, 3.10, 1.11)"
- "pl-cpu (windows-2022, pytorch, 3.10, 1.12)"
- "pl-cpu (windows-2022, pytorch, 3.7, 1.9, oldest)"
- "pl-cpu (windows-2022, pytorch, 3.8, 1.13, pre)"
- "pl-cpu (macOS-11, lightning, 3.10, 1.12)"
#- "pl-cpu (macOS-11, lightning, 3.7, 1.9, oldest)"
- "pl-cpu (ubuntu-20.04, lightning, 3.10, 1.12)"
#- "pl-cpu (ubuntu-20.04, lightning, 3.7, 1.9, oldest)"
- "pl-cpu (windows-2022, lightning, 3.10, 1.12)"
#- "pl-cpu (windows-2022, lightning, 3.7, 1.9, oldest)"
- "make-doctest (pytorch)"
- "make-html (pytorch)"
- "pytorch-lightning (GPUs)"
Expand Down Expand Up @@ -210,6 +234,9 @@ subprojects:
- "lite-cpu (windows-2022, lite, 3.10, 1.12)"
- "lite-cpu (windows-2022, lite, 3.7, 1.9, oldest)"
- "lite-cpu (windows-2022, lite, 3.8, 1.13, pre)"
- "lite-cpu (macOS-11, lightning, 3.8, 1.12)"
- "lite-cpu (ubuntu-20.04, lightning, 3.8, 1.12)"
- "lite-cpu (windows-2022, lightning, 3.8, 1.12)"
- "lightning-lite (GPUs)"

- id: "lightning_lite: Azure GPU"
Expand All @@ -235,18 +262,24 @@ subprojects:
- "App.cloud-e2e"
- "make-doctest (app)"
- "make-html (app)"
- "app-examples (macOS-11, app, 3.8, latest)"
- "app-examples (macOS-11, app, 3.8, oldest)"
- "app-examples (ubuntu-20.04, app, 3.8, latest)"
- "app-examples (ubuntu-20.04, app, 3.8, oldest)"
- "app-examples (windows-2022, app, 3.8, latest)"
- "app-examples (windows-2022, app, 3.8, oldest)"
- "app-examples (macOS-11, app, 3.9, latest)"
- "app-examples (macOS-11, app, 3.9, oldest)"
- "app-examples (macOS-11, lightning, 3.9, latest)"
- "app-examples (ubuntu-20.04, app, 3.9, latest)"
- "app-examples (ubuntu-20.04, app, 3.9, oldest)"
- "app-examples (ubuntu-20.04, lightning, 3.9, latest)"
- "app-examples (windows-2022, app, 3.9, latest)"
- "app-examples (windows-2022, app, 3.9, oldest)"
- "app-examples (windows-2022, lightning, 3.9, latest)"
- "app-pytest (macOS-11, app, 3.8, latest)"
- "app-pytest (macOS-11, app, 3.8, oldest)"
- "app-pytest (macOS-11, lightning, 3.9, latest)"
- "app-pytest (ubuntu-20.04, app, 3.8, latest)"
- "app-pytest (ubuntu-20.04, app, 3.8, oldest)"
- "app-pytest (ubuntu-20.04, lightning, 3.9, latest)"
- "app-pytest (windows-2022, app, 3.8, latest)"
- "app-pytest (windows-2022, app, 3.8, oldest)"
- "app-pytest (windows-2022, lightning, 3.9, latest)"

- id: "lightning_app: Azure"
paths:
Expand Down Expand Up @@ -287,15 +320,21 @@ subprojects:
- "install-pkg (ubuntu-22.04, lite, 3.10)"
- "install-pkg (ubuntu-22.04, pytorch, 3.7)"
- "install-pkg (ubuntu-22.04, pytorch, 3.10)"
- "install-pkg (ubuntu-22.04, 3.7)"
- "install-pkg (ubuntu-22.04, 3.10)"
- "install-pkg (macOS-12, app, 3.7)"
- "install-pkg (macOS-12, app, 3.10)"
- "install-pkg (macOS-12, lite, 3.7)"
- "install-pkg (macOS-12, lite, 3.10)"
- "install-pkg (macOS-12, pytorch, 3.7)"
- "install-pkg (macOS-12, pytorch, 3.10)"
- "install-pkg (macOS-12, 3.7)"
- "install-pkg (macOS-12, 3.10)"
- "install-pkg (windows-2022, app, 3.7)"
- "install-pkg (windows-2022, app, 3.10)"
- "install-pkg (windows-2022, lite, 3.7)"
- "install-pkg (windows-2022, lite, 3.10)"
- "install-pkg (windows-2022, pytorch, 3.7)"
- "install-pkg (windows-2022, pytorch, 3.10)"
- "install-pkg (windows-2022, 3.7)"
- "install-pkg (windows-2022, 3.10)"
23 changes: 17 additions & 6 deletions .github/workflows/ci-app-examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,17 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-20.04, macOS-11, windows-2022]
pkg-name: ["app"] # TODO: add "LAI" # "LAI" installs the monolithic package
python-version: [3.8]
pkg-name: ["app"]
python-version: ["3.9"]
carmocca marked this conversation as resolved.
Show resolved Hide resolved
requires: ["oldest", "latest"]
include:
# "lightning" installs the monolithic package
- {os: "macOS-11", pkg-name: "lightning", python-version: "3.9", requires: "latest"}
- {os: "ubuntu-20.04", pkg-name: "lightning", python-version: "3.9", requires: "latest"}
- {os: "windows-2022", pkg-name: "lightning", python-version: "3.9", requires: "latest"}

# Timeout: https://stackoverflow.com/a/59076067/4521646
timeout-minutes: 10
timeout-minutes: 15

steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -89,11 +94,17 @@ jobs:
run: pip install -e .

- name: Adjust tests
if: ${{ matrix.pkg-name == 'LAI' }}
if: ${{ matrix.pkg-name == 'lightning' }}
Borda marked this conversation as resolved.
Show resolved Hide resolved
run: python .actions/assistant.py copy_replace_imports --source_dir="./tests" --source_import="lightning_app" --target_import="lightning.app"

- name: switch coverage scope
run: python -c "print('COVERAGE_SCOPE=' + str('lightning' if '${{matrix.pkg-name}}' == 'LAI' else 'lightning_app'))" >> $GITHUB_ENV
- name: Adjust examples
Borda marked this conversation as resolved.
Show resolved Hide resolved
if: ${{ matrix.pkg-name != 'lightning' }}
run: |
python .actions/assistant.py copy_replace_imports --source_dir="./examples" --source_import="lightning.app" --target_import="lightning_app"
python .actions/assistant.py copy_replace_imports --source_dir="./examples" --source_import="lightning" --target_import="lightning_app"

- name: Switch coverage scope
run: python -c "print('COVERAGE_SCOPE=' + str('lightning' if '${{matrix.pkg-name}}' == 'lightning' else 'lightning_app'))" >> $GITHUB_ENV

- name: Tests
working-directory: ./tests
Expand Down
43 changes: 21 additions & 22 deletions .github/workflows/ci-app-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,17 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-20.04, macOS-11, windows-2022]
pkg-name: ["app"] # TODO: add "LAI" # "LAI" installs the monolithic package
python-version: [3.8]
pkg-name: ["app"]
python-version: ["3.8"]
requires: ["oldest", "latest"]
include:
# "lightning" installs the monolithic package
- {os: "macOS-11", pkg-name: "lightning", python-version: "3.9", requires: "latest"}
- {os: "ubuntu-20.04", pkg-name: "lightning", python-version: "3.9", requires: "latest"}
- {os: "windows-2022", pkg-name: "lightning", python-version: "3.9", requires: "latest"}

# Timeout: https://stackoverflow.com/a/59076067/4521646
timeout-minutes: 25
timeout-minutes: 30

steps:
- uses: actions/checkout@v3
Expand All @@ -54,21 +59,6 @@ jobs:
if: ${{ matrix.requires == 'oldest' }}
run: python .actions/assistant.py replace_oldest_ver

- name: switch PyTorch URL
run: python -c "print('TORCH_URL=https://download.pytorch.org/whl/' + str('test/cpu/torch_test.html' if '${{matrix.release}}' == 'pre' else 'cpu/torch_stable.html'))" >> $GITHUB_ENV

- name: Install package
env:
PACKAGE_NAME: ${{ matrix.pkg-name }}
run: |
pip install -e . pytest --upgrade --find-links ${TORCH_URL}
pip list

- name: DocTests App
if: ${{ matrix.pkg-name != 'LAI' }}
working-directory: src
run: python -m pytest lightning_app --ignore-glob="**/cli/*-template/**"

- name: Get pip cache
id: pip-cache
run: |
Expand All @@ -81,6 +71,15 @@ jobs:
key: ${{ runner.os }}-pip-py${{ matrix.python-version }}-${{ matrix.pkg-name }}-${{ matrix.requires }}-${{ hashFiles('requirements/app/base.txt') }}
restore-keys: ${{ runner.os }}-pip-py${{ matrix.python-version }}-${{ matrix.pkg-name }}-${{ matrix.requires }}-

- name: Switch PyTorch URL
run: python -c "print('TORCH_URL=https://download.pytorch.org/whl/' + str('test/cpu/torch_test.html' if '${{matrix.release}}' == 'pre' else 'cpu/torch_stable.html'))" >> $GITHUB_ENV

- name: Install package
env:
PACKAGE_NAME: ${{ matrix.pkg-name }}
run: |
pip install -e . pytest --upgrade --find-links ${TORCH_URL}
pip list

- name: Install dependencies
env: # TODO: drop this when we will be using regular releases for testing
Expand All @@ -98,17 +97,17 @@ jobs:
run: npm install -g yarn

- name: Adjust tests
if: ${{ matrix.pkg-name == 'LAI' }}
if: ${{ matrix.pkg-name == 'lightning' }}
run: python .actions/assistant.py copy_replace_imports --source_dir="./tests" --source_import="lightning_app" --target_import="lightning.app"

- name: Adjust examples
if: ${{ matrix.pkg-name != 'LAI' }}
if: ${{ matrix.pkg-name != 'lightning' }}
run: |
python .actions/assistant.py copy_replace_imports --source_dir="./examples" --source_import="lightning.app" --target_import="lightning_app"
python .actions/assistant.py copy_replace_imports --source_dir="./examples" --source_import="lightning" --target_import="lightning_app"

- name: switch coverage scope
run: python -c "print('COVERAGE_SCOPE=' + str('lightning' if '${{matrix.pkg-name}}' == 'LAI' else 'lightning_app'))" >> $GITHUB_ENV
- name: Switch coverage scope
run: python -c "print('COVERAGE_SCOPE=' + str('lightning' if '${{matrix.pkg-name}}' == 'lightning' else 'lightning_app'))" >> $GITHUB_ENV

- name: Tests
working-directory: ./tests
Expand Down