[Bug 1928946] Re: syncpackage: downloads .dsc when it really isn't needed

2021-06-05 Thread Launchpad Bug Tracker
This bug was fixed in the package ubuntu-dev-tools - 0.181ubuntu2

---
ubuntu-dev-tools (0.181ubuntu2) impish; urgency=medium

  * syncpackage, ubuntutools/archive.py:
Don't save dsc file to disk until requested with pull()
(LP: #1928946)
  * syncpackage:
Don't login to LP if using --simulate
  * d/t/control: Add minimum flake8 version
The --extend-exclude parameter is first available in flake8 3.8.0
  * ubuntutools/archive.py: Fix flake8 test failure
  * d/rules, d/control: Override build tests to use flake8 and nosetests3

 -- Dan Streetman   Fri, 04 Jun 2021 12:19:29
-0400

** Changed in: ubuntu-dev-tools (Ubuntu Impish)
   Status: In Progress => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1928946

Title:
  syncpackage: downloads .dsc when it really isn't needed

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-dev-tools/+bug/1928946/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1928946] Re: syncpackage: downloads .dsc when it really isn't needed

2021-06-04 Thread Timo Aaltonen
autopkgtest fails on impish:


flake8.main.application   MainProcess   2058 INFO Found a total of 16 
violations and reported 1
./ubuntutools/archive.py:31:1: F401 'urllib.parse.urlparse' imported but unused

so you need to fix the uploads

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1928946

Title:
  syncpackage: downloads .dsc when it really isn't needed

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-dev-tools/+bug/1928946/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1928946] Re: syncpackage: downloads .dsc when it really isn't needed

2021-06-02 Thread Dan Streetman
** Description changed:

+ [impact]
+ 
+ syncpackage saves the dsc file(s) to disk but doesn't need to
+ 
+ [test case]
+ 
+ ubuntu@lp1928946-h:~$ syncpackage --simulate --no-lp -r bionic 
ubuntu-dev-tools
+ The use of --no-lp is not recommended for uploads targeted at Ubuntu. The 
archive-admins discourage its use, except for fakesyncs.
+ Downloading ubuntu-dev-tools_0.181.dsc from deb.debian.org (0.002 MiB)
+ Using existing file ubuntu-dev-tools_0.181.dsc


   
+ Downloading ubuntu-dev-tools_0.164.dsc from archive.ubuntu.com (0.002 MiB)
+ 
+ 
+ check if the dsc file(s) are now in $PWD:
+ 
+ ubuntu@lp1928946-h:~$ ls -l *dsc
+ -rw-rw-r-- 1 ubuntu ubuntu 2356 Jun  2 15:40 ubuntu-dev-tools_0.164.dsc
+ -rw-rw-r-- 1 ubuntu ubuntu 2219 Jun  2 15:40 ubuntu-dev-tools_0.181.dsc
+ 
+ [regression potential]
+ 
+ any regression would likely cause incorrectly saved dsc files, or
+ incorrect failure to save a dsc file to disk when using any of the
+ various scripts included in the ubuntu-dev-tools pacakge, or other
+ scripts that use the python3-ubuntutools package library
+ 
+ [scope]
+ 
+ this is needed only for h and later
+ 
+ this was introduced by commit fed562405d76ab85e2aab96ec0357457eebafcb2
+ which is included in 0.179, so this bug does not exist in g or earlier
+ 
+ [original description]
+ 
  It seems that starting from a few versions, syncpackage downloads .dscs,
  stores them in ~, and leaves them there.
  
  AFAIK there is no need to download anything to sync a package, as
  launchpad should be able to handle everything through its API, so I'd
  say the bug is threefold:
  
  1) shouldn't download anything if not needed (when is it needed?!)
  2) shouldn't store things in ~ at all, use a tempdir in TMPDIR instead
  3) shouldn't leave temporary files around
  
- 
- 
  Currently running version 0.181 under Debian unstable.

** Also affects: ubuntu-dev-tools (Ubuntu Impish)
   Importance: Undecided
 Assignee: Dan Streetman (ddstreet)
   Status: Confirmed

** Also affects: ubuntu-dev-tools (Ubuntu Hirsute)
   Importance: Undecided
   Status: New

** Changed in: ubuntu-dev-tools (Ubuntu Hirsute)
 Assignee: (unassigned) => Dan Streetman (ddstreet)

** Changed in: ubuntu-dev-tools (Ubuntu Hirsute)
   Status: New => In Progress

** Changed in: ubuntu-dev-tools (Ubuntu Impish)
   Status: Confirmed => In Progress

** Changed in: ubuntu-dev-tools (Ubuntu Impish)
   Importance: Undecided => Low

** Changed in: ubuntu-dev-tools (Ubuntu Hirsute)
   Importance: Undecided => Low

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1928946

Title:
  syncpackage: downloads .dsc when it really isn't needed

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-dev-tools/+bug/1928946/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs