Arthur Meyre
6fc6991839
chore: add __version__ and automated tools to update it
...
- also add a checker to verify that versions are in sync
2021-10-04 09:40:10 +02:00
Umut
ad95aba053
chore: run extract_machine_info.py before running the benchmark target, fix missing MACHINE_NAME variable exception
2021-09-27 17:59:48 +03:00
Arthur Meyre
2b5f152f23
fix(tests): disable warnings for notebook tests
...
- a warning in a package unrelated to the project made pytest fail
- run notebook tests without warnings as sources are already tested with
warnings treated as errors
2021-09-27 11:32:38 +02:00
Arthur Meyre
1a340e111e
tools: add shell_lint target to lint .sh files
...
- update docker image to install shellcheck
- fix lint errors in files
2021-09-21 11:16:14 +02:00
Arthur Meyre
35011bd403
build: test codeblocks in CI
2021-09-20 17:24:16 +02:00
Arthur Meyre
5aa4ce1ef8
fix(build): test coverage in pytest
2021-09-20 17:24:16 +02:00
Arthur Meyre
dc5446d5bf
fix(tools): force reinstall when installing setuptools
...
- prevents a poetry bug from breaking the package
2021-09-20 14:02:01 +02:00
Umut
7088f234cb
chore: set notebook timeout to 3 hours
2021-09-16 17:18:48 +03:00
Arthur Meyre
157dcc44bc
tools: add a script to easily upgrade python dependencies
2021-09-16 13:40:07 +02:00
Benoit Chevallier-Mames
1c82db2706
test: adding tests on script
...
closes #288
2021-09-16 12:04:32 +02:00
Umut
407e57c384
chore: make docker_publish_measurements target work better locally, improve daily benchmarks workflow
2021-09-16 10:54:57 +03:00
Arthur Meyre
5871d4e187
fix(tools): update Makefile for moved notebooks
2021-09-15 20:07:21 +02:00
Arthur Meyre
a69975742f
docs: move notebooks to docs and use nbsphinx to include them in the html
...
- update env image to install pandoc required by nbsphinx
2021-09-15 18:01:30 +02:00
Umut
ae3c179294
chore: disable attaching tty to docker during benchmarks
2021-09-15 12:50:08 +03:00
Umut
c253219277
feat: implement performing and publishing benchmarks with a single make target
2021-09-15 10:08:08 +03:00
Umut
b7a7d3d064
feat: make the inference in examples homomorphic
2021-09-13 17:12:11 +03:00
Arthur Meyre
a8e7f0e237
tools: create Docker release image, helper build script and requirements
...
- also create Documentation and issue template
2021-09-08 18:16:30 +02:00
Umut
d02e848fca
refactor: update benchmark infrastructure to be compatible with the new progress tracker
2021-09-08 12:31:32 +03:00
Benoit Chevallier-Mames
4778dc503b
doc: use the imperative mode in docstring
...
closes #230
2021-09-08 11:11:16 +02:00
Arthur Meyre
98c25c5d8b
chore: rename packages for concretefhe
2021-09-07 10:05:28 +02:00
Arthur Meyre
959328e0f5
chore: rename hdk to concrete first pass
2021-09-06 18:43:49 +02:00
Arthur Meyre
468686a92f
tools: add pytest_nb target to easily test notebooks
2021-09-03 09:58:00 +02:00
Arthur Meyre
ad0a65078f
tools: remove serialize_targets.sh which is useless
...
- use make --keep-going instead
2021-09-01 11:51:54 +02:00
Arthur Meyre
3b339b1e88
tools: make sphinx-build warnings errors
...
- add -W and --keep-going for SPHINXOPTS
- use $(MAKE) for make invocations
- build the docs in the conformance phase as the sphinx build has checks
2021-09-01 10:31:33 +02:00
Umut
a7eb2973a6
chore(Makefile): run clean_docs before running docs to prevent obsolete warnings
2021-09-01 10:57:07 +03:00
Arthur Meyre
135805a1b9
tools: make matplotlib work inside the dev docker
...
- use special DNS from docker
- install tkinter
- use proper matplotlib backend
- add instructions to install xserver in docs/dev/GETTING-STARTED.md
2021-08-31 14:57:20 +02:00
youben11
e408b292d3
ci: pulling latest image when building docker img
2021-08-31 10:12:10 +01:00
Arthur Meyre
61daa49e9d
fix(tools): update Makefile targets to allow make binary path with spaces
...
- avoids issues if the make binary path contains spaces
2021-08-26 15:31:58 +02:00
Arthur Meyre
3541e4ff4e
fix(tools): various Makefile improvements
...
- sync output recursively for make calls
- add a script to get the number of cpus on mac and linux
- Makefile formatting
- update serialize_targets.sh to invoke the proper make binary
- Add instructions to install make
2021-08-26 14:32:18 +02:00
Arthur Meyre
202dffb4a5
Build/env dev docker 127 ( #196 )
...
build: add workflow to create HDK env Docker Image
- make bot username a secret
- update Makefile to pull the HDK image
- have a separate Makefile for the dev specific Docker Image needs
2021-08-25 14:09:54 +02:00
Arthur Meyre
30e00df977
chore(tools): update pylint target to lint dirs separately
...
- avoids triggering duplicate code detection between hdk tests and
benchmarks
- update helper script serialize_targets.sh to avoid printing dir
2021-08-24 16:00:42 +02:00
Umut
4b3fb772b8
chore: integrate checking whether notebooks are sanitized into the pcc target
2021-08-24 10:56:54 +03:00
Arthur Meyre
f91092ac38
tools: update pytest make target to have a report on coverage
...
- allows to have coverage information without using make coverage
- make coverage remains recommended to check a commit's content
2021-08-20 09:53:02 +02:00
Umut
94fef5e202
feat(debugging): provide a way to export the drawn graph as a png file
2021-08-18 17:33:19 +03:00
Umut
1b33cd7307
feat(Makefile): enable jupyter notebook support in docker environment
2021-08-18 14:49:09 +03:00
Arthur Meyre
5d26ad499a
fix(build): properly serialize calls to mypy
...
- add an helper script to serialize make commands
- serialize mypy commands as they may overwrite each others cache
- format coverage command to avoid being ridiculously long
2021-08-18 12:23:53 +02:00
Umut
2dda00aeef
chore(Makefile): add -s flag to pytest to improve the output of compiler tests
2021-08-18 11:31:06 +03:00
Arthur Meyre
63eac35a43
build: launch pcc targets in parallel to speed up checks
...
- change call in github actions as proper flags are in the Makefile
- change mypy_ci target to avoid cache issues with multiple mypy instances
2021-08-17 18:27:31 +02:00
Umut
8df212ff49
bench: create the benchmarking infrastructure
2021-08-17 13:17:28 +03:00
Arthur Meyre
8dfed58829
chore(tools): add flake8 linter, flake8-bugbear plugin and fix issues
...
- remove detected `from hdk imports` (use relative imports instead) we ARE
the package
- change the way Float32 and Float64 are defined
2021-08-17 09:22:39 +02:00
Umut
479176e368
doc(examples): create quantized linear and logistic regression examples
2021-08-16 15:57:18 +03:00
Arthur Meyre
048bb61e8e
fix(tools): add git to the docker image to be able to make coverage
...
- move comment in Makefile and make it silent
2021-08-13 18:11:43 +02:00
Umut
8fd0ae5c85
feat(docker): create a docker environment to test and develop MLIR stuff
2021-08-12 10:51:26 +03:00
Benoit Chevallier-Mames
8f3e461e3b
fix: docstring following google conventions
...
refs #122
2021-08-11 18:11:56 +02:00
Benoit Chevallier-Mames
765df12a2d
doc: add autogenerated doc in sphinx
...
refs #118
2021-08-11 15:23:11 +02:00
Arthur Meyre
e296e9667e
chore(tools): use /bin/bash as shell for the Makefile
...
- tested some commands with an environment which had /bin/sh as default
shell, some did not work, this fixes it
2021-08-11 10:40:00 +02:00
Arthur Meyre
f910f1fa9c
chore(tools): add user friendly coverage make command
...
- add a command allowing to run tests and coverage in one go
2021-07-27 12:14:42 +02:00
Arthur Meyre
deb7631a3a
chore(tools): add mypy_test and mypy_ci target
...
- update tests that were failing with new mypy check
- mypy_test runs mypy on all .py source files in tests
- mypy_ci runs mypy and mypy_test, mypy is for source i.e. hdk/ only
2021-07-26 18:28:39 +02:00
Arthur Meyre
a060aaae99
feat(tracing): add tracing facilities
...
- add BaseTracer which will hold most of the boilerplate code
- add hnumpy with a bare NPTracer and tracing function
- update IR to be compatible with tracing helpers
- update test helper to properly check that graphs are equivalent
- add test tracing a simple addition
- rename common/data_types/helpers.py to .../dtypes_helpers.py to avoid
having too many files with the same name
- ignore missing type stubs in the default mypy command
- add a comfort Makefile target to get errors about missing mypy stubs
2021-07-26 17:05:53 +02:00
Arthur Meyre
36d93a60d9
chore(tools): add mypy as dev tool but don't check in CI for now
...
- we'll see if the benefits of static typing are worth it or not
2021-07-19 16:25:24 +02:00