Commit Graph

61 Commits

Author SHA1 Message Date
Benoit Chevallier-Mames
17704da169 test: make our tests reproducible
by seeding random generators in python random or in numpy random
closes #546
2021-10-13 13:58:36 +02:00
Arthur Meyre
286dda79b2 fix: correct pytest command in Makefile 2021-10-12 11:18:00 +02:00
Arthur Meyre
8490f88227 chore: change coverage to have global infos
- have a small hack to dump pytest-cov report
2021-10-11 19:06:37 +02:00
Arthur Meyre
a595139448 chore: add changelog_helper to generate changelogs using semantic-release
- freeze semantic-release to specific version to keep internal APIs stable
- add gitpyhton for changelog_helper
- add a target to very easily create a changelog
2021-10-07 16:49:00 +02:00
Arthur Meyre
b363db6700 chore(tools): centralize all versions related utils in a single script
- update version to be semver compliant with the new tools
- update make targets and CI workflow to use the new version tool
- update release issue template
2021-10-07 16:49:00 +02:00
Arthur Meyre
05e1227269 chore: update env docker to have runtime lib path in LD_PRELOAD
- update the rest of the dockers, script and CI to stop setting LD_PRELOAD
2021-10-07 09:58:23 +02:00
Arthur Meyre
1fc9a36ab6 chore: upgrade nbmake to version without pathlib
- it breaks poetry installs with a deprecated dependency
- opened PR to solve: https://github.com/treebeardtech/nbmake/pull/48
- upgrade dependencies at the same time
- re-order installation steps for make setup_env to first install pip
2021-10-05 13:34:58 +02:00
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