-
Hi all, I am using the following config option in a default avocado config file in order to enable the now available sysinfo per test:
However I find no respective sysinfo folders within the test results folder. Could it be that I am missing something obvious here? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 10 replies
-
Hi @pevogam, if you have sysinfo per job enabled before, then the
If all of this is correct, then you should see sysinfo collection per test in |
Beta Was this translation helpful? Give feedback.
-
To answer and thus close this discussion, in order for anyone to use sysinfo and other pre- and post-test plugins with a custom scheduler plugin, they will have to construct the necessary runtime pre-tasks and post-tasks by themselves like in the following use case illustration: task = RuntimeTask(raw_task)
- if spawner == "lxc":
- task.spawner_handle = host
- elif spawner == "remote":
- # TODO: perhaps provide a brand new vanilla session for each integration test?
- task.spawner_handle = node.get_session_to_net()
- self.tasks += [task]
+ pre_tasks = PreRuntimeTask.get_tasks_from_test_task(
+ task,
+ 1,
+ self.job.test_results_path,
+ None,
+ status_server_uri,
+ self.job.unique_id,
+ self.test_suite.config,
+ )
+ post_tasks = PostRuntimeTask.get_tasks_from_test_task(
+ task,
+ 1,
+ self.job.test_results_path,
+ None,
+ status_server_uri,
+ self.job.unique_id,
+ self.test_suite.config,
+ )
+ tasks = [*pre_tasks, task, *post_tasks]
+ for task in tasks:
+ if spawner == "lxc":
+ task.spawner_handle = host
+ elif spawner == "remote":
+ # TODO: perhaps provide a brand new vanilla session for each integration test?
+ task.spawner_handle = node.get_session_to_net()
+ self.tasks += tasks
# TODO: use a single state machine for all test nodes when we are able
# to at least add requested tasks to it safely (using its locks)
- await Worker(state_machine=TaskStateMachine([task], self.status_repo),
+ await Worker(state_machine=TaskStateMachine(tasks, self.status_repo),
spawner=node.spawner, max_running=1,
task_timeout=job.config.get('task.timeout.running')).run() |
Beta Was this translation helpful? Give feedback.
To answer and thus close this discussion, in order for anyone to use sysinfo and other pre- and post-test plugins with a custom scheduler plugin, they will have to construct the necessary runtime pre-tasks and post-tasks by themselves like in the following use case illustration: