Get this repository:
git clone https://git.not.enabled/pdbq
Only Bryce Harrington can upload to this repository. If you are Bryce Harrington please log in for upload directions.

PDBQ has 3 active reviews. See all merge proposals.

Branches

Name Last Modified Last Commit
pkg-bug-updating 2025-03-12 08:04:10 UTC
pkg-bug list-*: Refactor list commands for consistency

Author: Bryce Harrington
Author Date: 2025-03-12 07:59:11 UTC

pkg-bug list-*: Refactor list commands for consistency

Provide command-specific usage on parameter issues, for consistency with
other commands.

main 2025-03-05 02:05:17 UTC
pkg-updates: Improve title for update requests

Author: Bryce Harrington
Author Date: 2024-02-29 07:47:36 UTC

pkg-updates: Improve title for update requests

merge-proposal-subclasses 2025-03-03 21:56:16 UTC
merge_proposal: Fill in code docs

Author: Bryce Harrington
Author Date: 2025-01-17 03:47:56 UTC

merge_proposal: Fill in code docs

add-ubuntu-version-class 2025-02-28 06:19:13 UTC
ubuntu_version: Add is_repacked()

Author: Bryce Harrington
Author Date: 2025-02-28 04:40:15 UTC

ubuntu_version: Add is_repacked()

Detect +repack, +dfsg, and +ds as indicating a modified tarball.
  - https://wiki.debian.org/DebianMentorsFaq#What_does_.2BIBw-dfsg.2BIB0_or_.2BIBw-ds.2BIB0_in_the_version_string_mean.3F
  - https://wiki.debian.org/Javascript/Repacking#A1._Choose_a_repack_suffix

Examples of packages using +repack rather than +ds have included
supercollider, bamf, veyon, and syndig.

Note that dfsg has sometimes been typoed as dsfg. Since this code looks
for "+ds*", it will handle this corner case as well.
  - https://askubuntu.com/questions/11592/what-does-dsfg-as-a-part-of-package-names-mean
  - https://metadata.ftp-master.debian.org/changelogs//main/w/wabt/wabt_1.0.36+dfsg+~cs1.0.36-2_changelog

pkg-bug-set-milestones 2025-02-14 20:22:40 UTC
pkg-bug: Implement --debug support for bug_task milestones

Author: Bryce Harrington
Author Date: 2025-02-14 20:22:40 UTC

pkg-bug: Implement --debug support for bug_task milestones

When --debug is given on the command line, this causes pkg-bug to dump
the overall configuration, and the BugTask object's dict contents via
pretty-print.

pkg-bug-set-milestones-presquash 2025-02-12 02:53:24 UTC
bug_task: Catch exception for unrecognized packages

Author: Bryce Harrington
Author Date: 2025-02-12 02:53:24 UTC

bug_task: Catch exception for unrecognized packages

When requesting a bug task for a package that does not exist in
Launchpad, lazr's HTTP NotFound exception is thrown.

Since callers will already need to check for ValueError's, capture the
NotFound error and raise it also as a ValueError, with a more
appropriate error message.

cron-cleanup 2025-01-10 19:29:26 UTC
collect-gh-project: Drop this script until it's actually needed

Author: Bryce Harrington
Author Date: 2024-08-22 18:44:58 UTC

collect-gh-project: Drop this script until it's actually needed

I don't plan to do lookups from github any time soon, and don't need the
functionality at the moment, so drop the script to trim down the number
of workers needing to be actively maintained.

modularize-pkg-versions 2024-09-06 23:09:49 UTC
source_publication: Add pocket, component, and a parse_madison() routine

Author: Bryce Harrington
Author Date: 2024-09-06 20:28:35 UTC

source_publication: Add pocket, component, and a parse_madison() routine

This is used to collect publication information from Debian's madison
system. (Specifically, this pulls from qa.debian.org's madison
instance, which seems to respond quickly from the Pacific Northwest, but
YMMV from other locations.)

Madison's version information includes per-pocket versions, and flags
items in the universe component (vs. main), so the SourcePublication
class needs to also include this info.

A smoketest is provided for checking functionality:

  $ python3 -m pdbq.source_publication

backport-updating-for-oracular 2024-07-12 21:18:29 UTC
Reduce use of 'mre' terminology in favor of 'backport'

Author: Bryce Harrington
Author Date: 2024-07-11 00:15:39 UTC

Reduce use of 'mre' terminology in favor of 'backport'

In the processing of the SRUs there has been pushback due to strict
interpretation of MRE as being specific to non-feature micro-releases,
causing problems when the updates in question were including features
and non-bugfix-only changes, or where the backport was being requested
without a pre-existing exception having been granted.

To avoid confusing future pedants, shift away from referring to
backports by this acronym.

reimplement-pkg-versions 2024-04-09 17:11:06 UTC
pkg-versions: Add a --series-spec option to list esm, lts, et al

Author: Bryce Harrington
Author Date: 2024-04-09 16:50:13 UTC

pkg-versions: Add a --series-spec option to list esm, lts, et al

Alternate package lists can be obtained, for example:

    $ pkg-versions dovecot --series-spec lts
    $ pkg-versions --series-spec devel samba

The option is aliased to '-s' and '--series' for shorthand.

For a list of the supported series, see:

    $ pkg-versions --help

add-mp-queue-status 2024-04-08 20:59:45 UTC
merge_proposal: Check pre-conditions for undefined git repos

Author: Bryce Harrington
Author Date: 2024-04-08 20:19:32 UTC

merge_proposal: Check pre-conditions for undefined git repos

There can be situations where the git repository is undefined, such as
for old BZR MPs, or other historical oddities. Add checks and error
accordingly.

MP-reimplement-pkg-versions 2024-04-06 02:49:17 UTC
pkg-versions: Stub in unimplemented tests

Author: Bryce Harrington
Author Date: 2024-04-06 02:49:17 UTC

pkg-versions: Stub in unimplemented tests

This is a placeholder/reminder to implement test cases for packages that
exist in only ubuntu, only debian, or neither.

pkg-bug-get-description 2023-10-25 04:01:00 UTC
pkg-bug: Add get-param command

Author: Bryce Harrington
Author Date: 2023-10-04 22:34:49 UTC

pkg-bug: Add get-param command

For bug reports consisting of Key: Value sets, such as seen in Apport
bugs, automatic installation failure bugs, and merge opportunity bugs,
this command permits extracting values given a key name. For example:

    $ pkg-bug get-param 1841168 DistroRelease
    Ubuntu 16.04
    $ pkg-bug get-param 2018055 "scheduled-For"
    Backlog

Only the value is printed. Doublequotes in keys are ignored and matches
are case-insensitive.

pkg-updates-ppa 2023-10-06 00:58:12 UTC
pkg-bug: Allow passing (unimplemented) series arg to report_bug()

Author: Bryce Harrington
Author Date: 2023-09-29 02:49:36 UTC

pkg-bug: Allow passing (unimplemented) series arg to report_bug()

The pkg-updates script generates input files for pkg-bug that include
the series argument, so pkg-bug needs to not fail when it's present,
even though support has not yet been implemented for applying it.

pkg-bug-create-with-multi-packages 2023-10-04 22:45:41 UTC
pkg-bug: Fix --debug to be set properly

Author: Bryce Harrington
Author Date: 2023-10-04 02:48:45 UTC

pkg-bug: Fix --debug to be set properly

introduce-mp-addresses 2023-09-21 23:14:44 UTC
merge_proposal: Include repo in address if different from project

Author: Bryce Harrington
Author Date: 2023-08-31 23:00:11 UTC

merge_proposal: Include repo in address if different from project

pdbq's main repository is named "pdbq" so merge proposal urls can be
constructed assuming project == repository, however this is not
universally true. For instance, ppa-dev-tools' main git repository is
named "ppa-dev-tools-1" to distinguish it from its pre-existing bzr
repository that holds the "ppa-dev-tools" name.

Moreover, for git branches the parsing code previously was extracting
the repository and providing it as the project name, so in the case of
differently named projects and repositories that provides an incorrect
value. Interestingly, it was doing it correctly for bzr branches.

To fix all of this, a separate property is added for the repository
name with the repository parsing logic. For the project name, the value
is parsed similarly for both git and bzr, so the implementation
simplifies a bit.

Finally, the address() property logic is adjusted to include the
repository name when it differs from the project name. In cases where
they're the same we omit the duplicate. The absence of the repository
name can thus be taken as an indication that it's identical.

implement-mre-card-support 2023-08-01 23:04:55 UTC
pkg-updates: Add and_join() helper function

Author: Bryce Harrington
Author Date: 2023-07-22 01:34:43 UTC

pkg-updates: Add and_join() helper function

This lets lists of Ubuntu release names be formatted in a more
human-readable way by using the word 'and'.

implement-tests-for-merge-proposal-class 2023-07-15 01:48:41 UTC
merge_proposal: Fix incorrect timedelta usage

Author: Bryce Harrington
Author Date: 2023-07-15 01:42:39 UTC

merge_proposal: Fix incorrect timedelta usage

The .days property is an int, not a function.

add-pkg-mp 2023-06-06 12:48:53 UTC
pkg-mp: Implement basic MP listing support

Author: Bryce Harrington
Author Date: 2023-04-02 16:10:35 UTC

pkg-mp: Implement basic MP listing support

  $ ./scripts/pkg-mp list canonical-server-reporter

This prints a list of all currently active reviews with properties.

pkg-bug-milestones 2023-06-01 19:41:02 UTC
pkg-bug: Fix milestone, status, and importance setting

Author: Bryce Harrington
Author Date: 2023-05-09 01:23:24 UTC

pkg-bug: Fix milestone, status, and importance setting

Due to launchladlib magic (I guess), settings don't get applied by
reference, and require explicit invocation of lp_save().

planned-merges-mm 2023-06-01 03:21:33 UTC
planned-merges: Drop predictive text

Author: Bryce Harrington
Author Date: 2023-04-28 21:19:07 UTC

planned-merges: Drop predictive text

Originally, this code was intended to perform preliminary scheduling of
merges by heuristically estimating when a merge is likely to become
available based on historical release frequency. However, the COVID
experience we collectively went through put a lot of upstreams through
the ringer, resulting in massive irregularities in release behaviors.

Even when it was working right, there were only about three months
viable for doing merges anyway, so the value of auto-scheduling was
pretty low. Furthermore, in actual practice people's personal
scheduling preferences weighed much more heavily so we tended to prefer
manually organizing our merge cards anyway.

Dropping this code will have a further benefit of reducing the amount of
logic that needs to be reimplemented in Python when it becomes time for
rewriting it.

add-query-lp-milestones 2023-04-05 00:55:55 UTC
lp: Add support for readonly mode

Author: Bryce Harrington
Author Date: 2023-04-05 00:55:55 UTC

lp: Add support for readonly mode

add-collect-watch 2023-03-17 07:07:59 UTC
Add collect-watch worker

Author: Bryce Harrington
Author Date: 2023-03-17 07:00:13 UTC

Add collect-watch worker

This script does a git ubuntu clone for a package and then uses its
watch file to see if there are new upstream releases available.

The script takes input as a JSON file, and generates output as JSON to
stdout.

This worker is intended to replace scripts/watch-query, however since
this operates on individual packages rather than a collection of
packages, some additional integration scripting will be needed before
watch-query can be dropped.

merge-proposal-wip 2022-03-31 16:17:55 UTC
WIP: Add worker for collecting LP reviews for a given team

Author: Bryce Harrington
Author Date: 2022-03-31 16:17:55 UTC

WIP: Add worker for collecting LP reviews for a given team

This merges data from both Launchpad's API (via the new MergeProposal
class), and scraped from Launchpad's HTML rendering of a team's
activereviews page. The objective of this work is for each MP to build
a richer data object, that can then be used to help organize/filter
results better than the activereviews page does.

package-sources-oci-snaps 2021-11-09 00:46:38 UTC
refresh-data.cron: Update data cron for oci/snap

Author: Bryce Harrington
Author Date: 2021-11-02 00:41:07 UTC

refresh-data.cron: Update data cron for oci/snap

planned-merges-jj 2021-10-13 00:08:49 UTC
Use find rather than ls to search for data files

Author: Bryce Harrington
Author Date: 2021-10-12 22:29:28 UTC

Use find rather than ls to search for data files

Shellcheck suggested improvement.

Also limit search to files with non-zero sizes, to avoid using data
files currently being written to, or that were invalid when generated.

package-sources-mre-ppa 2021-10-07 18:41:18 UTC
workers: Include container stack components in MRE backport list.

Author: Bryce Harrington
Author Date: 2021-10-07 18:27:55 UTC

workers: Include container stack components in MRE backport list.

Per Lucas, the backport task occurs once near the beginning of a devel
release and once towards the end. All three packages, docker.io,
containerd, and runc, get backported together at the same time, so
they'll be represented as a single bug report with three bug tasks for
the three packages.

package-sources 2021-10-06 23:11:44 UTC
planned-merges: Tag all bugs 'needs-merge'

Author: Bryce Harrington
Author Date: 2021-10-06 23:11:44 UTC

planned-merges: Tag all bugs 'needs-merge'

Per the specification, we'll be using this tag to track all of these
bugs.

pkg-bug-import 2021-09-29 01:22:34 UTC
pkg-bug: Implement import command

Author: Bryce Harrington
Author Date: 2021-09-29 00:34:03 UTC

pkg-bug: Implement import command

This adds a new command to create multiple bugs using a JSON file as
input data.

Since we're passing the JSON from the `planned-merges` script directly
to command_import()'s function arguments, the dict elements must match
exactly. So, add subscribers and drop potential-owner.

refactor-pkg-bug 2021-09-25 00:46:23 UTC
pkg-bug: Use a dry_run decorator for bug creation

Author: Bryce Harrington
Author Date: 2021-09-24 23:49:02 UTC

pkg-bug: Use a dry_run decorator for bug creation

Refactor the --dry-run handling code into a decorator function that
either runs the function or prints it and its arguments depending on the
setting for the global 'DRY_RUN'. This relies on Python typing to
identify the return type of the function so it can fake its return;
the Bug class is modified to handle empty initialization to support this
behavior.

The bug filing code from command_create() is moved into a dedicated
routine, report_bug(), which is then given the new @dry_run decorator.

Since report_bug() is constructed to file bug reports against Ubuntu
packages, a package name is now required and is specified via a new
--package option.

While cleaning up command_create(), the description setting logic is
also broken out to a separate command; it may become useful for other
needs in the future.

pkg-bug-list 2021-09-22 01:01:19 UTC
pkg-bug: Implement list-subscribed and list-assigned commands

Author: Bryce Harrington
Author Date: 2021-09-22 01:00:38 UTC

pkg-bug: Implement list-subscribed and list-assigned commands

add-pkg-bug 2021-09-18 02:34:49 UTC
pkg-bug: Add new script for filing bug reports

Author: Bryce Harrington
Author Date: 2021-09-18 01:49:56 UTC

pkg-bug: Add new script for filing bug reports

Preliminary implementation of what will eventually become a flexible CLI
for creating, viewing, and updating bug reports. For now, this just
files basic bug reports against the Ubuntu project.

query-bugs 2021-09-14 00:25:19 UTC
lp: Fix url to include trailing slash like other urls

Author: Bryce Harrington
Author Date: 2021-09-13 23:39:38 UTC

lp: Fix url to include trailing slash like other urls

improve-merge-opps-email 2021-07-22 22:35:13 UTC
merge opportunities report: Improve the merge-o-matic section

Author: Bryce Harrington
Author Date: 2021-07-22 21:33:03 UTC

merge opportunities report: Improve the merge-o-matic section

The last section of the merge opportunities report should show
non-server packages where server team members made the last change.
Merge-o-matic convention is that the last person to change a package may
be the best to do the subsequent merge.

This fixes several issues in the previous report. First, it provides a
way to filter out work being done by people who were once server team
members but now work in other areas of Ubuntu distro engineering.
Second, it provides a way to pass in a listing of server team packages
to be excluded. Third, for sponsored uploads we consider only the
original author, not the uploader. Finally, the report now includes the
ubuntu and debian version numbers to be merged, for reference.

134 of 34 results

Other repositories

Name Last Modified
lp:pdbq 2025-03-12
11 of 1 result
You can't create new repositories for PDBQ.