Commit Graph

101 Commits

Author SHA1 Message Date
Olivier Gayot 81bc59019c Remove --use-fuse switch and make it the default
Signed-off-by: Olivier Gayot <olivier.gayot@canonical.com>
2022-01-20 12:01:44 +01:00
Olivier Gayot 9b638270bc Update Makefile .PHONY targets
Signed-off-by: Olivier Gayot <olivier.gayot@canonical.com>
2021-12-13 20:20:32 +01:00
Olivier Gayot babe47f96c Make Makefile unit recipe use same python variable as other recipes
Signed-off-by: Olivier Gayot <olivier.gayot@canonical.com>
2021-12-13 20:15:13 +01:00
Dan Bungert b0167af6e7 make: api depend on gitdeps 2021-12-01 11:55:44 -07:00
Carlos Nihelton 6be4aea138 l-s-c as dep on Makefile, avoid raising exceptions
- And clear .subiquity/var/cache
2021-11-05 18:09:15 -03:00
Michael Hudson-Doyle 744269d074 remove stdlib backports from Python 3.8 2021-10-12 18:55:09 -06:00
Dan Bungert a9bf5e004b sources: add sample source catalog
* Add sample source catalog from impish iso
* Show in dryrun
* Use in one of the runtests invocations (but not really tested yet)
2021-10-08 13:02:55 -06:00
Dan Bungert 3b6b89c5d9 storage/v2: create api test 2021-10-06 18:44:22 -06:00
Dan Bungert b757b0f972 unittest: use pytest-3
pytest-3 lets us set exclude directories, which is helpful with the
desired API testing to seperate them from 'unittest discover' so that we
can keep unit test runtime short.
2021-10-05 17:36:54 -06:00
Jean-Baptiste Lallement 475e900570 Added reference schema for system setup
Co-authored-by: Didier Roche <didrocks@ubuntu.com>
2021-09-28 09:32:36 +02:00
Patrick Wu 78221ebf25 system setup: auto reconf mode general completion
Mostly complete the second task except the API for GUI:
Implement an API in the server to know if we are in reconfigure or setup mode based on existing UID user >= 1000. Fetch that API from the client and set the variant to wsl_setup or wsl_configuration.
2021-09-20 19:39:20 +08:00
Jinming Wu, Patrick 300161e0ea system_setup: Pre fixes 2021-08-31 15:52:03 +02:00
Jinming Wu, Patrick a97cc28ae6 Reconfigure mode: WIP 2021-08-31 15:52:03 +02:00
Jinming Wu, Patrick 486e05eeb1 Makefile: System_setup specific drtrun param 2021-08-31 15:52:03 +02:00
Jinming Wu, Patrick 91fb547fe8 Makefile & setup.py: include corr. build cmds 2021-08-31 15:52:03 +02:00
Dan Bungert ee38a4506f deps: +build-essential 2021-08-10 13:14:08 -06:00
Dan Bungert cd05295db6 make: fix install_deps order
Getting the apt packages needs to be first, as processing probert is
more than a trivial git clone and needs some of those apt packages.
Drop probert as a requirement since it's redundant with the git
checkout.
2021-08-10 13:14:08 -06:00
Dan Bungert ffc4bbde0a runtests support - first API test, has_bitlocker 2021-08-09 10:41:54 -06:00
J-P Nurmi 95e63b7bf6
Make install_deps depend on gitdeps (#1019)
The installer defines PYTHONPATH correspondingly to ensure correct
versions of curtin and probert.
2021-08-05 15:00:45 -06:00
Dan Bungert 502c1193fd
Temp disable schema check on Impish (#1000)
Impish is adding more timezones, which is cool, but breaks my schema
check, so disable this there for now and come back later with a better
answer.

Also schema check seems to need curtin.
2021-07-13 11:17:55 -06:00
Michael Hudson-Doyle cf931f673f update script to update exsting checkout 2021-07-05 09:23:39 +12:00
Michael Hudson-Doyle 50ce450f2a add a gitdeps target to Makefile that checks out probert and curtin
This uses a silly python script to get the exact version that the
snapcraft.yaml specifies.
2021-07-02 13:48:49 +12:00
Dan Bungert 657f27ebf9
Rearrange makefile targets (#960)
Skip a recursive make step and simplify a bit.
Add dryrun-server.
Also an unrelated whitespace fix.
2021-05-25 16:59:22 -06:00
Dan Bungert 4f9de12556
Split unit / integration tests a bit (#956)
Unit tests should be quick and run frequently.
Integration tests can be longer and run less often.
Split them up.
2021-05-17 07:31:29 -06:00
Dan Bungert d04b6a9a3e
dryrun: use the simple machine config (#952)
`make dryrun` will now use the simple sample machine config instead of
probing local hardware.   That local probe only seems to be viable
anyhow if we're running as root, and that's vulnerable to real problems
if dryrun is less than 100% insulated from making real machine changes.
2021-05-12 16:23:58 -06:00
Dan Bungert f823a1243f Generate schema json file on `make schema` 2021-03-03 11:30:43 -07:00
Michael Hudson-Doyle d448adb1c1 probert moved to the canonical github org a while ago 2021-02-19 10:33:38 +13:00
Marcus Tomlinson 927c324e0a Fix make install_deps and make unit/check 2020-11-09 12:40:39 +00:00
Michael Hudson-Doyle 85b35c9e87 steal contextlib from Python 3.8
Python 3.6's does not have asynccontextmanager.
2020-09-11 16:55:26 +12:00
Foster "Forst" Snowhill ec1fa0fe01
Makefile: add xorriso and isolinux to install_deps
In order to use the inject-subiquity-snap.sh script, we need some extra dependencies: xorriso and isolinux.

When xorriso is missing, the following error occurs:

    ./scripts/inject-subiquity-snap.sh: line 184: xorriso: command not found

When isolinux is missing, the image build step for x86-64 is failing:

    xorriso : FAILURE : Given path does not exist on disk: -boot_image system_area='/usr/lib/ISOLINUX/isohdpfx.bin'

This file is not present in the source ISO image, so it has to come from the isolinux package.
2020-08-02 18:05:34 +02:00
Michael Hudson-Doyle a05b030085 fix lint 2020-05-08 15:44:07 +12:00
Dimitri John Ledkov 2e85a2ecd6 i18n: add scripts to help with translation updates.
Signed-off-by: Dimitri John Ledkov <xnox@ubuntu.com>
2020-05-06 13:22:13 +01:00
Michael Hudson-Doyle 46c539c924 make "make schema" output be just the schema and nothing else 2020-04-08 20:53:35 +12:00
Maciej Borzecki 93ac6b94a3 Merge remote-tracking branch 'upstream/master' into bboozzoo/uc20-recovery-chooser 2020-03-31 17:14:28 +02:00
Michael Hudson-Doyle 170f44663e actually validate version field, reduce indentation a bit 2020-03-30 11:05:51 +13:00
Maciej Borzecki a147c720ba console_conf: run as recovery chooser when --recovery-chooser-mode is provided
Add support for --recover-chooser-mode command line argument. When provided, run
as a recovery chooser, rather than as a regular console-conf instance.

Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
2020-03-24 15:09:50 +01:00
Dimitri John Ledkov 88dd0e021f Update clean target to regenerate .pot 2020-03-10 12:00:13 +00:00
Michael Hudson-Doyle 9322184af6 have "make install_deps" install some recently added deps 2019-12-12 10:26:57 +13:00
Michael Hudson-Doyle 05f9b10974 Replace --uefi with --bootloader to select any bootloader style for dry-run
Relatedly, make 'MAKE_BOOT in disk.supported_actions' depend on
bootloader style not architecture.
2019-05-13 09:27:12 +12:00
Seth Fitzsimmons 51d0461071 Add jsonschema dependency 2018-07-02 12:39:52 -07:00
Scott Moser 74a5f16535
Add main to subiquity, and use it frm make ui-view.
Add a main to subiquity so that you can run subiquity with:
 python3 -m subiquity
2018-06-06 14:30:03 -04:00
Scott Moser af94275618 Make tox and Makefile more similar.
This does a few things with the end goal of making simplifying and
making consistent tox and 'make' methods of test or check.

Things here:
 * move python programs out of bin and into their own main.  Use
   entry_points to get scripts written for them.  One gain here is
   that we no longer have python programs that are not named .py.
   flake8 and friends would not check those programs by default.
 * install scripts in bin/ using the setup.py scripts and adjust
   snapcraft.yaml and debian packaging for that.
 * declare and use PYTHON in Makefile to avoid repeating 'python3'
 * declare and use CHECK_DIRS in Makefile for list of dirs to check.
 * no longer run 'flake8' from 'make check' by default.
 * remove the old tests/ directory.
2018-06-05 22:19:17 -04:00
Michael Hudson-Doyle 8e50ce252c Merge branch 'master' into mwhudson/snap-screen 2018-05-25 11:44:19 +12:00
Michael Hudson-Doyle 293793fa49 merge master 2018-05-25 11:06:23 +12:00
Michael Hudson-Doyle 43f581bca4 update travis jobs: test on cosmic, run make lint 2018-05-25 10:56:01 +12:00
Ryan Harper 618142f132 Rework make lint target to use pep8 pyflakes3 targets 2018-05-24 16:59:32 -05:00
Ryan Harper acd24c0796 Add pep8 script 2018-05-24 16:51:51 -05:00
Ryan Harper 0849db7c14 Add pyflakes3 target and script 2018-05-24 16:51:49 -05:00
Scott Moser d71cb7cadf Makefile: Always put PYTHONPATH into environment
Just use 'export PYTHONPATH' in the Makefile so that we all targets
have that in their environment.
2018-05-24 12:47:16 -04:00
Michael Hudson-Doyle 676d22482e note new dependencies in a few places 2018-05-22 23:15:13 +12:00