Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Scheduler: make --fetchonly skip pkg_pretend | Zac Medico | 2011-06-13 | 1 | -3/+4 |
| | |||||
* | Scheduler: init _fetch_log in constructor | Zac Medico | 2011-06-05 | 1 | -3/+4 |
| | | | | This ensures that we account for EMERGE_LOG_DIR. | ||||
* | dblink.merge: remove unused scheduler callbacks | Zac Medico | 2011-06-03 | 1 | -67/+1 |
| | |||||
* | Package: add new _gen_hash_key method | Zac Medico | 2011-05-22 | 1 | -20/+4 |
| | |||||
* | merge_wait_queue: use deque.clear() | Zac Medico | 2011-05-08 | 1 | -1/+1 |
| | |||||
* | Be careful with system pkgs + parallel-install. | Zac Medico | 2011-05-07 | 1 | -10/+18 |
| | | | | | This should prevent FEATURES=parallel-install from interfering with the fixes from bug #256616 and bug #259954. | ||||
* | Scheduler: add queue for ebuild-locks | Zac Medico | 2011-05-07 | 1 | -2/+11 |
| | | | | | | | | Use a separate queue for ebuild-locks when the merge queue allows more than 1 job (due to parallel-install), since the portage.locks module does not behave as desired if we try to lock the same file multiple times concurrently from the same process. | ||||
* | Add FEATURES=parallel-install for finer locks. | Zac Medico | 2011-05-07 | 1 | -1/+2 |
| | |||||
* | Use finer grained locks for install. | David James | 2011-05-07 | 1 | -0/+1 |
| | | | | | | | | | | | | | | | | | | | | | | | | | Narrow scope of merge locks to improve performance. Instead of locking the DB for the entire package merge, just lock it when we actually need to do so. Also add locks around conf_mem_file updating and pkg_* phases. Locking in pkg_* phases can be turned off with FEATURES="no-ebuild-locks" if you use ebuilds that are careful not to mess with each other during theses phases. The default is to leave this locking enabled. Given this new locking, I've improved the scheduler to run merge jobs in parallel. Time required for merging 348 packages with --usepkgonly: - Before patch: 29m50s - After patch: 10m2s - After patch w/o locks: 7m9s Change-Id: I63588c4cc59fa6fe2f8327ea1e4a9e71b241d4fe Review URL: http://gerrit.chromium.org/gerrit/498 | ||||
* | depgraph: migrate implicit libc deps from Sched | Zac Medico | 2011-04-30 | 1 | -65/+0 |
| | | | | | Now all the virtual/libc handling is done by the depgraph, which will be helpful when fixing bug #364681. | ||||
* | Remove unnecessary sync in Scheduler.py. | David James | 2011-04-11 | 1 | -1/+1 |
| | | | | | | | | | | | | | | If we are passed a fakevartree object, it should already be sync'd, so there is no need to sync it again here. This sync is only needed when we create a new FakeVartree, so I moved the sync to the right place to fix this. BUG=chromium-os:14035 TEST=Build a bunch of packages with this patch. Change-Id: I89d79cf946f4c0c27ad585ad7c88a41985260342 Review URL: http://codereview.chromium.org/6813084 | ||||
* | Fix a typo in a comment. | Zac Medico | 2011-04-10 | 1 | -1/+1 |
| | |||||
* | Scheduler: add more info in docstring comments | Zac Medico | 2011-04-10 | 1 | -1/+7 |
| | | | | This clarifies the purposes of _system_merge_started and _choose_pkg. | ||||
* | Scheduler: pkg_to_replace beware old-style virt | Zac Medico | 2011-03-26 | 1 | -1/+2 |
| | |||||
* | Update Portage to sync BlockerDB at init. | David James | 2011-03-24 | 1 | -17/+7 |
| | | | | | | | | | | | | Currently, Portage syncs the BlockerDB before every merge. This slows down merges considerably because it requires reading the entire vardb from disk. Since Portage doesn't merge conflicting packages anyway, we can optimize this by just reading the vardb at initialization and caching that. Change-Id: I6701926f022ef3aa2da10482fc8b09573ae24610 Review URL: http://codereview.chromium.org/6688037 | ||||
* | Update Scheduler to protect against infinite loop | David James | 2011-03-16 | 1 | -4/+2 |
| | | | | | If we have running tasks, but we're not listening to these tasks, we're going to loop forever. So throw an exception in this case. | ||||
* | Scheduler: tweak prefetcher cancellation logic | Zac Medico | 2011-03-16 | 1 | -1/+9 |
| | | | | | This should prevent "TypeError: an integer is required" raised from waitpid when trying to cancel a prefetcher that never started. | ||||
* | Scheduler: terminate _merge_wait_queue | Zac Medico | 2011-03-16 | 1 | -0/+4 |
| | |||||
* | Scheduler: fix AttributeError in _terminate_tasks | Zac Medico | 2011-03-12 | 1 | -1/+4 |
| | | | | | Thanks to David James <davidjames@google.com> for reporting this error: AttributeError: 'EbuildPhase' object has no attribute 'merge' | ||||
* | PollScheduler: tweek termination logic | Zac Medico | 2011-03-10 | 1 | -4/+4 |
| | | | | | | | | | * PollScheduler and all subclasses now use the _terminated_tasks variable to check whether or not _terminate_tasks() has been called, and behave appropriately in that case. * The _schedule_tasks() method now has documentation about the relationship with _terminate_tasks() and _terminated_tasks. | ||||
* | Scheduler: avoid infinite loop after CTRL-C | Zac Medico | 2011-03-10 | 1 | -1/+14 |
| | | | | | | | | If CTRL-C was received at certain times, it was possible for discarded tasks to be erroneously left in Scheduler._running_tasks, which would cause the main loop to run infinitely. Thanks to David James <davidjames@google.com> for reporting this issue and helping to devise a solution. | ||||
* | Scheduler: ensure _prefetchers is cleared | Zac Medico | 2011-02-20 | 1 | -0/+1 |
| | |||||
* | Recognize git-2.eclass when reinstalling self. | Zac Medico | 2011-02-14 | 1 | -1/+2 |
| | |||||
* | Scheduler: remove uninstall task from pkg_queuev2.2.0_alpha16 | Zac Medico | 2011-01-17 | 1 | -0/+4 |
| | |||||
* | Tweak PollScheduler signal handling. | Zac Medico | 2011-01-15 | 1 | -3/+29 |
| | |||||
* | Add PollScheduler.terminate() for interruption. | Zac Medico | 2011-01-15 | 1 | -8/+17 |
| | | | | | This allows PollScheduler instances to do basic cleanup and terminate gracefully when SIGINT or SIGTERM signals are received. | ||||
* | Scheduler: free unneeded uninstall task from memv2.2.0_alpha14 | Zac Medico | 2011-01-06 | 1 | -1/+5 |
| | |||||
* | Scheduler: handle same cpv with different SLOT | Zac Medico | 2011-01-05 | 1 | -0/+3 |
| | |||||
* | Scheduler: fix reposyntax uninstall hash breakage | Zac Medico | 2011-01-05 | 1 | -8/+10 |
| | |||||
* | Scheduler: always share FakeVartree pkg_cache | Zac Medico | 2011-01-05 | 1 | -1/+2 |
| | |||||
* | Scheduler: avoid unecessary Package instances | Zac Medico | 2011-01-05 | 1 | -1/+0 |
| | |||||
* | Scheduler: cache more Packages in --nodeps mode | Zac Medico | 2011-01-05 | 1 | -0/+2 |
| | |||||
* | Scheduler: cache Package instance more | Zac Medico | 2011-01-05 | 1 | -9/+12 |
| | | | | | | | | This helps to avoid some cases in which emerge crashes due to ebuild modification that leads to failure in aux_get/manifest check while the Scheduler is running. Typically such modifications are harmless, so it's beneficial to cache the metadata so that aux_get is less likely to be called when it will fail. | ||||
* | Scheduler: fix pkg cache more for reposyntax | Zac Medico | 2010-12-07 | 1 | -1/+1 |
| | |||||
* | Scheduler: fix pkg cache for reposyntax | Zac Medico | 2010-12-07 | 1 | -5/+20 |
| | |||||
* | inject binpkg after fetch for pkg_pretendv2.2.0_alpha7 | Zac Medico | 2010-12-05 | 1 | -0/+4 |
| | |||||
* | Fix pkg_pretend output and error handling. | Zac Medico | 2010-12-05 | 1 | -50/+73 |
| | |||||
* | Scheduler: Always display message for pkg_pretend | Zac Medico | 2010-12-05 | 1 | -8/+2 |
| | |||||
* | Sync EMERGE_FROM code with MERGE_TYPE code. | Zac Medico | 2010-12-05 | 1 | -0/+2 |
| | |||||
* | Scheduler: set MERGE_TYPE for pkg_pretend | Zac Medico | 2010-12-04 | 1 | -0/+5 |
| | |||||
* | Scheduler._run_pkg_pretend: call setcpv | Zac Medico | 2010-12-03 | 1 | -0/+1 |
| | |||||
* | Scheduler: eliminate redundant display calls | Zac Medico | 2010-10-27 | 1 | -1/+6 |
| | |||||
* | Raise StopIteration from _poll() if needed. | Zac Medico | 2010-10-26 | 1 | -0/+5 |
| | |||||
* | Scheduler: ensure display update every 3 seconds | Zac Medico | 2010-10-23 | 1 | -1/+36 |
| | |||||
* | Fix pretend phase doebuild_environment(). | Zac Medico | 2010-10-21 | 1 | -3/+2 |
| | |||||
* | reposyntax: Add support all over the place | Sebastian Luther | 2010-09-26 | 1 | -4/+4 |
| | |||||
* | Make Package __str__ and __unicode__ methods more like DependencyArg. | Zac Medico | 2010-09-16 | 1 | -2/+4 |
| | |||||
* | Bug #336651 - Fix Scheduler._restart_if_necessary() to correctly | Zac Medico | 2010-09-09 | 1 | -1/+5 |
| | | | | | handle arguments like --exclude that are stored as a list since they use the 'append' action. | ||||
* | Remove unnecessary depgraph.altlist() call in Scheduler._calc_resume_list(). | Zac Medico | 2010-09-06 | 1 | -2/+0 |
| | |||||
* | Make Scheduler._set_graph_config() clear _deep_system_deps when | Zac Medico | 2010-09-06 | 1 | -0/+2 |
| | | | | appropriate. |