Skip to content

Run workflow crash "creationTimestamp"

Hello,

When I run my workflow I have this error:

$ opentf-ctl run workflow tests/fiches/squash/workflow.yaml --wait
Workflow d0f1ede6-4b4b-4a5d-8140-5257945902e6 is running.
Workflow Robot Framework Example
[2022-04-07T14:16:53] [job dffc6867-9ec8-4846-9bf7-e2961c01cb69] Running action no-reg
Traceback (most recent call last):
  File "/root/miniconda/envs/opentf/bin/opentf-ctl", line 8, in <module>
    sys.exit(main())
  File "/root/miniconda/envs/opentf/lib/python3.8/site-packages/opentf/tools/ctl.py", line 568, in main
    workflow_cmd()
  File "/root/miniconda/envs/opentf/lib/python3.8/site-packages/opentf/tools/ctlworkflows.py", line 727, in workflow_cmd
    run_workflow(sys.argv[3])
  File "/root/miniconda/envs/opentf/lib/python3.8/site-packages/opentf/tools/ctlworkflows.py", line 389, in run_workflow
    get_workflow(result['details']['workflow_id'], watch=True)
  File "/root/miniconda/envs/opentf/lib/python3.8/site-packages/opentf/tools/ctlworkflows.py", line 562, in get_workflow
    cancelation_event = _show_events(
  File "/root/miniconda/envs/opentf/lib/python3.8/site-packages/opentf/tools/ctlworkflows.py", line 469, in _show_events
    _show_event(kind, event, step_depth, job_depth)
  File "/root/miniconda/envs/opentf/lib/python3.8/site-packages/opentf/tools/ctlworkflows.py", line 438, in _show_event
    _emit_prefix(event)
  File "/root/miniconda/envs/opentf/lib/python3.8/site-packages/opentf/tools/ctlworkflows.py", line 394, in _emit_prefix
    f'[{event["metadata"]["creationTimestamp"][:-7]}]',
KeyError: 'creationTimestamp'

My workflow:

metadata:
  name: Robot Framework Example
jobs:
  no-reg:
    generator: tm.squashtest.org/tm.generator@v1
    with:
      testPlanType: Iteration
      testPlanUuid: 0d4c446d-f0d7-4656-97a2-e2d813ffcaa1
      squashTMUrl: http://squashtest.toto.fr
      squashTMAutomatedServerLogin: toto
      squashTMAutomatedServerPassword: 1111222

Any ideas ?

Edited by Arnaud Moura