Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ubuntu/devel #373

Merged
merged 14 commits into from
May 22, 2020
Merged

Ubuntu/devel #373

merged 14 commits into from
May 22, 2020

Commits on May 12, 2020

  1. conftest: add docs and tests regarding CiTestCase's subp functionality (

    canonical#343)
    
    And raise TypeError when subp called with no args, which more accurately mirrors normal behaviour:
    
    >>> from cloudinit.util import subp
    >>> subp()
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
    TypeError: subp() missing 1 required positional argument: 'args'
    OddBloke committed May 12, 2020
    Configuration menu
    Copy the full SHA
    c8f20b3 View commit details
    Browse the repository at this point in the history

Commits on May 13, 2020

  1. Add schema to apt configure config (canonical#357)

    Create a schema object for the `apt_configure` module and
    validate this schema in the `handle`  function of the module.
    
    There are some considerations regarding this PR:
    
    * The `primary` and `security` keys have the exact same properties. I
      tried to eliminate this redundancy by moving their properties to a
      common place and then just referencing it for both security and
      primary. Similar to what is documented here:
        https://json-schema.org/understanding-json-schema/structuring.html
      under the `Reuse` paragraph.  However, this approach does not work,
      because the `#` pointer goes to the beginning of the file, which is
      a python module instead of a json file, not allowing the pointer to
      find the correct definition. What I did was to create a separate dict
      for the mirror config and reuse it for primary and security, but
      maybe there are better approaches to do that.
    * There was no documentation for the config `debconf_selections`. I
      tried to infer what it supposed to do by looking at the code and the
      `debconf-set-selections`  manpage, but my description may not be
      accurate or complete.
    * Add a _parse_description function to schema.py to render multi-line
      preformatted content instead of squashing all whitespace
    
    LP: #1858884
    lucasmoura committed May 13, 2020
    Configuration menu
    Copy the full SHA
    2e32c40 View commit details
    Browse the repository at this point in the history

Commits on May 14, 2020

  1. cloud_tests: emit dots on Travis while fetching images (canonical#347)

    This ensures that Travis will not kill our tests if fetching images is
    taking a long time.
    
    In implementation terms, this introduces a context manager which will
    spin up a multiprocessing.Process in the background and print a dot to
    stdout every 10 seconds.  The process is terminated when the context
    manager exits.
    
    This also drop the use of travis_wait, which was being used to work
    around this issue.
    OddBloke committed May 14, 2020
    Configuration menu
    Copy the full SHA
    0894087 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b73b319 View commit details
    Browse the repository at this point in the history
  3. cloudinit: remove unneeded __future__ imports (canonical#362)

    We live in the future now.
    OddBloke committed May 14, 2020
    Configuration menu
    Copy the full SHA
    4261ae5 View commit details
    Browse the repository at this point in the history
  4. cloudinit: minor pylint fixes (canonical#360)

    We recently discovered that pylint is failing to report some errors when
    invoked across our entire codebase (see
    pylint-dev/pylint#3611).  I've run pylint across
    every Python file under cloudinit/[0], and this commit fixes the issues
    so-discovered.
    
    [0] find cloudinit/ -name "*.py" | xargs -n 1 -t .tox/pylint/bin/python -m pylint
    OddBloke committed May 14, 2020
    Configuration menu
    Copy the full SHA
    09492b1 View commit details
    Browse the repository at this point in the history

Commits on May 15, 2020

  1. Configuration menu
    Copy the full SHA
    f23a4c4 View commit details
    Browse the repository at this point in the history
  2. doc/rtd/topics/faq: Updates LXD docs links to current site (canonical…

    …#368)
    
    We are longer using lxd.readthedocs.io
    
    Signed-off-by: Thomas Parrott thomas.parrott@canonical.com
    tomponline committed May 15, 2020
    Configuration menu
    Copy the full SHA
    e7a8da7 View commit details
    Browse the repository at this point in the history

Commits on May 18, 2020

  1. make finding libc platform independent (canonical#366)

    and slower.
    and since we're making it slower, let's cache it, in case boottime gets
    called more than once.
    igalic committed May 18, 2020
    Configuration menu
    Copy the full SHA
    904ad36 View commit details
    Browse the repository at this point in the history
  2. cc_snap: apply validation to snap.commands properties (canonical#364)

    Specifically, ensure that given values are either strings, or arrays of strings.
    OddBloke committed May 18, 2020
    Configuration menu
    Copy the full SHA
    8bcf1c0 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    b58c5a0 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    4e7557b View commit details
    Browse the repository at this point in the history

Commits on May 21, 2020

  1. Configuration menu
    Copy the full SHA
    3bc646e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f4e200b View commit details
    Browse the repository at this point in the history