summaryrefslogtreecommitdiff
path: root/scripts
Commit message (Collapse)AuthorAgeFilesLines
* scriptslib: Update 'import_meta_ybd' for current YBDPedro Alvarez2017-02-091-2/+5
| | | | | Now the strip-gplv3 configure extension works again when using YBD metadata.
* Fix release-upload scrpit to use new options in list-artifactsPedro Alvarez2016-07-271-1/+2
| | | | Change-Id: Idbdfca36a75b5b0f927e22ba06468cb39c946ba0
* extensions/strip-gplv3.configure: Fix to work with YBDEdward Cragg2016-05-041-1/+109
| | | | | | | | Add an object and functions allowing metadata to be read more easily from multiple sources, either morph metadata, or with a conversion function for YBD formatted metadata. Change-Id: I94ea2425edecb4a659968134b0900081e22913d3
* scripts/licensecheck.py: Fall back to `git clone` if morph isn't availableEdward Cragg2016-04-211-2/+25
| | | | | | | | | | | | | This is a quick fix to allow the script to be run without dependence on morph. As discussed on IRC, since it isn't a simple problem finding a way to safely allow access to caches from different build tools, such a solution hasn't been attempted. When falling back to `git clone`, this change prevents the script from using an existing cache, generating its own instead by cloning from the Baserock cache server, which takes longer. Also add automatic creation of REPOS_DIR if it doesn't exist. Change-Id: Id4b0977a2cae90068b6c2e2fd0c62470287bdfcb
* Make use of argparse in check-unpetrify-refs.pyBen Brown2016-03-061-13/+14
| | | | Change-Id: I60f8e45073b1268b31d4654b2ab8b6342fa1d6e1
* Add small python library for common(ish) code in scripts/Ben Brown2016-03-044-53/+58
| | | | Change-Id: I74ab24ecdcda1c358a2c187f89685bdd8f949c55
* Update licensecheck.py and strip-gplv3.configurePedro Alvarez2016-03-011-1/+3
| | | | Change-Id: I3149413c2126194c538105d26b93fde9a8298ed0
* Allow --trove-host to be specifiedBen Brown2016-03-011-2/+11
| | | | Change-Id: Ie04a7979c2591dfdb9ead256620593547020abb0
* Add a script for sanity checking unpetrify-refsBen Brown2016-03-011-0/+86
| | | | | | | | | I'm not entirely sure whether the validity of unpetrify-refs is something that is cared about enough for this to be accepted, but I am currently making use of the unpetrify-refs and this script was helpful to me. Change-Id: If689efe4d37ba6fcb7561eb91ea2383de370ceda
* licensecheck.py: Update remote before checking outPedro Alvarez2016-02-231-0/+3
| | | | Change-Id: I348df2dda3df3e6d85b6b601163972ca5085ae19
* scripts: remove licensecheck.shPedro Alvarez2016-02-201-101/+0
| | | | Change-Id: I0597ca702251ff8b2b890707fd0d3e1a3ff5ee81
* Add python script to check licenses of a given systemPedro Alvarez2016-02-201-0/+182
| | | | | | | | | | | | | This python script will replace the previous one (scripts/licensecheck.sh) to make it work without `morph edit`. The main purpose of this script is to check licenses of the GENIVI Baseline systems, so it will ignore GPLv3 chunks given that they are stripped from these systems. https://storyboard.baserock.org/#!/story/71 Change-Id: I0c6d33163a0ace003e4b34da6a058bb88306f8a7
* Fix release scripts to not use 'sysbranchdir'Pedro Alvarez2016-02-122-6/+4
| | | | | | https://storyboard.baserock.org/#!/story/71 Change-Id: I4862406d19c74cdd6135b52304474562aa3ba511
* scripts/release-build: Further fixes for fallout from 6f4849a91e62a4ec0Sam Thursfield2015-12-221-1/+0
| | | | | | Right now Mason builds succeed but the deployment fails. Change-Id: I3a933e712409b5652425ec29cc336f519fe31ccc
* scripts/release-build: Don't create a 'builds' directorySam Thursfield2015-12-211-3/+0
| | | | | | | | | | It no longer works because we use the 'distbuild' command instead of the 'distbuild-morphology' command. Morph puts distbuild build logs in a subdirectory now, anyway, so we don't need to worry about that in this script. Change-Id: I49f2c64cb0c3c859bb21cd0bc84a2aa41efe92f1
* scripts/release-build: Load morph files 'correctly'Sam Thursfield2015-12-211-1/+1
| | | | | | | | | | | Recent changes in the definitions format have added VERSION and CHANGES files. The morphlib API needs to be used slightly differently as a result. This change should have no effect on the operation of the script right now, but it may prevent problems in future. Change-Id: I0011eddfeb3a5f14fde36eac4f970d8b3c95984c
* scripts/release-build: Update for changes in MorphSam Thursfield2015-12-211-6/+3
| | | | | | | | | | | There's no 'distbuild-morphology' command any more, but this script expects to run from a definitions clone anyway, so we can use the 'distbuild' command. Also, the 'search_for_workspace' parameter is gone, because workspaces are going/gone. Change-Id: Ib087992a14a8a14f0a994febafd15d43124aead7
* Fix various release scripts: read_morphology is now read_filePedro Alvarez2015-11-233-3/+3
| | | | Change-Id: I28cdd26385ada1ed98f3e7ead8085f2678507f16
* Fix release-build: read_morphology is now read_fileRichard Ipsum2015-11-211-1/+1
| | | | Change-Id: I6971dbfa803c08d700574f61766fe7d5de2d1442
* scripts/release-build: Allow setting controller portsSam Thursfield2015-10-071-4/+15
| | | | | | | | | | This is useful if you have a distbuild controller with a non-standard port. It now also warns if something couldn't be built because there is no build network for that arch available. Change-Id: I5fcac2be9aa198afe16b76564d8307fed04bd526
* Add schemas for Baserock definitions formatSam Thursfield2015-09-181-0/+50
| | | | | | See schemas/README.schemas for information. Change-Id: I6c384692dbf70017a3ece2ed56c1f8cbe60b493d
* scripts: Fix release-build to not depend on a system branchbaserock-15.34baserock/release/baserock-15.34Pedro Alvarez2015-08-191-3/+16
| | | | | Signed-off-by: Sam Thursfield <sam.thursfield@codethink.co.uk> Change-Id: I1c8d2ed5d9c06466bdaac1c1e914f5f9e3969e11
* licensecheck.pl: sync with upstreamJavier Jardón2015-03-171-10/+18
| | | | Change-Id: Id3b868db36554541334dae3bd6363d5adc0289b8
* Include rsync as GPL3 chunkPedro Alvarez2015-03-111-0/+1
|
* cycle.sh - allow user to specify target system version namePaul Sherwood2014-11-071-10/+21
|
* Move os-init-script out of /rootAdam Coldrick2014-10-271-1/+1
|
* Stop assuming that known_hosts exists, and fix a typoAdam Coldrick2014-10-272-1/+5
|
* Mason: Provide moving parts needed for testing on OpenStackMichael Drake2014-10-271-0/+524
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Testing currently involves building a Baserock devel system, deploying it as a VM and testing that that deployed VM can build Baserock successfully. Originally Mason used scripts/release-test to do testing on a kvm host. In this patch the bits needed to do testing on an OpenStack host are provided. The new scripts/release-test-os script is based on the old scripts/release-test, and it uses `nova` to boot/delete/etc images and instances on OpenStack. The mason script, `mason.sh` is updated to optionally run either scripts/release-test-os or scripts/release-test, depending on whether TEST_INFRASTRUCTURE_TYPE is set to 'openstack' or 'kvmhost' in the Mason's mason.conf. The `os.conf` file is sourced by `mason.sh`, and should be updated to contain the relevant credentials and details for the OpenStack tenancy to be used for test deployments. When Mason creates a test OpenStack instance, there is potential for a race condition depending on whether ssh comes up before the cloud-init has finished resizing the instance's disc. If morph running on the test instance tries to build before the disc size is increased, it will fail complaining of insufficient free space. To eliminate this race, the cloud init script `os-init-script` is passed to `nova boot`. This touches a file after the disc is resized, which Mason checks for before it runs a `morph build`. The `os.conf` and `os-init-script` files must both be placed in the Mason system's `/root/` directory before the system is deployed. This should happen in the `mason.configure` configuration extension. The `mason.configure` configuration extension should also be updated to handle adding two extra variables to the `mason.conf` file. These are the aforementioned TEST_INFRASTRUCTURE_TYPE and OPENSTACK_NETWORK_ID, which is the ID for the configured OpenStack network that test instances should use.
* Merge remote-tracking branch ↵Richard Maw2014-10-101-5/+12
|\ | | | | | | | | | | 'origin/baserock/ps/cycle-refuses-to-delete-TEST-system' Reviewed-by: Richard Maw (+2)
| * Tidy up a bit, and don't let user run this in TEST systemPaul Sherwood2014-10-091-4/+11
|/
* Strip GNU patch from genivi baseline systemsPedro Alvarez2014-10-031-0/+1
| | | | | Reviewed-by: Paul Sherwood Reviewed-by: Sam Thursfield
* Add cycle script for build+deploy to selfPaul Sherwood2014-10-021-0/+43
|
* Deploy Masons to use source on upstream trovesRichard Maw2014-08-281-2/+9
| | | | | | | | | | | | | | | | | The per-mason trove only needs to worry about being an artifact cache, so we can prevent it populating itself from the upstream trove by making it use the SSH protocol for fetching sources, and not registering its ssh key with the upstream trove. The MASON_UPSTREAM_TROVE_ADDRESS option has been removed, as this is now the TROVE_HOST. The distbuild network is now configured to use the upstream trove for sources, and the local trove for artifacts, with the ARTIFACT_CACHE_SERVER option. mason.configure now uses ARTIFACT_CACHE_SERVER to tell deploy commands which server to fetch artifacts from.
* Update licensecheck.sh to use the new definitions tree.Pedro Alvarez2014-08-201-14/+12
|
* Use file: URI for list-artifacts in release-uploadRichard Maw2014-08-191-1/+1
| | | | | | This requires the script be run in the top of the definitions repository, but will actually try to upload the changes that were tested, rather than the current HEAD.
* Remove all VM storage together in one commandRichard Maw2014-08-191-4/+1
|
* Never remember hosts when running ssh commands on instancesRichard Maw2014-08-191-4/+2
| | | | | The rest of the ssh commands are to the VM host, which we can't change all of, since some are run as part of the deployment extension.
* Rename wait_online to wait_until_onlineRichard Maw2014-08-191-2/+2
|
* Rename Instance -> DeployedSystemInstanceRichard Maw2014-08-191-2/+3
| | | | This name requires less context to understand its use.
* Various style fixes to release-testRichard Maw2014-08-191-4/+7
|
* Implement load_cluster_systems in terms of load_morphologyRichard Maw2014-08-191-2/+1
|
* Rename MorphologyFrobber -> MorphologyHelperRichard Maw2014-08-191-13/+12
| | | | It was a sucky placeholder name that wasn't replaced by anything better.
* Add a script to organize morpholgies into definitionsbaserock/franred/organize-morphologies-script_v2Francisco Redondo Marchena2014-08-181-0/+266
|
* Add script for testing releasesRichard Maw2014-08-051-0/+402
| | | | | This will deploy and run build tests on systems listed in the morphology passed as its first argument.
* Pass cluster morphology to release upload script.baserock/michaeldrake/release-upload-clusterMichael Drake2014-08-011-9/+12
| | | | This makes the release-upload script more versatile.
* Add --upload-build-artifacts settingLars Wirzenius2014-07-301-1/+13
|
* Join short lines into one line, for readabilityLars Wirzenius2014-07-301-2/+1
|
* Avoid running rsync if source file list is emptyLars Wirzenius2014-07-301-1/+4
|
* Refactor long method into smaller onesLars Wirzenius2014-07-301-19/+37
| | | | For comprehensibility.
* Add markers around list in debug logLars Wirzenius2014-07-301-0/+2
|