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

fix: --failfast -- TypeError: Cannot read property 'status' of undefined #291

Merged
merged 3 commits into from
Feb 11, 2022

Conversation

lisunovdv
Copy link
Contributor

Depends on https://github.com/SalesforceCommerceCloud/sfcc-ci/pull/8/files

Job "sfcc-site-archive-import" started on * * *. Execution id is: 8211* * *
Waiting for job to finish...
Job "sfcc-site-archive-import" finished. Status is: pending (PENDING)

Execution details:

  client_id : ***
  duration : 6667
  execution_status : pending
  id : 8211***
  is_log_file_existing : false
  is_restart : false
  job_id : sfcc-site-archive-import
  log_file_name : Job-sfcc-site-archive-import-***.log
  modification_time : 2022-02-10T20:03:13.703Z
  parameters :
    0 :
      name : ImportMode
      value : merge
    1 :
      name : ImportFile
      value : ***.zip
  start_time : 2022-02-10T20:03:13.703Z
  status : PENDING

Log file:

  No log file available
/opt/hostedtoolcache/node/10.24.1/x64/lib/node_modules/sfcc-ci/lib/job.js:149
                            if (failFast && job_execution.exit_status.status === JOB_EXECUTION_EXIT_STATUS_ERROR ) {
                                                                      ^

TypeError: Cannot read property 'status' of undefined
    at Timeout.<anonymous> (/opt/hostedtoolcache/node/10.24.1/x64/lib/node_modules/sfcc-ci/lib/job.js:149:71)
    at ontimeout (timers.js:436:11)
    at tryOnTimeout (timers.js:300:5)
    at listOnTimeout (timers.js:263:5)
    at Timer.processTimers (timers.js:223:10)

Job "sfcc-site-archive-import" started on ***. Execution id is: 8211***
Waiting for job to finish...
Job "sfcc-site-archive-import" finished. Status is: pending (PENDING)

Execution details:

  client_id : ***
  duration : 6667
  execution_status : pending
  id : 8211***
  is_log_file_existing : false
  is_restart : false
  job_id : sfcc-site-archive-import
  log_file_name : Job-sfcc-site-archive-import-***.log
  modification_time : 2022-02-10T20:03:13.703Z
  parameters :
    0 :
      name : ImportMode
      value : merge
    1 :
      name : ImportFile
      value : ***.zip
  start_time : 2022-02-10T20:03:13.703Z
  status : PENDING

Log file:

  No log file available
/opt/hostedtoolcache/node/10.24.1/x64/lib/node_modules/sfcc-ci/lib/job.js:149
                            if (failFast && job_execution.exit_status.status === JOB_EXECUTION_EXIT_STATUS_ERROR ) {
                                                                      ^

TypeError: Cannot read property 'status' of undefined
    at Timeout.<anonymous> (/opt/hostedtoolcache/node/10.24.1/x64/lib/node_modules/sfcc-ci/lib/job.js:149:71)
    at ontimeout (timers.js:436:11)
    at tryOnTimeout (timers.js:300:5)
    at listOnTimeout (timers.js:263:5)
    at Timer.processTimers (timers.js:223:10)
Job "sfcc-site-archive-import" started on ***. Execution id is: 8211***
Waiting for job to finish...
Job "sfcc-site-archive-import" finished. Status is: pending (PENDING)

Execution details:

  client_id : ***
  duration : 6667
  execution_status : pending
  id : 8211***
  is_log_file_existing : false
  is_restart : false
  job_id : sfcc-site-archive-import
  log_file_name : Job-sfcc-site-archive-import-***.log
  modification_time : 2022-02-10T20:03:13.703Z
  parameters :
    0 :
      name : ImportMode
      value : merge
    1 :
      name : ImportFile
      value : ***.zip
  start_time : 2022-02-10T20:03:13.703Z
  status : PENDING

Log file:

  No log file available
/opt/hostedtoolcache/node/10.24.1/x64/lib/node_modules/sfcc-ci/lib/job.js:149
                            if (failFast && job_execution.exit_status.status === JOB_EXECUTION_EXIT_STATUS_ERROR ) {
                                                                      ^

TypeError: Cannot read property 'status' of undefined
    at Timeout.<anonymous> (/opt/hostedtoolcache/node/10.24.1/x64/lib/node_modules/sfcc-ci/lib/job.js:149:71)
    at ontimeout (timers.js:436:11)
    at tryOnTimeout (timers.js:300:5)
    at listOnTimeout (timers.js:263:5)
    at Timer.processTimers (timers.js:223:10)
Job "sfcc-site-archive-import" started on ***. Execution id is: 8211***
Waiting for job to finish...
Job "sfcc-site-archive-import" finished. Status is: pending (PENDING)

Execution details:

  client_id : ***
  duration : 6667
  execution_status : pending
  id : 8211***
  is_log_file_existing : false
  is_restart : false
  job_id : sfcc-site-archive-import
  log_file_name : Job-sfcc-site-archive-import-***.log
  modification_time : 2022-02-10T20:03:13.703Z
  parameters :
    0 :
      name : ImportMode
      value : merge
    1 :
      name : ImportFile
      value : ***.zip
  start_time : 2022-02-10T20:03:13.703Z
  status : PENDING

Log file:

  No log file available
/opt/hostedtoolcache/node/10.24.1/x64/lib/node_modules/sfcc-ci/lib/job.js:149
                            if (failFast && job_execution.exit_status.status === JOB_EXECUTION_EXIT_STATUS_ERROR ) {
                                                                      ^

TypeError: Cannot read property 'status' of undefined
    at Timeout.<anonymous> (/opt/hostedtoolcache/node/10.24.1/x64/lib/node_modules/sfcc-ci/lib/job.js:149:71)
    at ontimeout (timers.js:436:11)
    at tryOnTimeout (timers.js:300:5)
    at listOnTimeout (timers.js:263:5)
    at Timer.processTimers (timers.js:223:10)
@tobiaslohr
Copy link
Contributor

Thanks a lot for fixing this @lisunovdv!

@tobiaslohr tobiaslohr self-requested a review February 11, 2022 08:57
@tobiaslohr tobiaslohr added the bug Something isn't working label Feb 11, 2022
@tobiaslohr tobiaslohr added this to the 2.10.0 milestone Feb 11, 2022
@tobiaslohr tobiaslohr merged commit d8d5e77 into SalesforceCommerceCloud:master Feb 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants