chiark / gitweb /
fdroidserver.git
6 years agoadd ruamel.yaml to setup.py
Michael Pöhn [Mon, 1 May 2017 20:40:14 +0000 (22:40 +0200)]
add ruamel.yaml to setup.py

6 years agofixed pyflakes/pep warings
Michael Pöhn [Mon, 1 May 2017 20:35:06 +0000 (22:35 +0200)]
fixed pyflakes/pep warings

6 years agorewrite to yaml works for app data now (builds still missing)
Michael Pöhn [Mon, 1 May 2017 19:19:51 +0000 (21:19 +0200)]
rewrite to yaml works for app data now (builds still missing)

6 years agoMerge branch 'repo-update-break-down' into 'master'
Hans-Christoph Steiner [Mon, 3 Jul 2017 22:08:43 +0000 (22:08 +0000)]
Merge branch 'repo-update-break-down' into 'master'

Break down the update.scan_apk() method into smaller pieces

See merge request !288

6 years agoBreak up the scan_apk() method and rename it to process_apk()
Torsten Grote [Wed, 14 Jun 2017 14:12:25 +0000 (11:12 -0300)]
Break up the scan_apk() method and rename it to process_apk()

6 years agogitlab-ci: switch to new Debian/stretch image
Hans-Christoph Steiner [Mon, 3 Jul 2017 18:40:15 +0000 (20:40 +0200)]
gitlab-ci: switch to new Debian/stretch image

ci-images-server!1

6 years agoMerge branch 'archive-policy-fix' into 'master'
Hans-Christoph Steiner [Mon, 3 Jul 2017 09:07:08 +0000 (09:07 +0000)]
Merge branch 'archive-policy-fix' into 'master'

Archive policy overhaul

Closes #323, #292, and #166

See merge request !291

6 years agogitlab-ci: apt upgrade so that tests run with current updates
Hans-Christoph Steiner [Thu, 29 Jun 2017 17:53:15 +0000 (19:53 +0200)]
gitlab-ci: apt upgrade so that tests run with current updates

The MD5 signature stuff was failing in tests because the CI image was
using a quite old version of Java's jarsigner, which had not yet disabled
MD5.

6 years agoupdate: invalidate cache if allow_disabled_algorithms changes
Hans-Christoph Steiner [Thu, 29 Jun 2017 19:15:30 +0000 (21:15 +0200)]
update: invalidate cache if allow_disabled_algorithms changes

Since the cache contains implicitly the result of the jarsigner verify,
if the allow_disabled_algorithms config changes, then the apkcache is
invalid.

6 years agoupdate: write cache file if anything has changed it
Hans-Christoph Steiner [Thu, 29 Jun 2017 18:28:16 +0000 (20:28 +0200)]
update: write cache file if anything has changed it

This fixes a bug introduced in 04db6870 where cachechanged for scan_apks()
was set only by the last call to scan_apk().

6 years agotests: make sure apkcache gets created
Hans-Christoph Steiner [Wed, 28 Jun 2017 20:10:43 +0000 (22:10 +0200)]
tests: make sure apkcache gets created

6 years agoupdate: create 'archive/' if needed when moving APKs
Hans-Christoph Steiner [Tue, 27 Jun 2017 20:07:53 +0000 (22:07 +0200)]
update: create 'archive/' if needed when moving APKs

Normally, just 'repo/' is created by default, e.g. `fdroid init`. If APKs
are dumped into 'repo/', then have invalid signatures, then they'll be
automatically moved to 'archive/', which therefore needs to exist.

6 years agoupdate: allow_disabled_algorithms option to keep MD5 sigs in repo
Hans-Christoph Steiner [Tue, 27 Jun 2017 19:40:39 +0000 (21:40 +0200)]
update: allow_disabled_algorithms option to keep MD5 sigs in repo

The new policy is to move APKs with invalid signatures to the archive,
and only add those APKs to the archive's index if they have valid MD5
signatures.

closes #323
closes #292

6 years agoupdate: allow deprecated signatures only in the archive
Hans-Christoph Steiner [Tue, 27 Jun 2017 07:54:35 +0000 (09:54 +0200)]
update: allow deprecated signatures only in the archive

In April 2017, Oracle's jarsigner and Google's apksigner both switched to
considering any APK signature that uses MD5 as unsigned.  Any old build
is likely to have a MD5 signature.  This sets up the archive as the only
place where these "disabled algorithms" are allowed in the repo, and
marks any APK signed by a "disabled algorithm" as having a "known
vulnerability"

This also now automatically moves APKs with invalid signatures to the
archive section.

#323

6 years agoupdate: move duplicated code into move_apk_between_sections()
Hans-Christoph Steiner [Mon, 26 Jun 2017 19:08:01 +0000 (21:08 +0200)]
update: move duplicated code into move_apk_between_sections()

6 years agofix "Archive Policy:" field, APKs can move in/out of archive
Hans-Christoph Steiner [Fri, 23 Jun 2017 21:55:12 +0000 (23:55 +0200)]
fix "Archive Policy:" field, APKs can move in/out of archive

The original logic was checking keepversions against the len() of ALL the
APKs in the repo/archive.  The correct thing is to check against the
number of APKs available for the given packageName/appid.

closes #166

6 years agotests: test moving files to and from the archive
Hans-Christoph Steiner [Tue, 27 Jun 2017 21:33:24 +0000 (23:33 +0200)]
tests: test moving files to and from the archive

#166

6 years agoMerge branch 'random-small-fixes' into 'master'
Hans-Christoph Steiner [Wed, 28 Jun 2017 21:53:18 +0000 (21:53 +0000)]
Merge branch 'random-small-fixes' into 'master'

Random small fixes

Closes #222

See merge request !292

6 years agoinit: update docs links for next steps
Hans-Christoph Steiner [Wed, 28 Jun 2017 20:23:04 +0000 (22:23 +0200)]
init: update docs links for next steps

6 years agolint: check file extension for metadata
Hans-Christoph Steiner [Fri, 23 Jun 2017 19:58:46 +0000 (21:58 +0200)]
lint: check file extension for metadata

This helps keep fdroiddata clean, on @krt's request.

closes #222

6 years agolocale: fix broken source string
Hans-Christoph Steiner [Fri, 23 Jun 2017 14:38:40 +0000 (16:38 +0200)]
locale: fix broken source string

6 years agoscan APKs for signs of "Master Key" exploit
Hans-Christoph Steiner [Wed, 21 Jun 2017 12:01:01 +0000 (14:01 +0200)]
scan APKs for signs of "Master Key" exploit

This exploit is old, and was fixed in 4.4.  But it was easy to exploit,
so it is still worth scanning for it.  It is also easy to scan for, since
valid APKs should not have files with duplicate names.  In theory, this
could look for duplicate file names for any file, but this limits the
false positives by only checking names of files related to executing code.

fdroidclient#40

6 years agoupdate: move btlog import since btlog.py requires python3-git
Hans-Christoph Steiner [Thu, 15 Jun 2017 15:02:46 +0000 (17:02 +0200)]
update: move btlog import since btlog.py requires python3-git

To keep the dependencies limited to where they are needed.

6 years agogitlab-ci: fix metadata_v0 test to run on the right commits
Hans-Christoph Steiner [Wed, 28 Jun 2017 21:12:04 +0000 (23:12 +0200)]
gitlab-ci: fix metadata_v0 test to run on the right commits

Checking out master will often mean its testing the wrong commit, since
merge requests rarely are in master.

6 years agogitlab-ci: fix metadata_v0 test for new buildozer build flag
Hans-Christoph Steiner [Thu, 22 Jun 2017 14:32:44 +0000 (16:32 +0200)]
gitlab-ci: fix metadata_v0 test for new buildozer build flag

Just remove it, since 0.7.0 does not know about that build flag.

6 years agoMerge branch 'buildozer-build' into 'master'
Hans-Christoph Steiner [Wed, 21 Jun 2017 12:04:45 +0000 (12:04 +0000)]
Merge branch 'buildozer-build' into 'master'

Added a method to build python/kivy projects using buildozer.

See merge request !290

6 years agoTest metadata files updated.
lb@lb520 [Wed, 21 Jun 2017 06:26:52 +0000 (08:26 +0200)]
Test metadata files updated.

6 years agogitlab-ci: properly quote colons
Hans-Christoph Steiner [Tue, 20 Jun 2017 18:24:43 +0000 (20:24 +0200)]
gitlab-ci: properly quote colons

6 years agogitlab-ci: ignore blank Description in metadata_v0 test
Hans-Christoph Steiner [Tue, 20 Jun 2017 16:15:03 +0000 (18:15 +0200)]
gitlab-ci: ignore blank Description in metadata_v0 test

We'll eventually be moving to having the internal representation use a
'' or None when there is no Description, so no use in fixing this.

6 years agobuild.py corrected
lb@lb520 [Tue, 20 Jun 2017 13:56:15 +0000 (15:56 +0200)]
build.py corrected

6 years agoAdded a method to build python/kivy projects using buildozer.
lb@lb520 [Tue, 20 Jun 2017 12:16:31 +0000 (14:16 +0200)]
Added a method to build python/kivy projects using buildozer.

6 years agoMerge branch 'vagrantfile-box' into 'master'
Hans-Christoph Steiner [Mon, 19 Jun 2017 09:36:21 +0000 (09:36 +0000)]
Merge branch 'vagrantfile-box' into 'master'

Copy initial buildserver CPU/memory configuration to final box Vagrantfile

See merge request !279

6 years agoMerge branch 'gradle4' into 'master'
Hans-Christoph Steiner [Sat, 17 Jun 2017 11:01:39 +0000 (11:01 +0000)]
Merge branch 'gradle4' into 'master'

makebs: add gradle4.0

See merge request !289

6 years agoMerge branch 'googlemaven' into 'master'
Hans-Christoph Steiner [Sat, 17 Jun 2017 11:00:57 +0000 (11:00 +0000)]
Merge branch 'googlemaven' into 'master'

Add Google's maven repo to allowed list

See merge request !275

6 years agomakebs: add gradle4.0
Boris Kraut [Fri, 16 Jun 2017 23:39:44 +0000 (01:39 +0200)]
makebs: add gradle4.0

6 years agoset gettext template to UTF-8
Hans-Christoph Steiner [Fri, 16 Jun 2017 20:20:59 +0000 (22:20 +0200)]
set gettext template to UTF-8

6 years agomove translation files to 'locale' like Repomaker does
Hans-Christoph Steiner [Fri, 16 Jun 2017 20:10:37 +0000 (22:10 +0200)]
move translation files to 'locale' like Repomaker does

The django gettext layout seems to the most standard approach with
Python projects.

6 years agojenkins-build: point to new dir named after the script
Hans-Christoph Steiner [Thu, 15 Jun 2017 15:20:38 +0000 (17:20 +0200)]
jenkins-build: point to new dir named after the script

This changes out the arbitrary names used before.

6 years agoignore test files from d06f05e9c87e7ada00c1324c00bca99ed906a6e7
Hans-Christoph Steiner [Thu, 15 Jun 2017 15:16:52 +0000 (17:16 +0200)]
ignore test files from d06f05e9c87e7ada00c1324c00bca99ed906a6e7

6 years agojenkins-build: `git clean` before running fdroid cli tests
Hans-Christoph Steiner [Thu, 15 Jun 2017 15:07:01 +0000 (17:07 +0200)]
jenkins-build: `git clean` before running fdroid cli tests

Otherwise, `fdroid init` will fail since the old repo files are present.

6 years agoupdate: do not crash on screenshots without texts/graphics
Hans-Christoph Steiner [Mon, 12 Jun 2017 14:15:07 +0000 (16:15 +0200)]
update: do not crash on screenshots without texts/graphics

`fdroid update` crashed for apps that only had screenshots but no graphics
or localized texts because destdir was not being set in that case.  This
fixes that and adds a test case.

closes #320
!286

6 years agoMerge branch 'fix' into 'master'
Hans-Christoph Steiner [Mon, 12 Jun 2017 19:26:04 +0000 (19:26 +0000)]
Merge branch 'fix' into 'master'

fix #320 due to unintentionally reusing the same variable name

Closes #320

See merge request !286

6 years agofix !320 due to unintentionally reusing the same variable name
Rui Zhao (renyuneyun) [Mon, 12 Jun 2017 17:04:30 +0000 (18:04 +0100)]
fix !320 due to unintentionally reusing the same variable name

6 years agoMerge branch 'master' into 'master'
Boris Kraut [Sat, 10 Jun 2017 09:55:47 +0000 (09:55 +0000)]
Merge branch 'master' into 'master'

makebuildserver: bump tools, add api26 and build-tools 26

See merge request !284

6 years agomakebuildserver: bump tools, add api26 and build-tools 26
Sergey Eremin [Fri, 9 Jun 2017 17:35:04 +0000 (20:35 +0300)]
makebuildserver: bump tools, add api26 and build-tools 26

6 years agoMerge branch 'fdroiddata-localization-fixes' into 'master'
Boris Kraut [Thu, 8 Jun 2017 01:54:34 +0000 (01:54 +0000)]
Merge branch 'fdroiddata-localization-fixes' into 'master'

fdroiddata localization fixes

See merge request !283

6 years agorewritemeta: do not include empty Summary: or Description:
Hans-Christoph Steiner [Wed, 7 Jun 2017 09:33:01 +0000 (11:33 +0200)]
rewritemeta: do not include empty Summary: or Description:

Since the Summary: and Description: in the metadata file has the highest
priority of all the localized texts, adding blank versions means that
apps would always have blank Summary and Description even if the app has
those fields in the localized sections of fdroiddata and/or in the app's
source repo itself.

fdroiddata!2262

6 years agolint can no longer properly detect unset Summary/Description
Hans-Christoph Steiner [Fri, 2 Jun 2017 11:56:57 +0000 (13:56 +0200)]
lint can no longer properly detect unset Summary/Description

Since the Summary/Description can now be set in the app's source code, or
in fdroiddata/metadata/<packageName>/<locale>/*.txt, this lint check is
no longer valid.  It is important to check whether these texts are empty,
but it'll require some thinking about how and where to best to that.
`fdroid update` will have access to all that data, but perhaps at that
point it is too late.

Also, the current text prioritization puts Summary/Description in the
.txt/.yml file at the highest priority, overriding every other copy,
including in fdroiddata/metadata/<packageName>/<locale> and in the app's
source code.

6 years agosupport fdroid names in filenames for localized texts
Hans-Christoph Steiner [Fri, 2 Jun 2017 11:41:04 +0000 (13:41 +0200)]
support fdroid names in filenames for localized texts

* "full description" is just "description"
* "short description" is "summary"
* "title" is "name"

6 years agosupport fastlane simplified metadata dir
Hans-Christoph Steiner [Fri, 2 Jun 2017 11:39:18 +0000 (13:39 +0200)]
support fastlane simplified metadata dir

Running `fastlane init` gave me a much simpler directory layout, which
turns out to be the same as what is used for fdroiddata.

6 years agoMerge branch 'check-vmx-libvirt' into 'master'
Hans-Christoph Steiner [Wed, 7 Jun 2017 18:19:40 +0000 (18:19 +0000)]
Merge branch 'check-vmx-libvirt' into 'master'

Use Qemu instead of KVM when we don't have VMX/SVM

See merge request !282

6 years agoMerge branch 'localization-template' into 'master'
Torsten Grote [Fri, 2 Jun 2017 14:22:26 +0000 (14:22 +0000)]
Merge branch 'localization-template' into 'master'

add core help strings to gettext source file

See merge request !281

6 years agoMerge branch 'duplicate-apk-processing' into 'master'
Torsten Grote [Fri, 2 Jun 2017 14:20:20 +0000 (14:20 +0000)]
Merge branch 'duplicate-apk-processing' into 'master'

APK processing for duplicate versionCodes and renaming

See merge request !280

6 years agoadd core help strings to gettext source file
Hans-Christoph Steiner [Thu, 18 May 2017 16:54:16 +0000 (18:54 +0200)]
add core help strings to gettext source file

This will allow us to put these up on Weblate and have people start
translating them.  Then we can figure out how to actually include and
deploy the translations later.  It is unfortunately non-trivial, since
we have to manually figure out the install paths.

6 years agoUse Qemu instead of KVM when we don't have VMX/SVM
Willem Mulder [Fri, 2 Jun 2017 09:35:46 +0000 (11:35 +0200)]
Use Qemu instead of KVM when we don't have VMX/SVM

6 years agocheck signature and OpenSSL after APK has proven valid
Hans-Christoph Steiner [Thu, 1 Jun 2017 14:24:31 +0000 (16:24 +0200)]
check signature and OpenSSL after APK has proven valid

If working with a random grabbag of APKs, there can be all sorts of
issues like corrupt entries in the ZIP, bad signatures, signatures that
are invalid since they use MD5, etc.  Moving these two checks later means
that the APKs can be renamed still.

This does change how common.getsig() works.  For years, it returned
None if the signature check failed.  Now that I've started working
with giant APK collections gathered from the wild, I can see that
`fdroid update` needs to be able to first index what's there, then
make decisions based on that information.  So that means separating
the getsig() fingerprint fetching from the APK signature verification.

This is not hugely security sensitive, since the APKs still have to
get past the Android checks, e.g. update signature checks.  Plus the
APK hash is already included in the signed index.

6 years agostrip file extension from generated name for non-APKs
Hans-Christoph Steiner [Thu, 1 Jun 2017 08:29:30 +0000 (10:29 +0200)]
strip file extension from generated name for non-APKs

With a generic file, the file name is the only guaranteed name metadata
field.  So if the name is not specified in the metadata, then the name
is set to the filename.  This changes that so that the file extension is
stripped from that generated name.

6 years agouse var naming scheme in KnownApks (apk --> apkName)
Hans-Christoph Steiner [Thu, 1 Jun 2017 08:27:35 +0000 (10:27 +0200)]
use var naming scheme in KnownApks (apk --> apkName)

Everywhere else, the file name of the APK is called apkName.

6 years agoregexs for getting packageName and versionCode from filenames
Hans-Christoph Steiner [Wed, 31 May 2017 21:02:28 +0000 (23:02 +0200)]
regexs for getting packageName and versionCode from filenames

This is useful for parsing APK files, which can include packageName,
versionCode, and optionally 7 char signing key ID (i.e. <sig>).
This also can set the packageName and versionCoe for non APK files, so
that it is easy to assign them to metadata files, and to allow for
upgrades by setting the versionCode in the filename.

6 years agoindex.xml cannot handle APKs with the same packageName/versionCode
Hans-Christoph Steiner [Wed, 31 May 2017 19:43:40 +0000 (21:43 +0200)]
index.xml cannot handle APKs with the same packageName/versionCode

Really, it is the fdroidclient parser of index.xml that fails, due to the
hardcoded expectation that there will only ever be a single APK for any
given versionCode.  We keep index.xml backwards compatible for old
clients, and use index-v1.json to support new things.  Having multiple
APKs that have the same packageName and versionCode will break the client
v0.103.* since that version uses index-v1.json, but still has the hard-
coded database parsing stuff.

#153

6 years agoupdate: add --rename-apks to force APK filenames to fdroid standard
Hans-Christoph Steiner [Wed, 31 May 2017 19:20:35 +0000 (21:20 +0200)]
update: add --rename-apks to force APK filenames to fdroid standard

uses the standard package.name_123.apk.  If that exists, it appends the
shasum.  If that exists, then its a duplicate, so its deleted. This should
help @SergeWinters with his 12,000 APKs.

6 years agoCopy initial buildserver CPU/memory configuration to final box Vagrantfile
Andrew Patrikalakis [Thu, 1 Jun 2017 13:53:33 +0000 (09:53 -0400)]
Copy initial buildserver CPU/memory configuration to final box Vagrantfile

6 years agoallow APKs with same packageName/versionCode but different signer
Hans-Christoph Steiner [Tue, 30 May 2017 12:52:33 +0000 (14:52 +0200)]
allow APKs with same packageName/versionCode but different signer

There are many APKs out in the wild that claim to be the same app and
version and each other, but they are signed by different keys.  fdroid
should be able to index these, and work with them.   This supports having
the developer's signature via reproducible builds, random collections of
APKs like repomaker, etc.

6 years agogitlab-ci: add index v0 metadata parsing test
Hans-Christoph Steiner [Sat, 27 May 2017 19:13:36 +0000 (21:13 +0200)]
gitlab-ci: add index v0 metadata parsing test

This test is very handy for making sure the old index.xml v0 format does
not inadvertantly change.

6 years agoadd basic test for `fdroid scanner`
Hans-Christoph Steiner [Thu, 25 May 2017 18:39:15 +0000 (20:39 +0200)]
add basic test for `fdroid scanner`

There was no test coverage at all for this command, this is a very basic
test that should prevent things like 2626858450953ac65124765d2cd73d1602846372

6 years agoMerge branch 'master' into 'master'
Hans-Christoph Steiner [Tue, 30 May 2017 19:08:28 +0000 (19:08 +0000)]
Merge branch 'master' into 'master'

Add support for the new Bitbucket look

See merge request !278

6 years agoAdd support for the new Bitbucket look
Alexey Krasilnikov [Tue, 30 May 2017 10:24:07 +0000 (13:24 +0300)]
Add support for the new Bitbucket look

6 years agoMerge branch 'makebs' into 'master'
Hans-Christoph Steiner [Mon, 29 May 2017 08:01:32 +0000 (08:01 +0000)]
Merge branch 'makebs' into 'master'

makebs: update to ndk-r14b and build-tools-25.0.3

See merge request !277

6 years agoMerge branch 'lint-for-newness' into 'master'
Boris Kraut [Fri, 26 May 2017 21:38:35 +0000 (21:38 +0000)]
Merge branch 'lint-for-newness' into 'master'

`fdroid lint` support for SPDX, l18n, dev signatures

Closes #234

See merge request !269

6 years agomakebs: update to ndk-r14b and build-tools-25.0.3
Boris Kraut [Fri, 26 May 2017 14:54:06 +0000 (16:54 +0200)]
makebs: update to ndk-r14b and build-tools-25.0.3

6 years agomake tests pass new lint rules
Hans-Christoph Steiner [Mon, 15 May 2017 14:58:10 +0000 (16:58 +0200)]
make tests pass new lint rules

6 years agolint: use only license tags from https://spdx.org/license-list
Hans-Christoph Steiner [Mon, 15 May 2017 14:46:52 +0000 (16:46 +0200)]
lint: use only license tags from https://spdx.org/license-list

closes #234

6 years agolint: support new per-package subdirs for l18n and dev signatures
Hans-Christoph Steiner [Mon, 15 May 2017 13:17:33 +0000 (15:17 +0200)]
lint: support new per-package subdirs for l18n and dev signatures

Graphics and localized text can now be stored in the package folders,
always in a folder that is named for the locale.  The upstream developer
signature is also now stored, so that the upstream APK can be reproduced
even if they remove their APKs.

#291
fdroiddata!2229
fdroiddata!2224
fdroidclient#15
fdroidserver#174

6 years agolint: add popular URL shorteners to the banned list
Hans-Christoph Steiner [Mon, 15 May 2017 12:58:01 +0000 (14:58 +0200)]
lint: add popular URL shorteners to the banned list

6 years agoscanner: allow google maven
Boris Kraut [Thu, 25 May 2017 18:55:50 +0000 (20:55 +0200)]
scanner: allow google maven

6 years agoMerge branch 'master' into 'master'
Hans-Christoph Steiner [Thu, 25 May 2017 18:49:14 +0000 (18:49 +0000)]
Merge branch 'master' into 'master'

Don't pass root_dir to scan_source

See merge request !276

6 years agoDon't pass root_dir to scan_source
mimi89999 [Thu, 25 May 2017 18:11:14 +0000 (20:11 +0200)]
Don't pass root_dir to scan_source

6 years agoMerge branch 'modernize-pylint' into 'master'
Torsten Grote [Thu, 25 May 2017 14:00:36 +0000 (14:00 +0000)]
Merge branch 'modernize-pylint' into 'master'

modernize pylint

See merge request !252

6 years agoMerge branch 'linphone-packages' into 'master'
Hans-Christoph Steiner [Wed, 24 May 2017 10:57:21 +0000 (10:57 +0000)]
Merge branch 'linphone-packages' into 'master'

Add required packages for linphone 3.1.0 build

See merge request !274

6 years agoAdd required packages for linphone 3.1.0 build
Andrew Patrikalakis [Wed, 24 May 2017 04:19:13 +0000 (21:19 -0700)]
Add required packages for linphone 3.1.0 build

6 years agofix pylink 'dict' has no member 'keystore'
Hans-Christoph Steiner [Thu, 13 Apr 2017 09:58:56 +0000 (11:58 +0200)]
fix pylink 'dict' has no member 'keystore'

6 years agofix pylint unused-argument
Hans-Christoph Steiner [Thu, 13 Apr 2017 10:30:04 +0000 (12:30 +0200)]
fix pylint unused-argument

6 years agoupdate outdated pylint setup
Hans-Christoph Steiner [Thu, 13 Apr 2017 09:57:02 +0000 (11:57 +0200)]
update outdated pylint setup

The logilab-astng lib is dead, replaced by python-astroid.  The crazy astng
plugin is no longer needed also.

#281

6 years agoMerge branch 'python-vagrant-copy-caches' into 'master'
Hans-Christoph Steiner [Tue, 23 May 2017 18:38:57 +0000 (18:38 +0000)]
Merge branch 'python-vagrant-copy-caches' into 'master'

complete staging buildserver setup on jenkins.debian.net using nested KVM instances

See merge request !176

6 years agomakebuildserver: make config['domain'] local var where its needed
Hans-Christoph Steiner [Tue, 23 May 2017 09:59:53 +0000 (11:59 +0200)]
makebuildserver: make config['domain'] local var where its needed

6 years agorefactored vm related code from build.py to vmtools.py
Michael Pöhn [Tue, 23 May 2017 10:53:07 +0000 (12:53 +0200)]
refactored vm related code from build.py to vmtools.py

6 years agoremoved unused buildserver code
Michael Pöhn [Tue, 23 May 2017 09:37:09 +0000 (11:37 +0200)]
removed unused buildserver code

6 years agoleave VirtualBox `vagrant package` as it was originally
Hans-Christoph Steiner [Mon, 22 May 2017 13:50:32 +0000 (15:50 +0200)]
leave VirtualBox `vagrant package` as it was originally

We only need Vagrantfile hacks for KVM.

6 years agorestart builder vm when ssh connection fails
Michael Pöhn [Tue, 25 Apr 2017 12:45:41 +0000 (14:45 +0200)]
restart builder vm when ssh connection fails

6 years agobuild: delete bad builder/ symlinks
Hans-Christoph Steiner [Tue, 25 Apr 2017 08:27:09 +0000 (10:27 +0200)]
build: delete bad builder/ symlinks

If builder/ is a symlink but is not detected as a directory by
os.path.isdir(), then it is a broken symlink.

6 years agowait a sec after suspending
Michael Pöhn [Fri, 14 Apr 2017 13:58:16 +0000 (15:58 +0200)]
wait a sec after suspending

6 years agoreset buildserver vm if vagrant uuid not present
Michael Pöhn [Thu, 13 Apr 2017 16:41:50 +0000 (18:41 +0200)]
reset buildserver vm if vagrant uuid not present

6 years agomakebuildserver vbox logmessage fix
Michael Pöhn [Thu, 13 Apr 2017 10:49:14 +0000 (12:49 +0200)]
makebuildserver vbox logmessage fix

6 years agouse uuid for vbox snapshots again
Michael Pöhn [Wed, 12 Apr 2017 20:06:21 +0000 (22:06 +0200)]
use uuid for vbox snapshots again

6 years agoremoved useless vm validity check; attempted to fix vbox support
Michael Pöhn [Wed, 12 Apr 2017 15:07:50 +0000 (17:07 +0200)]
removed useless vm validity check; attempted to fix vbox support

6 years agodeal with outdated box images in libvirt storage pool
Michael Pöhn [Sun, 9 Apr 2017 13:36:31 +0000 (15:36 +0200)]
deal with outdated box images in libvirt storage pool

6 years agomakebuildserver deal with apt cache lock
Michael Pöhn [Sat, 8 Apr 2017 22:57:59 +0000 (00:57 +0200)]
makebuildserver deal with apt cache lock

6 years agobuild server use up instead or resume; logging
Hans-Christoph Steiner [Mon, 22 May 2017 15:53:12 +0000 (17:53 +0200)]
build server use up instead or resume; logging

6 years agotest script for vmtools
Hans-Christoph Steiner [Mon, 22 May 2017 15:53:47 +0000 (17:53 +0200)]
test script for vmtools

6 years agorevised build server creation
Michael Pöhn [Thu, 6 Apr 2017 09:42:35 +0000 (11:42 +0200)]
revised build server creation