Merge ~racb/git-ubuntu:interleave-publication-dates into git-ubuntu:master

Proposed by Robie Basak
Status: Merged
Merged at revision: 7a70527cca95da0ef5f2d8aaf565e6441a663558
Proposed branch: ~racb/git-ubuntu:interleave-publication-dates
Merge into: git-ubuntu:master
Diff against target: 447 lines (+300/-51)
4 files modified
gitubuntu/git_repository.py (+7/-0)
gitubuntu/importer.py (+52/-44)
gitubuntu/source_information.py (+117/-7)
gitubuntu/source_information_test.py (+124/-0)
Reviewer Review Type Date Requested Status
Server Team CI bot continuous-integration Approve
Bryce Harrington Approve
Review via email: mp+382510@code.staging.launchpad.net

Commit message

Make Jenkins happy

To post a comment you must log in.
Revision history for this message
Server Team CI bot (server-team-bot) wrote :

PASSED: Continuous integration, rev:feb96661189ea0cef2910a6faad1bf918ef57ec9
https://jenkins.ubuntu.com/server/job/git-ubuntu-ci/488/
Executed test runs:
    SUCCESS: VM Setup
    SUCCESS: Build
    SUCCESS: Unit Tests
    IN_PROGRESS: Declarative: Post Actions

Click here to trigger a rebuild:
https://jenkins.ubuntu.com/server/job/git-ubuntu-ci/488//rebuild

review: Approve (continuous-integration)
Revision history for this message
Bryce Harrington (bryce) wrote :

√ python3 setup.py build
√ python3 setup.py check
√ ./snap-wrappers/wrappers/git-ubuntu-self-test
  √ PASS (syntax) source-package-walker.py
  √ PASS (compilation) source-package-walker.py
  √ PASS (syntax) import-source-packages.py
  √ PASS (compilation) import-source-packages.py
  √ PASS (syntax) update-repository-alias.py
  √ PASS (compilation) update-repository-alias.py
  √ 335 passed, 3 xfailed in 183.72 seconds
  √ Coverage for importer.py at 64%
  √ Overall coverage 54%
√ Per-patch code review
  √ d87a1adecd324cd8fab3bf02c62fbff2352c1f64
    + Makes routine automagically determine target branch
    + LGTM
  √ ade437105ceece98173e13eae60fab431297f9c8
    + importppa.py also has a couple launchpad_versions_published_after()
      calls, however this is slated for removal soon. Otherwise, these
      calls would need adjusted similarly to importer.py.
    + Otherwise LGTM
  √ 371c75514e53ec4acc63c3fd48f3a31b3954e5ea
    + docstrings always welcome
    + LGTM
  √ feb96661189ea0cef2910a6faad1bf918ef57ec9
    + Refactors handling of active_series_only to pre-loop condition as
      a constructed dist_priority dictionary.
    + Adds interleave_launchpad_versions_published_after() to interleave
      the debian and ubuntu versions.
    + Adds testcase for same.
    + This routine is used to build a list of source publications
      (spi's), which are sorted by heapq.merge() using a custom key
      constructed by lookup of date created from launchpad, and dist_priority.
    + Studied dict comprehension for dist_priority creation. Looks
      correct.
    + Studied _get_cached_lp_link() behavior
    + interleave_launchpad_versions_published_after() also needs return
      value documented,
      rtype: iterator
      returns: iterator over the sorted values
    + fake_guspi() doesn't have return documented -- but it's internal to
      a test case, so I don't think it really matters. It's obvious
      enough what it's doing.
    + fake_guspi() documents 'Any' for param type, which appears to mean
      the function's parameters are not type specific. So could specify
      either a datetime object or, as in this case, integers.

review: Approve
Revision history for this message
Robie Basak (racb) wrote :

Thank you for the review!

On Tue, Apr 21, 2020 at 01:08:49AM -0000, Bryce Harrington wrote:
> + importppa.py also has a couple launchpad_versions_published_after()
> calls, however this is slated for removal soon. Otherwise, these
> calls would need adjusted similarly to importer.py.

Good spot! Yes - I checked the other callers but as they all turned out
to be slated for removal I ignored them.

> + interleave_launchpad_versions_published_after() also needs return
> value documented,
> rtype: iterator
> returns: iterator over the sorted values

Added, thanks.

> + fake_guspi() doesn't have return documented -- but it's internal to
> a test case, so I don't think it really matters. It's obvious
> enough what it's doing.

I added it anyway, thanks.

> + fake_guspi() documents 'Any' for param type, which appears to mean
> the function's parameters are not type specific. So could specify
> either a datetime object or, as in this case, integers.

Right - to keep things simple I took advantage of duck typing and used
integers instead of datetime objects. It only matters that they are
compared for sorting purposes.

I've forced pushed an update that only adjusts the final commit for
comments and docstrings, including a couple of additional minor
corrections to comments and docstrings that I don't think warrant
further review.

I will merge this branch. Thanks again!

Revision history for this message
Server Team CI bot (server-team-bot) wrote :

PASSED: Continuous integration, rev:7a70527cca95da0ef5f2d8aaf565e6441a663558
https://jenkins.ubuntu.com/server/job/git-ubuntu-ci/490/
Executed test runs:
    SUCCESS: VM Setup
    SUCCESS: Build
    SUCCESS: Unit Tests
    IN_PROGRESS: Declarative: Post Actions

Click here to trigger a rebuild:
https://jenkins.ubuntu.com/server/job/git-ubuntu-ci/490//rebuild

review: Approve (continuous-integration)

There was an error fetching revisions from git servers. Please try again in a few minutes. If the problem persists, contact Launchpad support.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches