Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

With CommandTask, experiment must have an asset to run #881

Closed
ZDu-IDM opened this issue Jun 2, 2020 · 1 comment · Fixed by #884
Closed

With CommandTask, experiment must have an asset to run #881

ZDu-IDM opened this issue Jun 2, 2020 · 1 comment · Fixed by #884
Assignees
Labels
bug Something isn't working Core
Milestone

Comments

@ZDu-IDM
Copy link
Collaborator

ZDu-IDM commented Jun 2, 2020

Repo test:

        command = "python -m pip list"
        task = CommandTask(command=command)
        sim = task.to_simulation()

        experiment = Experiment(name='test')
        experiment.simulations = [sim]

        self.platform.run_items(experiment)

Error

Traceback (most recent call last):
  File "C:\Users\zdu\AppData\Local\Programs\Python\Python36\lib\unittest\case.py", line 59, in testPartExecutor
    yield
  File "C:\Users\zdu\AppData\Local\Programs\Python\Python36\lib\unittest\case.py", line 605, in run
    testMethod()
  File "C:\Projects\idmtools_clark\examples\python_model\zdu_test_simulations.py", line 476, in test_CommandTask_need_asset
    self.platform.run_items(experiment)
  File "C:\Projects\idmtools_clark\idmtools_core\idmtools\entities\iplatform.py", line 458, in run_items
    getattr(self, interface).run_item(item, **kwargs)
  File "C:\Projects\idmtools_clark\idmtools_core\idmtools\entities\iplatform_ops\iplatform_experiment_operations.py", line 207, in run_item
    self.pre_run_item(experiment, **kwargs)
  File "C:\Projects\idmtools_clark\idmtools_core\idmtools\entities\iplatform_ops\iplatform_experiment_operations.py", line 174, in pre_run_item
    self.create(experiment, **kwargs)
  File "C:\Projects\idmtools_clark\idmtools_core\idmtools\entities\iplatform_ops\iplatform_experiment_operations.py", line 81, in create
    experiment._platform_object = self.platform_create(experiment, **kwargs)
  File "C:\Projects\idmtools_clark\idmtools_platform_comps\idmtools_platform_comps\comps_operations\experiment_operations.py", line 112, in platform_create
    self.send_assets(experiment)
  File "C:\Projects\idmtools_clark\idmtools_platform_comps\idmtools_platform_comps\comps_operations\experiment_operations.py", line 143, in send_assets
    ac = self.platform._assets.create(experiment.assets)
  File "C:\Projects\idmtools_clark\idmtools_core\idmtools\entities\iplatform_ops\iplatform_asset_collection_operations.py", line 60, in create
    ret = self.platform_create(asset_collection, **kwargs)
  File "C:\Projects\idmtools_clark\idmtools_platform_comps\idmtools_platform_comps\comps_operations\asset_collection_operations.py", line 35, in platform_create
    ac.save()
  File "C:\Users\zdu\idm36_new\lib\site-packages\COMPS\Data\AssetCollection.py", line 236, in save
    Client.raise_err_from_resp(resp)
  File "C:\Users\zdu\idm36_new\lib\site-packages\COMPS\Client.py", line 198, in raise_err_from_resp
    ' (CorrelationId = {0})'.format(corr_id) if corr_id else ''))
RuntimeError: 400 BadRequest - Invalid request, asset collection contains no assets to save.
@ZDu-IDM ZDu-IDM added bug Something isn't working Core labels Jun 2, 2020
@devclinton devclinton self-assigned this Jun 2, 2020
@devclinton devclinton added this to the Sprint 4 milestone Jun 2, 2020
@devclinton
Copy link
Member

Resolved in item I am prepping for PR

@devclinton devclinton linked a pull request Jun 3, 2020 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Core
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants