Commits on Source (14)
-
Tristan Van Berkom authored
* utils.py:_kill_process_tree(): Ignore NoSuchProcess errors These are caused because we issue SIGTERM, and if the process has not exited after a timeout, we kill it. * _scheduler/jobs/job.py: Stop handling NoSuchProcess errors here redundantly, they are already ignored. It seems that we were ignoring it after sleeping when terminating tasks from the scheduler... but we were not ignoring it when performing the same pattern in the `Plugin.call()` -> `utils._call()` path, so we were still getting these exceptions at termination time from host tool processes launched by source plugins.
-
Tristan Van Berkom authored
Fix stack traces discovered with ^C forceful termination. See merge request !1043
-
Tristan Van Berkom authored
This is not used anywhere outside of the Scheduler, currently only the Scheduler itself is allowed to queue a job at this level. If the highlevel business logic for automatic queueing of auxiliary jobs moves to another location, we can make this public again.
-
Tristan Van Berkom authored
When queuing the special cache management related cleanup and cache size jobs, we now treat these jobs as special and do the following: * Avoid queueing a cleanup/cache_size job if one is already queued We just drop redundantly queued jobs here. * Ensure that jobs of this type only run one at a time This could have been done with the Resources mechanics, however as these special jobs have the same properties and are basically owned by the Scheduler, it seemed more straight forward to handle the behaviors of these special jobs together. This fixes issue #753
-
Tristan Van Berkom authored
This changes the deepest callback from when a Job completes to propagate a JobStatus value instead of a simple boolean, and updates all of the effected code paths which used to receive a boolean to now handle the JobStatus values. This further improves the situation for issue #753, as now we avoid queueing cache size jobs for pull jobs which are skipped.
-
Tristan Van Berkom authored
This is redundant now that we report it through the JobStatus.
-
Tristan Van Berkom authored
Only queue one cache size job Closes #753 See merge request !1040
-
Tristan Van Berkom authored
Since we added batch commands, the batch commands print the text of the commands directly in the message text, but this is wrong. The detail string is the appropriate place for text of unknown lengths (the user can actually configure how many max lines of commands they want to see in their log), the message text itself should be controlled and brief enough to avoid text wrapping.
-
Tristan Van Berkom authored
sandbox/sandbox.py: Fix regression of command logging See merge request !1044
-
This command has been replacved by the bst source checkout command
-
Jürg Billeter authored
element.py: remove documentation reference to source bundle command See merge request !1041
-
James Ennis authored
This commit also ensures that if we try to use the 'old' commands, BuildStream will fail and instruct the user to use the new command.
-
richardmaw-codethink authored
Classifying artifact refs is useful for glob expansion even in cases where an element target name would be inappropriate.
-
James Ennis authored
Showing
- buildstream/_frontend/app.py 3 additions, 3 deletionsbuildstream/_frontend/app.py
- buildstream/_frontend/cli.py 169 additions, 92 deletionsbuildstream/_frontend/cli.py
- buildstream/_scheduler/__init__.py 1 addition, 1 deletionbuildstream/_scheduler/__init__.py
- buildstream/_scheduler/jobs/__init__.py 1 addition, 0 deletionsbuildstream/_scheduler/jobs/__init__.py
- buildstream/_scheduler/jobs/cachesizejob.py 3 additions, 3 deletionsbuildstream/_scheduler/jobs/cachesizejob.py
- buildstream/_scheduler/jobs/cleanupjob.py 3 additions, 3 deletionsbuildstream/_scheduler/jobs/cleanupjob.py
- buildstream/_scheduler/jobs/elementjob.py 3 additions, 3 deletionsbuildstream/_scheduler/jobs/elementjob.py
- buildstream/_scheduler/jobs/job.py 32 additions, 31 deletionsbuildstream/_scheduler/jobs/job.py
- buildstream/_scheduler/queues/buildqueue.py 3 additions, 3 deletionsbuildstream/_scheduler/queues/buildqueue.py
- buildstream/_scheduler/queues/fetchqueue.py 3 additions, 2 deletionsbuildstream/_scheduler/queues/fetchqueue.py
- buildstream/_scheduler/queues/pullqueue.py 5 additions, 3 deletionsbuildstream/_scheduler/queues/pullqueue.py
- buildstream/_scheduler/queues/queue.py 8 additions, 11 deletionsbuildstream/_scheduler/queues/queue.py
- buildstream/_scheduler/queues/trackqueue.py 3 additions, 2 deletionsbuildstream/_scheduler/queues/trackqueue.py
- buildstream/_scheduler/scheduler.py 66 additions, 27 deletionsbuildstream/_scheduler/scheduler.py
- buildstream/element.py 1 addition, 1 deletionbuildstream/element.py
- buildstream/sandbox/sandbox.py 1 addition, 1 deletionbuildstream/sandbox/sandbox.py
- buildstream/utils.py 5 additions, 0 deletionsbuildstream/utils.py
- tests/artifactcache/config.py 1 addition, 1 deletiontests/artifactcache/config.py
- tests/artifactcache/junctions.py 2 additions, 2 deletionstests/artifactcache/junctions.py
- tests/completions/completions.py 8 additions, 6 deletionstests/completions/completions.py