lp:~smoser/git-ubuntu

Owned by Scott Moser
Get this repository:
git clone https://git.launchpad.net/~smoser/git-ubuntu
Only Scott Moser can upload to this repository. If you are Scott Moser please log in for upload directions.

Branches

Name Last Modified Last Commit
quick-compilation-refactor 2020-02-05 21:25:30 UTC
Update "main" to support running testgroups and 'execute'.

Author: Scott Moser
Author Date: 2020-02-05 14:59:00 UTC

Update "main" to support running testgroups and 'execute'.

This changes the "main" portion of the script to support usage like:

 - show usage:
   git-ubuntu-self-test --help

 - run the provided testgroup[s]
   git-ubuntu-self-test <testgroup> [<testgroup]

   the testgroups are: pipcheck mainhelp pylint pytest

   To run just the 'mainhelp' test:

       git-ubuntu-self-test mainhelp

 - run all test groups:
   git-ubuntu-self-test

 - execute any command in the snap environment.
   git-ubuntu-self-test execute <command> [args]

Also puts a nice 'SUCCESS' or 'FAIL' as the last line in a run.

Coupled in, there are further changes to the 'mainhelp' testgroup
to actually just execute 'python3 -B <script> --help' rather than
attempting to compile.

Also, drop the python -B usage. It does not seem necessary.
You can test the files in the snap with the self-test from the tree
by doing:

    ./snap-wrappers/wrappers/git-ubuntu-self-test execute \
        env -u TEST_TREE ./snap-wrappers/wrappers/git-ubuntu-self-test

test-tree-inside-snap 2020-02-04 15:16:13 UTC
Address review feedback.

Author: Scott Moser
Author Date: 2020-01-30 16:45:29 UTC

Address review feedback.

Rename set_snap_version to get_snap_version_info and document it a bit.
Do not export the variables in the function, require the caller to do
that.

Also move the 'snap run' magic into its own function and add some
doc on how/why it works.

add/debian-multimedia 2018-12-20 15:04:15 UTC
Add debian-multimedia.

Author: Scott Moser
Author Date: 2018-12-20 15:04:15 UTC

Add debian-multimedia.

This package was requested on ubuntu-server mailing list today.

cleanup/tox-use-self-test 2018-12-04 22:13:48 UTC
Drop tox. Instead run tests on tree in snap environment.

Author: Scott Moser
Author Date: 2018-11-06 15:54:08 UTC

Drop tox. Instead run tests on tree in snap environment.

The use of tox for git-ubuntu unit tests and pylint is problematic
for a number of reasons.
 - as with all virtualenv, any dependency that is not pure python
   requires compilation and non-virtualenv dependencies.
 - distro_info is not installable from pypi.
 - git-ubuntu is expected to run in the snap environment.

All of these issues are not a problem in the snap environment. The
solution here is to run the tests in an already-existing snap environment.
This does present a bit of a chicken-egg problem, but one that is only
exposed when we add new python dependencies to git-ubuntu.

git-ubuntu-self-test is modified to accept a TEST_TREE environment
variable and do the right thing in both snap environment and development
tree.

So now both of these work:
  # test the snap installed git-ubuntu libraries.
  $ git-ubuntu.self-test

  # test the tree in "."
  $ ./snap-wrappers/wrappers/git-ubuntu-self-test

Other things done here:
 a.) remove DEBEMAIL from environment to avoid bug 1801948.
 b.) remove tox.ini file
 c.) remove pylintrc in favor of running with explicit command line options.
     This is preferable as pylintrc is not available when
    'git-ubuntu.self-test' is run from the snap itself.
 d.) execute pylint with --jobs=0 , which selects 1 process per core.
 e.) use 'rm -f' rather than 'unlink' for removing pycoverage file.
 f.) place 'SNAP_REVISION' and 'SNAP_VERSION' into environment.
     these are just informative.

LP: #1801748
LP: #1801948

fix/run-all-tests 2018-12-04 20:44:10 UTC
Move tests into files named with _test.

Author: Scott Moser
Author Date: 2018-11-06 21:28:17 UTC

Move tests into files named with _test.

Separate existing test functions into their own '_test.py' files.
This is not strictly necessary, but more common.

It is no longer necessary to rely on shell expansion of gitubuntu/*
to tell pytest which files to run on as it will look at the files
named _test.py. So we've changed
snap-wrappers/wrappers/git-ubuntu-self-test to pass the gitubuntu dir
directly.

Also fix flake8 for newly added test files.

fix/1801171-if-no-devel-try-stable 2018-12-04 15:51:19 UTC
build: if there is no ubuntu-daily:devel try the stable release.

Author: Scott Moser
Author Date: 2018-11-09 18:12:39 UTC

build: if there is no ubuntu-daily:devel try the stable release.

There exists a period of time after stable release is made that
ubuntu-daily:devel does not resolve to an image.

The change here just tries to fall back to using ubuntu-daily:<stable>
if it detects that case.

Update the test of derive_image_from_codename and move it to
build_test.py to define and use IMAGE_UBUNTU_STABLE.

LP: #1801171

fix/1727590-build-in-ubuntu 2018-11-06 20:34:22 UTC
add test

Author: Scott Moser
Author Date: 2018-11-06 20:34:22 UTC

add test

fix/1801168-build-when-no-patches 2018-11-01 21:10:44 UTC
build: Fix build when there are no quilt patches.

Author: Scott Moser
Author Date: 2018-11-01 21:10:44 UTC

build: Fix build when there are no quilt patches.

If a package did not have any quilt packages, then git-ubuntu build
would stack trace trying to copy the non-existant .pc directory.

As an example:
  $ git ubuntu clone requests
  $ git checkout pkg/import/2.18.4-2
  $ git ubuntu build

LP: #1801168

cleanup/build-cleanups-redux 2018-10-25 15:04:54 UTC
Fix native build.

Author: Scott Moser
Author Date: 2018-09-27 21:00:48 UTC

Fix native build.

Builds cloud-initramfs-tools [native] and cloud-utils [non-native].

cleanup/build-cleanups 2018-10-16 16:51:56 UTC
Fix native build.

Author: Scott Moser
Author Date: 2018-09-27 21:00:48 UTC

Fix native build.

Builds cloud-initramfs-tools [native] and cloud-utils [non-native].

fix/1749609-build-non-1000 2018-09-18 06:16:38 UTC
Change internal user to 'buildd' from build-user.

Author: Scott Moser
Author Date: 2018-09-18 06:16:38 UTC

Change internal user to 'buildd' from build-user.

This is same user as launchpad.
The path under the user's home (~/build) is left the same.
On launchpad the path is something like build-PACKAGEBUILD-XXXXXXX
but that seems less useful than a constant path for a user
using '--keep'.

faster2 2016-11-15 15:19:16 UTC
source_information: delay login to launchpad until use.

Author: Scott Moser
Author Date: 2016-11-15 15:10:47 UTC

source_information: delay login to launchpad until use.

launchpad login takes some time, as it is a remote operation.
The change here is to do that on class __init__ instead of on class
definition and also to cache the result.

The end result is that 'usd --help' goes from taking ~1.5 seconds
on my system to taking ~ .3 seconds.

Also it means that operations like 'usd build' or 'usd clone' do not
unnecessarily abuse a remote api.

usd-clone-user-cleanup 2016-11-10 20:35:11 UTC
usd clone: fix reading and storing of user, minor improvements.

Author: Scott Moser
Author Date: 2016-11-10 20:28:33 UTC

usd clone: fix reading and storing of user, minor improvements.

 - search for insteadof in either 'ssh://' or 'git+ssh://'
 - make static methods find_lp_user and prompt_for_lpuser

from-scratch-import 2016-11-02 16:17:07 UTC
Support --lp-owner=none to force from scratch

Author: Scott Moser
Author Date: 2016-11-02 16:17:07 UTC

Support --lp-owner=none to force from scratch

Since we automatically clone from the value of --lp-owner, and
that flag has a default (ubuntu-server-dev) its non-trivial to
force a from-scratch import.

This adds '--lp-owner=none' argument to do that.

bug/1638087 2016-11-01 18:35:32 UTC
Walk release list backwards to find branch for ubuntu/devel.

Author: Scott Moser
Author Date: 2016-11-01 15:40:44 UTC

Walk release list backwards to find branch for ubuntu/devel.

This fixes an error when importing an ubuntu package that is no
longer available in the development release.

LP: #1638087

master 2016-10-06 14:04:35 UTC
usd-clone: add usd-clone simple wrapper for cloning

Author: Scott Moser
Author Date: 2016-10-06 14:04:35 UTC

usd-clone: add usd-clone simple wrapper for cloning

This just adds a very simple wrapper that knows urls to
keep typing down.
   usd-clone initramfs-tools

116 of 16 results
This repository contains Public information 
Everyone can see this information.

Subscribers