Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 549750 - [arch-tools] batch-stabilize should try to continue with next items in stabilization list after a problem
Summary: [arch-tools] batch-stabilize should try to continue with next items in stabil...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal enhancement
Assignee: Agostino Sarubbo
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-17 19:52 UTC by Pacho Ramos
Modified: 2019-04-29 14:09 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pacho Ramos gentoo-dev 2015-05-17 19:52:26 UTC
Currently, as soon as, for example, a repoman run fails (due to missing deps usually), batch-stabilize finishes and I need to manually edit the list to drop offending package and be able to continue with the rest.

It would be nice if the script could skip offending package itself and try to continue with the next until it finishes and, then, it shows the packages that failed

Thanks a lot :)
Comment 1 Agostino Sarubbo gentoo-dev 2015-08-09 10:03:38 UTC
(In reply to Pacho Ramos from comment #0)
> Currently, as soon as, for example, a repoman run fails (due to missing deps
> usually), batch-stabilize finishes and I need to manually edit the list to
> drop offending package and be able to continue with the rest.
> 
> It would be nice if the script could skip offending package itself and try
> to continue with the next until it finishes and, then, it shows the packages
> that failed
> 
> Thanks a lot :)

Personally I prefer to hang all if something goes bad. If you want to continue your script should looks like:
if run_command(["repoman", "commit", "--include-arches", options.arch, "-m", commit_message], cvs_path, log_file)[0] = 0:
          ${BLOCK_OF_CODE_WHICH_HANDLES_THE_BUGZILLA_COMMENT}
else:
          print('!!! repoman commit failed') # without 'sys.exit(1)'


At this point you have the ebuild(s) just modified locally and not committed. So you need shutil.rmtree(cvs_path) which right now should not work because of git changes.
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2018-12-18 09:54:10 UTC
(reassigning to the first person on the ACL, CC-ing everybody else)
Comment 3 Agostino Sarubbo gentoo-dev 2019-04-29 14:09:08 UTC
arch_tools is a project started by phajdan.jr which atm is a retired developer.
I made an ebuild that is is my overlay but atm I have nothing to do with this project because I'm not using those scripts to commit.
I asked mgorny to grant permission for all developers. If someone want to improve the project, it is on our git repo: https://gitweb.gentoo.org/proj/arch-tools.git/
For now, I'm closing it as WONTFIX