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

Release 0.2.5rc #980

Merged
merged 303 commits into from
Aug 3, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
303 commits
Select commit Hold shift + click to select a range
6f6cb2b
blackify
bouthilx Jun 20, 2022
52566a9
blackify
bouthilx Jun 20, 2022
e21ce78
Add db upgrade for trials
bouthilx Jun 20, 2022
c9f1797
blackify
bouthilx Jun 20, 2022
effd2fd
Upgrade example DBs
bouthilx Jun 20, 2022
c5ec2e4
Ignore id_override argument
bouthilx Jun 20, 2022
ea2bd28
[dashboard] Display trials for selected experiment in experiments/dat…
notoraptor Jun 8, 2022
699da17
[dashboard] Add test for experiments database page.
notoraptor Jun 8, 2022
92704c2
fix typo
notoraptor Jun 14, 2022
a9c9819
Trying to figure out id issue it backcomp tests
bouthilx Jun 21, 2022
5e32284
Merge pull request #944 from notoraptor/experiments-db-page
bouthilx Jun 21, 2022
2e3895b
Propagate more storage instance
Delaunay Jun 21, 2022
c0e61c6
Fix ephemeraldb mixed index types
bouthilx Jun 21, 2022
231d2ae
Fix some tests
Delaunay Jun 21, 2022
f493856
Upgrade db for dashboard tests
bouthilx Jun 21, 2022
3151380
-
Delaunay Jun 21, 2022
b660aa2
Use orion state for storage setups
Delaunay Jun 21, 2022
06454c6
-
Delaunay Jun 21, 2022
632a4f9
Merge pull request #950 from bouthilx/feature/no_exp_in_trial_hash
bouthilx Jun 21, 2022
77da13b
Compile Dashboard
bouthilx Jun 21, 2022
54e0aa0
Merge pull request #951 from Epistimio/ci/build-dashboard
bouthilx Jun 21, 2022
b061b91
Use randint instead of choice in PBT.explore
bouthilx May 3, 2022
7729cef
Do not promote trials at last fidelity in PBT
bouthilx May 3, 2022
56ef0d4
Copy experiment when branching trial
bouthilx May 3, 2022
c999116
Fugly fix for trial working dir
bouthilx May 3, 2022
2c3ea09
isort
bouthilx May 3, 2022
de0fe44
Blackify
bouthilx May 3, 2022
9901b09
Make sure ExperimentBranchBuilder use a storage
Delaunay Jun 22, 2022
8288c08
-
Delaunay Jun 22, 2022
8987e1d
Add prepare_trial arg to Runner and exp.workon
bouthilx Jun 22, 2022
f47850c
Adapt PBT to new way of trial working_dir copy
bouthilx Jun 22, 2022
1670090
Handle properly parent id in AlgoWrapper
bouthilx Jun 22, 2022
98b08a1
Compute remaining trials correctly in Runner
bouthilx Jun 22, 2022
04eb5e8
pylint
bouthilx Jun 22, 2022
0d06f22
Adjust functional tests for pbt and pb2
bouthilx Jun 22, 2022
9c9b3af
-
Delaunay Jun 23, 2022
456e4b6
Merge branch 'develop' of github.com:Epistimio/orion into no_singleton
Delaunay Jun 23, 2022
c357931
Fix ExperimentClient.workon typing
bouthilx Jun 23, 2022
5c150f3
Add typing to Runner.__init__
bouthilx Jun 23, 2022
283b87b
Remove unnecessary `is not None`
bouthilx Jun 23, 2022
5113bb4
Add type hints to get_original_parent
bouthilx Jun 23, 2022
d6d3683
Add type hints to branching_rosenbrock
bouthilx Jun 23, 2022
5167330
Add type hints to test_branching_algos
bouthilx Jun 23, 2022
ca6a7cd
Remove unnecessary OrionState
bouthilx Jun 23, 2022
c34d3e8
Merge branch 'hotfix/pbt_cp_dir' of github.com:bouthilx/orion into ho…
bouthilx Jun 23, 2022
c05eb25
Add type hints to test_fidelity_upgrades
bouthilx Jun 23, 2022
cc6433e
Resolve some EVC failures
Delaunay Jun 23, 2022
9ee1cbf
-
Delaunay Jun 23, 2022
b06ac03
Reenable PBT tests
bouthilx Jun 23, 2022
75dfb72
Merge branch 'hotfix/pbt_cp_dir' of github.com:bouthilx/orion into ho…
bouthilx Jun 23, 2022
8c29b3d
Remove useless shutil import
bouthilx Jun 23, 2022
a08e5ce
Add type hints to FakeClient.get_trial
bouthilx Jun 23, 2022
cd2ff72
Remove unnecessary tmp_path cleaning
bouthilx Jun 23, 2022
8b995b4
Merge branch 'hotfix/pbt_cp_dir' of github.com:bouthilx/orion into ho…
bouthilx Jun 23, 2022
0528bcf
Add type hints to new_runner
bouthilx Jun 23, 2022
f59808d
Add type hints to test_callback
bouthilx Jun 23, 2022
d913e82
Add type hints to test_prepare_trial_working_dir
bouthilx Jun 23, 2022
0d612bd
Rewrite test name
bouthilx Jun 23, 2022
82800ee
isort
bouthilx Jun 23, 2022
dbb9177
black
bouthilx Jun 23, 2022
15388bd
Merge branch 'hotfix/pbt_cp_dir' of github.com:bouthilx/orion into ho…
bouthilx Jun 23, 2022
f85d27e
Renable all tests for PBT
bouthilx Jun 23, 2022
90486b6
Remove Literal because only available in py3.8
bouthilx Jun 23, 2022
c63e3d3
isort
bouthilx Jun 23, 2022
dfb2b7b
Remove unrelevant tests
bouthilx Jun 27, 2022
2b45164
Add back Literal from another package
bouthilx Jun 27, 2022
5b7d217
isort
bouthilx Jun 27, 2022
42b549e
Reduce tests while debugging ConfigSpace version issue
bouthilx Jun 28, 2022
3ab874e
Remove note that is not true anymore
bouthilx Jun 30, 2022
ddbf325
Add more info on how trial config is passed to scripts
bouthilx Jun 30, 2022
1810085
Add repr to dbs to help debug with orion db test
bouthilx Jun 30, 2022
7bb08c2
Update config to use pickleddb
Delaunay Jul 4, 2022
e47a0a5
Rename AlgoType to AlgoT
bouthilx Jul 4, 2022
ed832f7
Update pylint to 2.14.*
bouthilx Jul 4, 2022
7c29a3b
Set DEHB dep to fork supporting py3.7
bouthilx Jun 28, 2022
d332058
Fix OneHotEncode
bouthilx Jun 30, 2022
6a7fb32
Make tests more resilient to numpy version
bouthilx Jul 4, 2022
31882c6
Update black
bouthilx Jul 4, 2022
e813ec2
Use proper __base__ for cls object
bouthilx Jul 4, 2022
bd83b06
Merge pull request #957 from bouthilx/docs/script_path
bouthilx Jul 4, 2022
9cd205b
Make sure storage is using tmp paths
Delaunay Jul 4, 2022
cff4374
Merge pull request #955 from bouthilx/hotfix/config_space_dep
bouthilx Jul 4, 2022
47a2734
Apply suggested type-hints and cls name attr
bouthilx Jul 4, 2022
81bbcd8
Merge branch 'develop' into feature/db_repr
bouthilx Jul 4, 2022
5b1c206
Merge branch 'develop' into hotfix/pbt_cp_dir
bouthilx Jul 4, 2022
a08e9e3
Add type-hints to build_params_hist
bouthilx Jul 4, 2022
697dd2a
Restore CI workflow
bouthilx Jul 4, 2022
780e25f
Merge branch 'hotfix/pbt_cp_dir' of github.com:bouthilx/orion into ho…
bouthilx Jul 4, 2022
cb4b35c
Restore all tests
bouthilx Jul 4, 2022
e76da18
Increase population size of PB2 to avoid early convergence
bouthilx Jul 4, 2022
f827cbb
Add ImportOptional and adjust algo imports
bouthilx Jul 5, 2022
5a18590
Fix wrong import_guard names
bouthilx Jul 5, 2022
fe14ac9
Remove useless else
bouthilx Jul 5, 2022
00023d5
Fix missing storage config inside global conf file
Delaunay Jul 5, 2022
2dd5eeb
Make PB2 pass all the time
bouthilx Jul 5, 2022
b841b2a
Make test based on numpy indepedent of numpy version
bouthilx Jul 5, 2022
6c82d24
-
Delaunay Jul 5, 2022
1ff694b
Skip PB2 in func tests if not installed
bouthilx Jul 5, 2022
aeacae0
Re-enable TPE fidelity functional test
bouthilx Jul 5, 2022
4432ac7
isort
bouthilx Jul 5, 2022
adae51e
Update doc about PBT
bouthilx Jul 5, 2022
e4b78e1
pylint is wrong, but whatever...
bouthilx Jul 5, 2022
e2a5170
Display only 7 first characters of trial ID in ID column. Display ful…
notoraptor Jul 6, 2022
6f7340c
Format code
notoraptor Jul 6, 2022
dda3256
[dashboard/db page] DIsplay parameters in separated flattened columns…
notoraptor Jul 6, 2022
1996834
Handle converging algos in func tests
bouthilx Jul 6, 2022
20994af
Merge pull request #958 from bouthilx/feature/db_repr
bouthilx Jul 6, 2022
11eb0b7
Merge pull request #961 from notoraptor/db-flatten-params
bouthilx Jul 6, 2022
f9d8c94
Merge pull request #960 from notoraptor/improve-db-page
bouthilx Jul 6, 2022
5fb2b4e
Replace (part of) pretest of CI with Pre-commit equivalent (#918)
lebrice Jul 6, 2022
0431fee
-
Delaunay Jul 6, 2022
d5d785d
-
Delaunay Jul 6, 2022
559f5e6
Fix serving tests
Delaunay Jul 7, 2022
ea93839
Merge branch 'develop' of github.com:Epistimio/orion into no_singleton
Delaunay Jul 7, 2022
53fd6ca
-
Delaunay Jul 7, 2022
656ce7b
-
Delaunay Jul 7, 2022
bec3768
-
Delaunay Jul 7, 2022
c1eace5
-
Delaunay Jul 7, 2022
33e5993
Don't pass producer, it's an old version of the signature
abergeron Jun 22, 2022
2c3ad0b
Ensure API documentation of executors is complete
abergeron Jun 22, 2022
fb9f329
PoolExecutor and joblib are the same thing except one is deprecated
abergeron Jun 22, 2022
b05a0b7
remove unused import
abergeron Jul 8, 2022
3a99332
Tweak Plot test setup
Delaunay Jul 11, 2022
10965e1
-
Delaunay Jul 11, 2022
231b564
-
Delaunay Jul 11, 2022
20cfe97
-
Delaunay Jul 11, 2022
b6f729d
Pylint
Delaunay Jul 11, 2022
b1e9f9e
Remove useless function
Delaunay Jul 11, 2022
f2503f3
Remove debug trace
Delaunay Jul 11, 2022
9f57d74
-
Delaunay Jul 11, 2022
f97b316
fix ci
Delaunay Jul 11, 2022
d6b1422
Update serve code
Delaunay Jul 11, 2022
2f5f0f9
Merge branch 'no_singleton' of github.com:Delaunay/orion into no_sing…
Delaunay Jul 11, 2022
e809cf6
Fix pre-commit issues present in develop (#967)
lebrice Jul 11, 2022
5831a98
Update src/orion/core/io/database/pickleddb.py
Delaunay Jul 12, 2022
2b66e92
Update src/orion/core/io/database/pickleddb.py
Delaunay Jul 12, 2022
bad830a
-
Delaunay Jul 12, 2022
91bcf68
Fix path to Producer in tests
abergeron Jul 12, 2022
4c6c1b8
Improve ExperimentBuilder docstring
bouthilx Jul 12, 2022
a3ddb5a
Use branch_builder's storage
bouthilx Jul 12, 2022
27b9e30
Remove all SingletonAlreadyInstantiatedError exception
Delaunay Jul 12, 2022
da8363d
-
Delaunay Jul 12, 2022
735bb11
Merge branch 'no_singleton' of github.com:Delaunay/orion into no_sing…
Delaunay Jul 12, 2022
d06bbc4
-
Delaunay Jul 12, 2022
152f4f0
-
Delaunay Jul 12, 2022
85a0bb1
Merge pull request #964 from abergeron/fixes
bouthilx Jul 12, 2022
29f4c95
Compile Dashboard
bouthilx Jul 12, 2022
ece68bb
Fix Hyperband Typing and EVES state_dict
bouthilx Jul 13, 2022
26794fe
Fix PB2 repro
bouthilx Jul 13, 2022
aa29b86
Fix bug in test-suite
bouthilx Jul 13, 2022
198d65e
Use random objectives instead of incremental
bouthilx Jul 13, 2022
e54a1d9
Merge branch 'develop' into hotfix/pbt_cp_dir
bouthilx Jul 13, 2022
70de8be
Fix slips
bouthilx Jul 13, 2022
1edc6fc
Fix isort
bouthilx Jul 13, 2022
34dd11d
[dashboard/experiments/database] make columns sortable, except non-si…
notoraptor Jul 13, 2022
bf8bd6c
[dashboard/experiments/navbar] Remove (x) icon on experiment menu and…
notoraptor Jul 13, 2022
5857a9d
[dashboard] Update tests
notoraptor Jul 13, 2022
b3cdd12
Merge branch 'develop' of github.com:Epistimio/orion into no_singleton
Delaunay Jul 13, 2022
ee32040
Add test
Delaunay Jul 13, 2022
ea902b6
Please flake8
bouthilx Jul 14, 2022
70b6eab
Please flake8 once and for all :pray:
bouthilx Jul 14, 2022
f5959c5
Use conftest file for PBT fixtures
bouthilx Jul 14, 2022
c5b9f44
Remove dead code
Delaunay Jul 14, 2022
15561cf
Merge pull request #962 from Epistimio/ci/build-dashboard
bouthilx Jul 14, 2022
c01b74a
Fix Ax tests now that objectives are random
bouthilx Jul 14, 2022
0681ab0
Fix EVES for cat data on random objectives
bouthilx Jul 14, 2022
1736ab0
Fix EVES sampling for close to convergence
bouthilx Jul 14, 2022
c87435f
Fix PB2 with random objectives
bouthilx Jul 14, 2022
aef035b
Merge pull request #969 from notoraptor/rearrange-columns
bouthilx Jul 14, 2022
224cd3f
Xfail properly EVES and PB2 on cat test
bouthilx Jul 15, 2022
55b2776
Adjust nevergrad tests based on random objectives
bouthilx Jul 15, 2022
99d59e1
Fix nevergrad config fixture
bouthilx Jul 15, 2022
7eba478
Minor refactor: Make creation of `Experiment` objects more explicit (…
lebrice Jul 15, 2022
9ba6b29
Simplify tree.py (#966)
lebrice Jul 15, 2022
129c40e
Compile Dashboard
lebrice Jul 15, 2022
5425793
Factor out storage from get_or_create_benchmark
Delaunay Jul 15, 2022
ee35552
Merge branch 'develop' of github.com:Epistimio/orion into no_singleton
Delaunay Jul 15, 2022
9770f94
-
Delaunay Jul 15, 2022
d4505a9
-
Delaunay Jul 15, 2022
ed99c02
-
Delaunay Jul 15, 2022
965a895
-
Delaunay Jul 15, 2022
999d7e2
-
Delaunay Jul 15, 2022
8c6b775
-
Delaunay Jul 15, 2022
1fca8a6
-
Delaunay Jul 15, 2022
99db807
-
Delaunay Jul 15, 2022
2a76d1e
-
Delaunay Jul 15, 2022
ec16fd9
-
Delaunay Jul 15, 2022
1129838
-
Delaunay Jul 15, 2022
f1fcd06
Fix handling of Fidelity in HEBO
bouthilx Jul 15, 2022
8dca072
Stop crashing PB2 when converging
bouthilx Jul 15, 2022
49ce21f
Relax RNG seed test
bouthilx Jul 15, 2022
560f81a
-
Delaunay Jul 18, 2022
677a7b1
-
Delaunay Jul 18, 2022
4dd8e67
-
Delaunay Jul 18, 2022
f9082ad
=
Delaunay Jul 18, 2022
833db87
-
Delaunay Jul 18, 2022
db3f1fe
Remove unused symbols
notoraptor Jul 20, 2022
1d970e8
Adjust tests of PBT because generate_offsprings does not raise anymore
bouthilx Jul 25, 2022
dab7dc1
Adjust HEBO fixture to new test-suite interface
bouthilx Jul 25, 2022
a593d7c
Adjust suggest_n for HEBO
bouthilx Jul 25, 2022
5b9b340
Swap parent classes of Hyperband
bouthilx Jul 26, 2022
9d5cf4e
Add type hint
bouthilx Jul 26, 2022
fbed0a3
Add type hints to prepare_trial_working_dir
bouthilx Jul 26, 2022
23bea94
Add type hints
bouthilx Jul 26, 2022
dbd4ac2
Remove deprecated note in docstring
bouthilx Jul 26, 2022
a4790a5
Add type hints
bouthilx Jul 26, 2022
0e702f0
Fix style
bouthilx Jul 26, 2022
6f2abff
Use tanstack/react-table framework to manage table.
notoraptor Jul 25, 2022
588d1a0
Set pagination
notoraptor Jul 26, 2022
7609869
Set controlled pagination
notoraptor Jul 26, 2022
12ca4f0
Clean-up code
notoraptor Jul 26, 2022
ee29157
Merge pull request #973 from Epistimio/ci/build-dashboard
bouthilx Jul 27, 2022
482f670
Merge pull request #970 from notoraptor/remove-experiment-x-icon
bouthilx Jul 27, 2022
3f166ea
Compile Dashboard
bouthilx Jul 27, 2022
0e20b93
Merge pull request #976 from Epistimio/ci/build-dashboard
bouthilx Jul 27, 2022
2a31867
Merge pull request #975 from notoraptor/new-table-framework
bouthilx Jul 27, 2022
edec89a
Compile Dashboard
bouthilx Jul 27, 2022
b27d3bc
Merge pull request #977 from Epistimio/ci/build-dashboard
bouthilx Jul 27, 2022
45b2c56
-
Delaunay Jul 28, 2022
f5e1f56
Update src/orion/core/worker/experiment.py
Delaunay Jul 28, 2022
9b85923
Update tests/functional/configuration/test_all_options.py
Delaunay Jul 28, 2022
f5b43d2
Add tests for Configuration.from_dict
Delaunay Jul 28, 2022
1194a43
Merge branch 'no_singleton' of github.com:Delaunay/orion into no_sing…
Delaunay Jul 28, 2022
04efcb2
Update tests/unittests/storage/test_legacy.py
Delaunay Jul 28, 2022
c85d3b7
Update tests/unittests/storage/test_legacy.py
Delaunay Jul 28, 2022
4958421
-
Delaunay Jul 28, 2022
ebdeea7
Merge branch 'no_singleton' of github.com:Delaunay/orion into no_sing…
Delaunay Jul 28, 2022
a36817f
-
Delaunay Jul 28, 2022
9520c85
-
Delaunay Jul 28, 2022
7ce98f8
Add comment for why we need to override setup_storage for certain tests
Delaunay Jul 28, 2022
b2be35c
-
Delaunay Jul 28, 2022
2b9d745
-
Delaunay Jul 28, 2022
73cc6cd
Merge pull request #942 from Delaunay/no_singleton
bouthilx Jul 29, 2022
a885b0d
Merge branch 'develop' into hotfix/pbt_cp_dir
bouthilx Jul 29, 2022
cf886dc
Remove test_trial_working_dir_is_created
bouthilx Jul 29, 2022
d3e4935
Fix control_randomness
bouthilx Jul 29, 2022
e7d5b92
Appease pylint for Protocol classes...
bouthilx Jul 29, 2022
a39c818
Rename Algo protocol to make it more generic
bouthilx Jul 29, 2022
d017d1b
Add configspace conversion (#832)
Delaunay Jul 29, 2022
4c94dd2
Using Protocol from typing_ext for py37
bouthilx Jul 29, 2022
7ef65b3
PB2 does not raise when converging, just like PBT
bouthilx Jul 30, 2022
0a67e66
Update src/orion/core/utils/random_state.py
bouthilx Aug 1, 2022
7230143
Remove useless asserts
bouthilx Aug 1, 2022
e3e27d6
Merge branch 'hotfix/pbt_cp_dir' of github.com:bouthilx/orion into ho…
bouthilx Aug 1, 2022
23bd733
Force pymoo dep to 0.5.0 for HEBO
bouthilx Aug 1, 2022
ec910bd
Make test robust to nb of trials
bouthilx Aug 1, 2022
ba4ce25
Merge pull request #903 from bouthilx/hotfix/pbt_cp_dir
bouthilx Aug 2, 2022
a3827b5
Merge branch 'develop' into master-to-dev-tmp
bouthilx Aug 2, 2022
8c6ebe0
Merge pull request #981 from Epistimio/master-to-dev-tmp
bouthilx Aug 2, 2022
6e32f9c
Release candidate v0.2.5
notoraptor Aug 2, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
117 changes: 108 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,23 @@ on:
workflow_dispatch:

jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- run: pip install pre-commit
- run: pre-commit --version
- run: pre-commit install
- run: pre-commit run --all-files
pretest:
runs-on: ubuntu-latest
strategy:
matrix:
toxenv: [black, isort, pylint, doc8, docs]
toxenv: [pylint, doc8, docs]

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
Expand All @@ -31,8 +40,46 @@ jobs:
pip install tox tox-gh-actions
- name: Run pre-tests with Tox
run: tox -e ${{ matrix.toxenv }}
test:

test-dashboard-build:
needs: pretest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: 16
- name: Compile Dashboard
run: |
cd dashboard/src
yarn
yarn build
rm -rf ../build
mv build ..
cd ../../
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e .[test]
- name: Get gecko driver
run: |
wget https://github.com/mozilla/geckodriver/releases/download/v0.31.0/geckodriver-v0.31.0-linux64.tar.gz
tar -xvf geckodriver-v0.31.0-linux64.tar.gz
export PATH=$PATH:$(pwd)
- name: Launch backend
run: orion serve -c .github/workflows/orion/orion_config.yaml &
- name: Launch frontend
run: orion frontend &
- name: Test frontend
run: pytest tests/functional/serving/test_frontend.py

test:
needs: [pre-commit, pretest]
runs-on: ${{ matrix.platform }}
strategy:
max-parallel: 4
Expand Down Expand Up @@ -63,7 +110,7 @@ jobs:
fail_ci_if_error: false

test-long-algos:
needs: pretest
needs: [pre-commit, pretest]
runs-on: ${{ matrix.platform }}
strategy:
matrix:
Expand Down Expand Up @@ -97,7 +144,7 @@ jobs:
fail_ci_if_error: false

test_no_extras:
needs: pretest
needs: [pre-commit, pretest]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
Expand All @@ -120,7 +167,7 @@ jobs:
name: codecov-umbrella
fail_ci_if_error: false
mongodb:
needs: pretest
needs: [pre-commit, pretest]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
Expand Down Expand Up @@ -149,7 +196,7 @@ jobs:
name: codecov-umbrella
fail_ci_if_error: false
backward-compatibility:
needs: pretest
needs: [pre-commit, pretest]
runs-on: ubuntu-latest
strategy:
max-parallel: 2
Expand Down Expand Up @@ -184,7 +231,7 @@ jobs:
name: codecov-umbrella
fail_ci_if_error: false
pypi:
needs: [test, backward-compatibility, test-long-algos]
needs: [test, backward-compatibility, test-long-algos, mongodb, test_no_extras, test-dashboard-build]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
Expand All @@ -200,6 +247,58 @@ jobs:
run: tox -e packaging
- name: Build
run: tox -e build
- name: Test dashboard build deployment on normal install
run: |
# Get package path
export ORION_PACKAGE=$( realpath `find dist/ -type f` )
echo Package path: ${ORION_PACKAGE}
# Move to another folder (to prevent any confusion at installation with repo folder)
cd ~
echo Normal install
pip install ${ORION_PACKAGE}
# Get prefix
export ORION_PREFIX=$( python -c "import sys; print(sys.prefix);" )
echo Check if dashboard build is installed
if ( [ -d "${ORION_PREFIX}/orion-dashboard" ] ); then true; else false; fi
if ( [ -f "${ORION_PREFIX}/orion-dashboard/build/index.html" ] ); then true; else false; fi
if ( ls ${ORION_PREFIX}/orion-dashboard/build/static/js/main.*.js ); then true; else false; fi
echo Check if frontend script can find dashboard build
python -c "from orion.core.cli.frontend import get_dashboard_build_path; get_dashboard_build_path();"
echo Clean-up
pip uninstall -y orion
echo Check if dashboard build is correctly removed
# NB: It seems orion-dashboard build is not deleted,
# but it should be empty after uninstall
if ( [ -f "${ORION_PREFIX}/orion-dashboard/build/index.html" ] ); then false; fi
if ( ls ${ORION_PREFIX}/orion-dashboard/build/static/js/main.*.js ); then false; fi
echo End
cd -
- name: Test dashboard build deployment on user install
run: |
# Get package path
export ORION_PACKAGE=$( realpath `find dist/ -type f` )
echo Package path: ${ORION_PACKAGE}
# Move to another folder (to prevent any confusion at installation with repo folder)
cd ~
echo User install
pip install --user ${ORION_PACKAGE}
# Get prefix
export ORION_PREFIX=$( python -c "import site; print(site.USER_BASE);" )
echo Check if dashboard build is installed
if ( [ -d "${ORION_PREFIX}/orion-dashboard" ] ); then true; else false; fi
if ( [ -f "${ORION_PREFIX}/orion-dashboard/build/index.html" ] ); then true; else false; fi
if ( ls ${ORION_PREFIX}/orion-dashboard/build/static/js/main.*.js ); then true; else false; fi
echo Check if frontend script can find dashboard build
python -c "from orion.core.cli.frontend import get_dashboard_build_path; get_dashboard_build_path();"
echo Clean-up
pip uninstall -y orion
echo Check if dashboard build is correctly removed
# NB: In user install case, it seems folder orion-dashboard itself is not deleted,
# but it should be empty after uninstall
if ( [ -f "${ORION_PREFIX}/orion-dashboard/build/index.html" ] ); then false; fi
if ( ls ${ORION_PREFIX}/orion-dashboard/build/static/js/main.*.js ); then false; fi
echo End
cd -
- name: Publish distribution 📦 to Test PyPI
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@master
Expand All @@ -214,7 +313,7 @@ jobs:
user: __token__
password: ${{ secrets.pypi_password }}
conda:
needs: [test, backward-compatibility, test-long-algos]
needs: [test, backward-compatibility, test-long-algos, test-dashboard-build]
runs-on: ubuntu-latest
env:
ANACONDA_TOKEN: ${{ secrets.anaconda_token }}
Expand Down
Binary file modified .github/workflows/orion/db_dashboard_full.pkl
Binary file not shown.
4 changes: 3 additions & 1 deletion .github/workflows/orion/orion_config.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
storage:
database:
host: '../../.github/workflows/orion/db_dashboard_full.pkl'
host: '.github/workflows/orion/db_dashboard_full.pkl'
type: 'pickleddb'

gunicorn:
bind: '127.0.0.1:8000'
workers: 4
threads: 2

frontends_uri: ["http://localhost:3000", "http://127.0.0.1:3000"]
19 changes: 10 additions & 9 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
---
repos:
- repo: https://github.com/python/black
rev: 22.3.0
rev: 22.6.0
hooks:
- id: black
- repo: https://github.com/codespell-project/codespell
rev: v2.1.0
hooks:
- id: codespell
args:
- --ignore-words-list=nd,reacher,thist,ths,hist
args: ["--skip", "*.html,*.ipynb,dashboard/src/.yarn/**,dashboard/build/**,dashboard/src/src/__tests__/**", "--ignore-words-list=hist,wont"]
- repo: https://gitlab.com/pycqa/flake8
rev: 3.9.2
hooks:
Expand All @@ -26,7 +25,7 @@ repos:
- id: isort
args: ["--profile", "black"]
- repo: https://github.com/asottile/pyupgrade
rev: v2.31.0
rev: v2.34.0
hooks:
- id: pyupgrade
args: ["--py37-plus"]
Expand All @@ -36,8 +35,10 @@ repos:
- id: autoflake
args: ["--in-place", "--expand-star-imports", "--remove-all-unused-imports", "--ignore-init-module-imports"]

- repo: https://github.com/PyCQA/doc8
rev: 0.8.1
hooks:
- id: doc8
args: ["--max-line-length=100", "--file-encoding=utf-8"]
# BUG: Appears not to not always work properly! Enable locally if you want, but the CI will use
# the tox variant for now.
# - repo: https://github.com/PyCQA/doc8
# rev: 0.8.1
# hooks:
# - id: doc8
# args: ["--max-line-length=100", "--file-encoding=utf-8"]
40 changes: 2 additions & 38 deletions .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ confidence=
# --enable=similarities". If you want to run only the classes checker, but have
# no Warning level messages displayed, use"--disable=all --enable=classes
# --disable=W"
disable=abstract-class-instantiated,useless-super-delegation,no-member,keyword-arg-before-vararg,unidiomatic-typecheck,redefined-outer-name,fixme,F0401,intern-builtin,wrong-import-position,wrong-import-order,no-self-use,
C0415, F0010, R0205, R1705, R1711, R1720, W0106, W0107, W0127, W0706, C0330, C0326, W1203, E1136
disable=abstract-class-instantiated,useless-super-delegation,no-member,keyword-arg-before-vararg,unidiomatic-typecheck,redefined-outer-name,fixme,F0401,wrong-import-position,wrong-import-order,
C0415, F0010, R0205, R1705, R1711, R1720, W0106, W0107, W0127, W0706, W1203, E1136

# Enable the message, report, category or checker with the given id(s). You can
# either give multiple identifier separated by comma (,) or put this option
Expand Down Expand Up @@ -128,12 +128,6 @@ max-line-length=100
# Maximum number of lines in a module
max-module-lines=750

# List of optional constructs for which whitespace checking is disabled. `dict-
# separator` is used to allow tabulation in dicts, etc.: {1 : 1,\n222: 2}.
# `trailing-comma` allows a space between comma and closing bracket: (a, ).
# `empty-line` allows space-only lines.
no-space-check=trailing-comma,dict-separator

# Allow the body of a class to be on the same line as the declaration if body
# contains single statement.
single-line-class-stmt=no
Expand Down Expand Up @@ -215,46 +209,28 @@ notes=FIXME,XXX,TODO

[BASIC]

# Naming hint for argument names
argument-name-hint=(([a-z][a-z0-9_]{2,30})|(_[a-z0-9_]*))$

# Regular expression matching correct argument names
argument-rgx=^(([a-z][a-z0-9_]{2,30})|(_[a-z0-9_]*))$

# Naming hint for attribute names
attr-name-hint=(([a-z][a-z0-9_]{2,30})|(_[a-z0-9_]*))$

# Regular expression matching correct attribute names
attr-rgx=^(([a-z][a-z0-9_]{2,30})|(_[a-z0-9_]*))$

# Bad variable names which should always be refused, separated by a comma
bad-names=foo,bar,baz,toto,tutu,tata,lalala,alalal

# Naming hint for class attribute names
class-attribute-name-hint=([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$

# Regular expression matching correct class attribute names
class-attribute-rgx=^([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$

# Naming hint for class names
class-name-hint=[A-Z_][a-zA-Z0-9]+$

# Regular expression matching correct class names
class-rgx=^[A-Z_][a-zA-Z0-9]+$

# Naming hint for constant names
const-name-hint=(([A-Z_][A-Z0-9_]*)|(__.*__))$

# Regular expression matching correct constant names
const-rgx=^(([A-Z_][A-Z0-9_]*)|(__.*__)|([a-z][a-z0-9_]{1,30})|(_[a-z0-9_]*))$

# Minimum line length for functions/classes that require docstrings, shorter
# ones are exempt.
docstring-min-length=-1

# Naming hint for function names
function-name-hint=(([a-z][a-z0-9_]{2,30})|(_[a-z0-9_]*))$

# Regular expression matching correct function names
function-rgx=^(([a-z][a-z0-9_]{2,30})|(_[a-z0-9_]*))$

Expand All @@ -264,21 +240,12 @@ good-names=i,j,k,v,ex,Run,_,f,e
# Include a hint for the correct naming format with invalid-name
include-naming-hint=no

# Naming hint for inline iteration names
inlinevar-name-hint=[A-Za-z_][A-Za-z0-9_]*$

# Regular expression matching correct inline iteration names
inlinevar-rgx=[A-Za-z_][A-Za-z0-9_]*$

# Naming hint for method names
method-name-hint=(([a-z][a-z0-9_]{2,30})|(_[a-z0-9_]*))$

# Regular expression matching correct method names
method-rgx=(([a-z][a-z0-9_]{2,30})|(_[a-z0-9_]*))$

# Naming hint for module names
module-name-hint=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$

# Regular expression matching correct module names
module-rgx=^(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$

Expand All @@ -294,9 +261,6 @@ no-docstring-rgx=^_
# to this list to register other decorators that produce valid properties.
property-classes=abc.abstractproperty

# Naming hint for variable names
variable-name-hint=(([a-z][a-z0-9_]{1,30})|(_[a-z0-9_]*))$

# Regular expression matching correct variable names
variable-rgx=^(([a-z][a-z0-9_]{1,30})|(_[a-z0-9_]*))$

Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Contributing to Oríon
Hi there 👋. Thank you for considering contributing to Oríon 🎉. We're excited to have you here!

We present the guidelines for contributing to the project. They are not hard rules, use your best judgment, and feel free to propose changes to this document in a pull request. If you havn't already, it's a good idea to quickly pass through our [code of conduct](https://github.com/Epistimio/orion/blob/develop/CODE_OF_CONDUCT.md) to ensure everyone has a good time.
We present the guidelines for contributing to the project. They are not hard rules, use your best judgment, and feel free to propose changes to this document in a pull request. If you haven't already, it's a good idea to quickly pass through our [code of conduct](https://github.com/Epistimio/orion/blob/develop/CODE_OF_CONDUCT.md) to ensure everyone has a good time.

## Where do I go from here?
If you have a question, found a bug or have a feature request, you're welcome to open a new issue at https://github.com/Epistimio/orion/issues. It's generally best if you get confirmation of your bug or approval for your feature request before starting to code.
Expand Down
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ prune docs/build
prune docs/src/reference
recursive-include src *.py
recursive-include tests *.py *.yaml *.json *.txt *.yml *.in LICENSE
recursive-include dashboard/build *
include tests/requirements.txt
include .pre-commit-config.yaml
include CITATION.bib
Expand Down
Loading