~lucaskanashiro/git-ubuntu:changelog-do-not-include-msg

Last commit made on 2021-07-29
Get this branch:
git clone -b changelog-do-not-include-msg https://git.launchpad.net/~lucaskanashiro/git-ubuntu
Only Lucas Kanashiro can upload to this branch. If you are Lucas Kanashiro please log in for upload directions.

Branch merges

Branch information

Name:
changelog-do-not-include-msg
Repository:
lp:~lucaskanashiro/git-ubuntu

Recent commits

afe29be... by Lucas Kanashiro

reconstruct-changelog: add do-not-include-msg tag to the legacy code

b0b5629... by Lucas Kanashiro

reconstruct-changelog: add do-not-include-msg tag to avoid changelog inclusion

When '[do-not-include-msg]' is added to a git commit message all the
text after it will not be included in the changelog. Text added before
it is still added to the changelog.

859ebda... by Bryce Harrington

merge: Add code docs

a6d36ff... by Bryce Harrington

WIP: Add unit test cases for git ubuntu merge

merge.py is a user-interface-layer component that calls into
GitUbuntuRepository and other internal functionality, which already have
their own unit tests. So these test cases focus on ensuring the
internal functionality will be receiving their expected input. This is
done by substituting GitUbuntuRepository with a MockRepo object with a
faked implementation of GitUbuntuRepository's API that lets us verify it
is receiving requests to tag, update-maintainer, etc. as expected.

(Note a development intent for this patch is to establish testing
coverage for the existing functionality, without making any
modifications to the covered code. Refactoring the existing code may
simplify or improve testing, but this is intentionally being left to
followup work.)

WIP remaining TODOs:
* Increase number/variety of parameterized cases in all tests
* Add more post-operation asserts, to check all expectations
* Trim out parameterized params not actually exercised by test case
* Cleanup this changelog entry :-)

WIP out of scope:
* Implementation of test_parser
* Documentation of MockRepo & associated fakes

9ca1528... by Bryce Harrington

test_util: Implement create_test_changelog_entry()

This routine creates a single synthetic changelog entry. Each of the
elements of the changelog entry can be overridden via function
parameters, to allow test cases to selectively customize the entry to
suit.

Multiple changelog entries aren't supported. For this, tests will
simply call this routine multiple times and concatenate the results.

c8d576a... by Bryce Harrington

systemd: Include last 100 lines from journal in system failure emails

Log errors from this script to the journal as well.

Also, drop unnecessary User/Group settings in service, since this runs
fine as the current (non-root) user.

6b229fd... by Bryce Harrington

Send fewer package import/failure emails

Increases the minimum time between emails to 24 hours.

cd8a09f... by Bryce Harrington

Refactor importer to encapsulate sendmail logic to its own object

Add a class to handle the email reporting for the importer. This uses
Python's smtplib module as it can be easily mocked out for testing.
smtplib itself is well-tested (it's even used as the example in pytest's
fixture docs -- https://docs.pytest.org/en/latest/fixture.html).

This otherwise preserves the essential functionality and behavior of the
current code.

d776530... by Bryce Harrington

git_repository: Copyedit code docs and comments

a02cf62... by Bryce Harrington

README.md: Recommend use of a separate import directory for local usage

The example in the README suggests importing into a subdirectory in the
CWD, however it is likely the user's CWD while reading the README is in
the root of the usd-importer tree. It will lead to less confusion if we
suggest they import to a specific directory elsewhere.