jolt 0.9.370__tar.gz → 0.9.373__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (96) hide show
  1. {jolt-0.9.370 → jolt-0.9.373}/PKG-INFO +1 -1
  2. {jolt-0.9.370 → jolt-0.9.373}/jolt/cli.py +8 -2
  3. {jolt-0.9.370 → jolt-0.9.373}/jolt/plugins/docker.py +1 -1
  4. {jolt-0.9.370 → jolt-0.9.373}/jolt/plugins/gdb.py +4 -1
  5. {jolt-0.9.370 → jolt-0.9.373}/jolt/plugins/ninja-compdb.py +4 -1
  6. {jolt-0.9.370 → jolt-0.9.373}/jolt/plugins/podman.py +1 -1
  7. {jolt-0.9.370 → jolt-0.9.373}/jolt/tasks.py +4 -0
  8. jolt-0.9.373/jolt/version.py +1 -0
  9. {jolt-0.9.370 → jolt-0.9.373}/jolt.egg-info/PKG-INFO +1 -1
  10. jolt-0.9.370/jolt/version.py +0 -1
  11. {jolt-0.9.370 → jolt-0.9.373}/README.rst +0 -0
  12. {jolt-0.9.370 → jolt-0.9.373}/jolt/__init__.py +0 -0
  13. {jolt-0.9.370 → jolt-0.9.373}/jolt/__main__.py +0 -0
  14. {jolt-0.9.370 → jolt-0.9.373}/jolt/bin/fstree-darwin-x86_64 +0 -0
  15. {jolt-0.9.370 → jolt-0.9.373}/jolt/bin/fstree-linux-x86_64 +0 -0
  16. {jolt-0.9.370 → jolt-0.9.373}/jolt/cache.py +0 -0
  17. {jolt-0.9.370 → jolt-0.9.373}/jolt/chroot.py +0 -0
  18. {jolt-0.9.370 → jolt-0.9.373}/jolt/colors.py +0 -0
  19. {jolt-0.9.370 → jolt-0.9.373}/jolt/common_pb2.py +0 -0
  20. {jolt-0.9.370 → jolt-0.9.373}/jolt/common_pb2_grpc.py +0 -0
  21. {jolt-0.9.370 → jolt-0.9.373}/jolt/config.py +0 -0
  22. {jolt-0.9.370 → jolt-0.9.373}/jolt/error.py +0 -0
  23. {jolt-0.9.370 → jolt-0.9.373}/jolt/expires.py +0 -0
  24. {jolt-0.9.370 → jolt-0.9.373}/jolt/filesystem.py +0 -0
  25. {jolt-0.9.370 → jolt-0.9.373}/jolt/graph.py +0 -0
  26. {jolt-0.9.370 → jolt-0.9.373}/jolt/hooks.py +0 -0
  27. {jolt-0.9.370 → jolt-0.9.373}/jolt/influence.py +0 -0
  28. {jolt-0.9.370 → jolt-0.9.373}/jolt/inspection.py +0 -0
  29. {jolt-0.9.370 → jolt-0.9.373}/jolt/loader.py +0 -0
  30. {jolt-0.9.370 → jolt-0.9.373}/jolt/log.py +0 -0
  31. {jolt-0.9.370 → jolt-0.9.373}/jolt/manifest.py +0 -0
  32. {jolt-0.9.370 → jolt-0.9.373}/jolt/options.py +0 -0
  33. {jolt-0.9.370 → jolt-0.9.373}/jolt/pkgs/__init__.py +0 -0
  34. {jolt-0.9.370 → jolt-0.9.373}/jolt/pkgs/golang.py +0 -0
  35. {jolt-0.9.370 → jolt-0.9.373}/jolt/pkgs/nodejs.py +0 -0
  36. {jolt-0.9.370 → jolt-0.9.373}/jolt/plugins/__init__.py +0 -0
  37. {jolt-0.9.370 → jolt-0.9.373}/jolt/plugins/alias.py +0 -0
  38. {jolt-0.9.370 → jolt-0.9.373}/jolt/plugins/allure.py +0 -0
  39. {jolt-0.9.370 → jolt-0.9.373}/jolt/plugins/autoweight.py +0 -0
  40. {jolt-0.9.370 → jolt-0.9.373}/jolt/plugins/cache.py +0 -0
  41. {jolt-0.9.370 → jolt-0.9.373}/jolt/plugins/cmake.py +0 -0
  42. {jolt-0.9.370 → jolt-0.9.373}/jolt/plugins/conan.py +0 -0
  43. {jolt-0.9.370 → jolt-0.9.373}/jolt/plugins/cxx.py +0 -0
  44. {jolt-0.9.370 → jolt-0.9.373}/jolt/plugins/cxxinfo.py +0 -0
  45. {jolt-0.9.370 → jolt-0.9.373}/jolt/plugins/dashboard.py +0 -0
  46. {jolt-0.9.370 → jolt-0.9.373}/jolt/plugins/email.py +0 -0
  47. {jolt-0.9.370 → jolt-0.9.373}/jolt/plugins/email.xslt +0 -0
  48. {jolt-0.9.370 → jolt-0.9.373}/jolt/plugins/environ.py +0 -0
  49. {jolt-0.9.370 → jolt-0.9.373}/jolt/plugins/gerrit.py +0 -0
  50. {jolt-0.9.370 → jolt-0.9.373}/jolt/plugins/git.py +0 -0
  51. {jolt-0.9.370 → jolt-0.9.373}/jolt/plugins/golang.py +0 -0
  52. {jolt-0.9.370 → jolt-0.9.373}/jolt/plugins/googletest.py +0 -0
  53. {jolt-0.9.370 → jolt-0.9.373}/jolt/plugins/http.py +0 -0
  54. {jolt-0.9.370 → jolt-0.9.373}/jolt/plugins/junit.py +0 -0
  55. {jolt-0.9.370 → jolt-0.9.373}/jolt/plugins/linux.py +0 -0
  56. {jolt-0.9.370 → jolt-0.9.373}/jolt/plugins/logstash.py +0 -0
  57. {jolt-0.9.370 → jolt-0.9.373}/jolt/plugins/ninja.py +0 -0
  58. {jolt-0.9.370 → jolt-0.9.373}/jolt/plugins/nodejs.py +0 -0
  59. {jolt-0.9.370 → jolt-0.9.373}/jolt/plugins/paths.py +0 -0
  60. {jolt-0.9.370 → jolt-0.9.373}/jolt/plugins/python.py +0 -0
  61. {jolt-0.9.370 → jolt-0.9.373}/jolt/plugins/remote_execution/__init__.py +0 -0
  62. {jolt-0.9.370 → jolt-0.9.373}/jolt/plugins/remote_execution/administration_pb2.py +0 -0
  63. {jolt-0.9.370 → jolt-0.9.373}/jolt/plugins/remote_execution/administration_pb2_grpc.py +0 -0
  64. {jolt-0.9.370 → jolt-0.9.373}/jolt/plugins/remote_execution/log_pb2.py +0 -0
  65. {jolt-0.9.370 → jolt-0.9.373}/jolt/plugins/remote_execution/log_pb2_grpc.py +0 -0
  66. {jolt-0.9.370 → jolt-0.9.373}/jolt/plugins/remote_execution/scheduler_pb2.py +0 -0
  67. {jolt-0.9.370 → jolt-0.9.373}/jolt/plugins/remote_execution/scheduler_pb2_grpc.py +0 -0
  68. {jolt-0.9.370 → jolt-0.9.373}/jolt/plugins/remote_execution/worker_pb2.py +0 -0
  69. {jolt-0.9.370 → jolt-0.9.373}/jolt/plugins/remote_execution/worker_pb2_grpc.py +0 -0
  70. {jolt-0.9.370 → jolt-0.9.373}/jolt/plugins/report.py +0 -0
  71. {jolt-0.9.370 → jolt-0.9.373}/jolt/plugins/scheduler.py +0 -0
  72. {jolt-0.9.370 → jolt-0.9.373}/jolt/plugins/selfdeploy.py +0 -0
  73. {jolt-0.9.370 → jolt-0.9.373}/jolt/plugins/strings.py +0 -0
  74. {jolt-0.9.370 → jolt-0.9.373}/jolt/plugins/symlinks.py +0 -0
  75. {jolt-0.9.370 → jolt-0.9.373}/jolt/plugins/telemetry.py +0 -0
  76. {jolt-0.9.370 → jolt-0.9.373}/jolt/plugins/timeline.py +0 -0
  77. {jolt-0.9.370 → jolt-0.9.373}/jolt/plugins/volume.py +0 -0
  78. {jolt-0.9.370 → jolt-0.9.373}/jolt/plugins/yaml-ninja.py +0 -0
  79. {jolt-0.9.370 → jolt-0.9.373}/jolt/plugins/yamltask.py +0 -0
  80. {jolt-0.9.370 → jolt-0.9.373}/jolt/scheduler.py +0 -0
  81. {jolt-0.9.370 → jolt-0.9.373}/jolt/templates/cxxexecutable.cmake.template +0 -0
  82. {jolt-0.9.370 → jolt-0.9.373}/jolt/templates/cxxlibrary.cmake.template +0 -0
  83. {jolt-0.9.370 → jolt-0.9.373}/jolt/templates/export.sh.template +0 -0
  84. {jolt-0.9.370 → jolt-0.9.373}/jolt/templates/timeline.html.template +0 -0
  85. {jolt-0.9.370 → jolt-0.9.373}/jolt/timer.py +0 -0
  86. {jolt-0.9.370 → jolt-0.9.373}/jolt/tools.py +0 -0
  87. {jolt-0.9.370 → jolt-0.9.373}/jolt/utils.py +0 -0
  88. {jolt-0.9.370 → jolt-0.9.373}/jolt/version_utils.py +0 -0
  89. {jolt-0.9.370 → jolt-0.9.373}/jolt/xmldom.py +0 -0
  90. {jolt-0.9.370 → jolt-0.9.373}/jolt.egg-info/SOURCES.txt +0 -0
  91. {jolt-0.9.370 → jolt-0.9.373}/jolt.egg-info/dependency_links.txt +0 -0
  92. {jolt-0.9.370 → jolt-0.9.373}/jolt.egg-info/entry_points.txt +0 -0
  93. {jolt-0.9.370 → jolt-0.9.373}/jolt.egg-info/requires.txt +0 -0
  94. {jolt-0.9.370 → jolt-0.9.373}/jolt.egg-info/top_level.txt +0 -0
  95. {jolt-0.9.370 → jolt-0.9.373}/setup.cfg +0 -0
  96. {jolt-0.9.370 → jolt-0.9.373}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: jolt
3
- Version: 0.9.370
3
+ Version: 0.9.373
4
4
  Summary: A task executor
5
5
  Home-page: https://github.com/srand/jolt
6
6
  Author: Robert Andersson
@@ -374,9 +374,11 @@ def build(ctx, task, network, keep_going, default, local,
374
374
  debug=debug)
375
375
 
376
376
  with progress:
377
+ in_progress = set()
378
+
377
379
  while dag.has_tasks() or not queue.empty():
378
380
  # Find all tasks ready to be executed
379
- leafs = dag.select(lambda graph, task: task.is_ready())
381
+ leafs = dag.select(lambda graph, task: task.is_ready() and task not in in_progress)
380
382
 
381
383
  # Order the tasks by their weights to improve build times
382
384
  leafs.sort(key=lambda x: x.weight)
@@ -385,6 +387,7 @@ def build(ctx, task, network, keep_going, default, local,
385
387
  task = leafs.pop()
386
388
  executor = strategy.create_executor(session, task)
387
389
  queue.submit(executor)
390
+ in_progress.add(task)
388
391
 
389
392
  task, error = queue.wait()
390
393
 
@@ -745,13 +748,16 @@ def download(ctx, task, deps, copy, copy_all):
745
748
 
746
749
  try:
747
750
  with log.progress("Progress", dag.number_of_tasks(), " tasks", estimates=False, debug=False) as p:
751
+ in_progress = set()
752
+
748
753
  while dag.has_tasks() or not queue.empty():
749
- leafs = dag.select(lambda graph, task: task.is_ready())
754
+ leafs = dag.select(lambda graph, task: task.is_ready() and task not in in_progress)
750
755
 
751
756
  while leafs:
752
757
  task = leafs.pop()
753
758
  executor = strategy.create_executor({}, task)
754
759
  queue.submit(executor)
760
+ in_progress.add(task)
755
761
 
756
762
  task, error = queue.wait()
757
763
  p.update(1)
@@ -254,7 +254,7 @@ class DockerContainer(Resource):
254
254
  def _image(self):
255
255
  registry = TaskRegistry.get()
256
256
  tool = tools.Tools(self)
257
- if registry.get_task(tool.expand(self.image)):
257
+ if registry.has_task(tool.expand(self.image)):
258
258
  return [self.image]
259
259
  return []
260
260
 
@@ -86,13 +86,16 @@ def gdb(ctx, task, default, machine_interface, no_binary, gdb_args):
86
86
 
87
87
  try:
88
88
  with log.progress("Progress", dag.number_of_tasks(), " tasks", estimates=False, debug=False) as p:
89
+ in_progress = set()
90
+
89
91
  while dag.has_tasks() or not queue.empty():
90
- leafs = dag.select(lambda graph, task: task.is_ready())
92
+ leafs = dag.select(lambda graph, task: task.is_ready() and task not in in_progress)
91
93
 
92
94
  while leafs:
93
95
  task = leafs.pop()
94
96
  executor = strategy.create_executor({}, task)
95
97
  queue.submit(executor)
98
+ in_progress.add(task)
96
99
 
97
100
  task, _ = queue.wait()
98
101
 
@@ -242,8 +242,10 @@ def compdb(ctx, task, default):
242
242
 
243
243
  try:
244
244
  with log.progress("Progress", dag.number_of_tasks(), " tasks", estimates=False, debug=False) as progress:
245
+ in_progress = set()
246
+
245
247
  while dag.has_tasks() or not queue.empty():
246
- leafs = dag.select(lambda graph, task: task.is_ready())
248
+ leafs = dag.select(lambda graph, task: task.is_ready() and task not in in_progress)
247
249
 
248
250
  # Order the tasks by their weights to improve build times
249
251
  leafs.sort(key=lambda x: x.weight)
@@ -252,6 +254,7 @@ def compdb(ctx, task, default):
252
254
  task = leafs.pop()
253
255
  executor = strategy.create_executor({}, task)
254
256
  queue.submit(executor)
257
+ in_progress.add(task)
255
258
 
256
259
  task, _ = queue.wait()
257
260
 
@@ -247,7 +247,7 @@ class Container(Resource):
247
247
  def _image(self):
248
248
  registry = TaskRegistry.get()
249
249
  tool = tools.Tools(self)
250
- if registry.get_task(tool.expand(self.image)):
250
+ if registry.has_task(tool.expand(self.image)):
251
251
  return [self.image]
252
252
  return []
253
253
 
@@ -847,6 +847,10 @@ class TaskRegistry(object):
847
847
 
848
848
  raise_task_error_if(not task, full_name, "No such task")
849
849
 
850
+ def has_task(self, name):
851
+ name, params = utils.parse_task_name(name)
852
+ return self.tasks.get(name) is not None
853
+
850
854
  def set_default_parameters(self, task):
851
855
  name, params = utils.parse_task_name(task)
852
856
 
@@ -0,0 +1 @@
1
+ __version__ = "0.9.373"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: jolt
3
- Version: 0.9.370
3
+ Version: 0.9.373
4
4
  Summary: A task executor
5
5
  Home-page: https://github.com/srand/jolt
6
6
  Author: Robert Andersson
@@ -1 +0,0 @@
1
- __version__ = "0.9.370"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes