cirocosta / slirunner

Concourse SLI probes runner
6 stars 4 forks source link

create-and-run-new-pipeline/auto-triggering is not triggered after update of 6.0 #5

Open gowrisankar22 opened 4 years ago

gowrisankar22 commented 4 years ago

@cirocosta Recently updated our product concourse to production and we have over 400 pipelines. Here sli runner create-and-run-new-pipeline/auto-triggering is not triggered only and after 1 mins it is getting destroyed due to which SLI is impaired.

I set the same pipeline directly, but it works. could you please help ?

{"timestamp":"1587124995.010592699","source":"slirunner","message":"slirunner.run.login.start","log_level":1,"data":{"session":"1.1"}}
{"timestamp":"1587124995.280719757","source":"slirunner","message":"slirunner.run.login.finish","log_level":1,"data":{"session":"1.1"}}
{"timestamp":"1587124995.280773163","source":"slirunner","message":"slirunner.run.sync.start","log_level":1,"data":{"session":"1.2"}}
{"timestamp":"1587124996.580364227","source":"slirunner","message":"slirunner.run.sync.finish","log_level":1,"data":{"session":"1.2"}}
{"timestamp":"1587124996.580456734","source":"slirunner","message":"slirunner.run.run-existing-pipeline.start","log_level":1,"data":{"session":"1.3"}}
{"timestamp":"1587124996.580546856","source":"slirunner","message":"slirunner.run.create-and-run-new-pipeline.start","log_level":1,"data":{"session":"1.4"}}
{"timestamp":"1587124996.580557585","source":"slirunner","message":"slirunner.run.hijack-failing-build.start","log_level":1,"data":{"session":"1.5"}}
{"timestamp":"1587125013.853211641","source":"slirunner","message":"slirunner.run.run-existing-pipeline.finish","log_level":1,"data":{"session":"1.3"}}
{"timestamp":"1587125014.701107502","source":"slirunner","message":"slirunner.run.hijack-failing-build.finish","log_level":1,"data":{"session":"1.5"}}
COMMAND FAILURE---
+ fly -t ci destroy-pipeline -n -p sapcreate-and-run-new-pipeline
!!! this will remove all data for pipeline `sapcreate-and-run-new-pipeline`

`sapcreate-and-run-new-pipeline` does not exist
+ fly -t ci set-pipeline -n -p sapcreate-and-run-new-pipeline -c /dev/fd/63
++ echo '
resources:
- name: time-trigger
  type: time
  source: {interval: 24h}

jobs:
- name: simple-job
  build_logs_to_retain: 20
  public: true
  plan:
  - &say-hello
    task: say-hello
    config:
      platform: linux
      image_resource:
        type: registry-image
        source: {repository: busybox}
      run:
        path: echo
        args: ["Hello, world!"]

- name: failing
  build_logs_to_retain: 20
  public: true
{"timestamp":"1587125057.291476727","source":"slirunner","message":"slirunner.run.create-and-run-new-pipeline.finish","log_level":2,"data":{"error":"command execution failed: command didn't finish on time: context deadline exceeded","session":"1.4"}}
  plan:
  - task: fail
    config:
      platform: linux
      image_resource:
        type: registry-image
        source: {repository: busybox}
      run:
        path: false

- name: auto-triggering
  build_logs_to_retain: 20
  public: true
  plan:
  - get: time-trigger
    trigger: true
  - *say-hello
'
resources:
  resource time-trigger has been added:
+ name: time-trigger
+ source:
+   interval: 24h
+ type: time

jobs:
  job simple-job has been added:
+ build_logs_to_retain: 20
+ name: simple-job
+ plan:
+ - config:
+     container_limits: {}
+     image_resource:
+       source:
+         repository: busybox
+       type: registry-image
+     platform: linux
+     run:
+       args:
+       - Hello, world!
+       path: echo
+   task: say-hello
+ public: true

  job failing has been added:
+ build_logs_to_retain: 20
+ name: failing
+ plan:
+ - config:
+     container_limits: {}
+     image_resource:
+       source:
+         repository: busybox
+       type: registry-image
+     platform: linux
+     run:
+       path: "false"
+   task: fail
+ public: true

  job auto-triggering has been added:
+ build_logs_to_retain: 20
+ name: auto-triggering
+ plan:
+ - get: time-trigger
+   trigger: true
+ - config:
+     container_limits: {}
+     image_resource:
+       source:
+         repository: busybox
+       type: registry-image
+     platform: linux
+     run:
+       args:
+       - Hello, world!
+       path: echo
+   task: say-hello
+ public: true

pipeline created!
you can view your pipeline here: https://concourse/teams/main/pipelines/sapcreate-and-run-new-pipeline

the pipeline is currently paused. to unpause, either:
  - run the unpause-pipeline command:
    fly -t ci unpause-pipeline -p sapcreate-and-run-new-pipeline
  - click play next to the pipeline in the web ui
+ fly -t ci unpause-pipeline -p sapcreate-and-run-new-pipeline
unpaused 'sapcreate-and-run-new-pipeline'
++ wait_for_build
++ fly -t ci builds -j sapcreate-and-run-new-pipeline/auto-triggering
++ grep -v pending
++ wc -l
+ '[' 0 -gt 0 ']'
+ echo 'waiting for job to automatically trigger...'
waiting for job to automatically trigger...
+ sleep 1
++ wait_for_build
++ fly -t ci builds -j sapcreate-and-run-new-pipeline/auto-triggering
++ grep -v pending
++ wc -l
+ '[' 0 -gt 0 ']'
+ echo 'waiting for job to automatically trigger...'
waiting for job to automatically trigger...
+ sleep 1
++ wait_for_build
++ fly -t ci builds -j sapcreate-and-run-new-pipeline/auto-triggering
++ grep -v pending
++ wc -l
+ '[' 0 -gt 0 ']'
+ echo 'waiting for job to automatically trigger...'
waiting for job to automatically trigger...
+ sleep 1
++ wait_for_build
++ fly -t ci builds -j sapcreate-and-run-new-pipeline/auto-triggering
++ grep -v pending
++ wc -l
+ '[' 0 -gt 0 ']'
+ echo 'waiting for job to automatically trigger...'
waiting for job to automatically trigger...
+ sleep 1
++ wait_for_build
++ fly -t ci builds -j sapcreate-and-run-new-pipeline/auto-triggering
++ grep -v pending
++ wc -l
+ '[' 0 -gt 0 ']'
+ echo 'waiting for job to automatically trigger...'
waiting for job to automatically trigger...
+ sleep 1
++ wait_for_build
++ fly -t ci builds -j sapcreate-and-run-new-pipeline/auto-triggering
++ grep -v pending
++ wc -l
+ '[' 0 -gt 0 ']'
+ echo 'waiting for job to automatically trigger...'
waiting for job to automatically trigger...
+ sleep 1
++ wait_for_build
++ fly -t ci builds -j sapcreate-and-run-new-pipeline/auto-triggering
++ grep -v pending
++ wc -l
+ '[' 0 -gt 0 ']'
+ echo 'waiting for job to automatically trigger...'
waiting for job to automatically trigger...
+ sleep 1
++ wait_for_build
++ fly -t ci builds -j sapcreate-and-run-new-pipeline/auto-triggering
++ grep -v pending
++ wc -l
+ '[' 0 -gt 0 ']'
+ echo 'waiting for job to automatically trigger...'
waiting for job to automatically trigger...
+ sleep 1
++ wait_for_build
++ fly -t ci builds -j sapcreate-and-run-new-pipeline/auto-triggering
++ grep -v pending
++ wc -l
+ '[' 0 -gt 0 ']'
+ echo 'waiting for job to automatically trigger...'
waiting for job to automatically trigger...
+ sleep 1
++ wait_for_build
++ fly -t ci builds -j sapcreate-and-run-new-pipeline/auto-triggering
++ grep -v pending
++ wc -l
+ '[' 0 -gt 0 ']'
+ echo 'waiting for job to automatically trigger...'
waiting for job to automatically trigger...
+ sleep 1
++ wait_for_build
++ fly -t ci builds -j sapcreate-and-run-new-pipeline/auto-triggering
++ grep -v pending
++ wc -l
+ '[' 0 -gt 0 ']'
+ echo 'waiting for job to automatically trigger...'
waiting for job to automatically trigger...
+ sleep 1
++ wait_for_build
++ fly -t ci builds -j sapcreate-and-run-new-pipeline/auto-triggering
++ grep -v pending
++ wc -l
+ '[' 0 -gt 0 ']'
+ echo 'waiting for job to automatically trigger...'
waiting for job to automatically trigger...
+ sleep 1
++ wait_for_build
++ fly -t ci builds -j sapcreate-and-run-new-pipeline/auto-triggering
++ grep -v pending
++ wc -l
+ '[' 0 -gt 0 ']'
+ echo 'waiting for job to automatically trigger...'
waiting for job to automatically trigger...
+ sleep 1
++ wait_for_build
++ fly -t ci builds -j sapcreate-and-run-new-pipeline/auto-triggering
++ grep -v pending
++ wc -l
+ '[' 0 -gt 0 ']'
+ echo 'waiting for job to automatically trigger...'
waiting for job to automatically trigger...
+ sleep 1
++ wait_for_build
++ fly -t ci builds -j sapcreate-and-run-new-pipeline/auto-triggering
++ grep -v pending
++ wc -l
+ '[' 0 -gt 0 ']'
+ echo 'waiting for job to automatically trigger...'
waiting for job to automatically trigger...
+ sleep 1
++ wait_for_build
++ fly -t ci builds -j sapcreate-and-run-new-pipeline/auto-triggering
++ grep -v pending
++ wc -l
+ '[' 0 -gt 0 ']'
+ echo 'waiting for job to automatically trigger...'
waiting for job to automatically trigger...
+ sleep 1
++ wait_for_build
++ fly -t ci builds -j sapcreate-and-run-new-pipeline/auto-triggering
++ grep -v pending
++ wc -l
+ '[' 0 -gt 0 ']'
+ echo 'waiting for job to automatically trigger...'
waiting for job to automatically trigger...
+ sleep 1
++ wait_for_build
++ fly -t ci builds -j sapcreate-and-run-new-pipeline/auto-triggering
++ grep -v pending
++ wc -l
+ '[' 0 -gt 0 ']'
+ echo 'waiting for job to automatically trigger...'
waiting for job to automatically trigger...
+ sleep 1
++ wait_for_build
++ fly -t ci builds -j sapcreate-and-run-new-pipeline/auto-triggering
++ grep -v pending
++ wc -l
+ '[' 0 -gt 0 ']'
+ echo 'waiting for job to automatically trigger...'
waiting for job to automatically trigger...
+ sleep 1
++ wait_for_build
++ fly -t ci builds -j sapcreate-and-run-new-pipeline/auto-triggering
++ grep -v pending
++ wc -l
+ '[' 0 -gt 0 ']'
+ echo 'waiting for job to automatically trigger...'
waiting for job to automatically trigger...
+ sleep 1
++ wait_for_build
++ fly -t ci builds -j sapcreate-and-run-new-pipeline/auto-triggering
++ grep -v pending
++ wc -l
+ '[' 0 -gt 0 ']'
+ echo 'waiting for job to automatically trigger...'
waiting for job to automatically trigger...
+ sleep 1
++ wait_for_build
++ fly -t ci builds -j sapcreate-and-run-new-pipeline/auto-triggering
++ grep -v pending
++ wc -l
+ '[' 0 -gt 0 ']'
+ echo 'waiting for job to automatically trigger...'
waiting for job to automatically trigger...
+ sleep 1
++ wait_for_build
++ fly -t ci builds -j sapcreate-and-run-new-pipeline/auto-triggering
++ grep -v pending
++ wc -l
+ '[' 0 -gt 0 ']'
+ echo 'waiting for job to automatically trigger...'
waiting for job to automatically trigger...
+ sleep 1
++ wait_for_build
++ fly -t ci builds -j sapcreate-and-run-new-pipeline/auto-triggering
++ grep -v pending
++ wc -l
+ '[' 0 -gt 0 ']'
+ echo 'waiting for job to automatically trigger...'
waiting for job to automatically trigger...
+ sleep 1
++ wait_for_build
++ fly -t ci builds -j sapcreate-and-run-new-pipeline/auto-triggering
++ grep -v pending
++ wc -l
+ '[' 0 -gt 0 ']'
+ echo 'waiting for job to automatically trigger...'
waiting for job to automatically trigger...
+ sleep 1
++ wait_for_build
++ fly -t ci builds -j sapcreate-and-run-new-pipeline/auto-triggering
++ grep -v pending
++ wc -l
+ '[' 0 -gt 0 ']'
+ echo 'waiting for job to automatically trigger...'
waiting for job to automatically trigger...
+ sleep 1
++ wait_for_build
++ fly -t ci builds -j sapcreate-and-run-new-pipeline/auto-triggering
++ grep -v pending
++ wc -l
+ '[' 0 -gt 0 ']'
+ echo 'waiting for job to automatically trigger...'
waiting for job to automatically trigger...
+ sleep 1
++ wait_for_build
++ fly -t ci builds -j sapcreate-and-run-new-pipeline/auto-triggering
++ grep -v pending
++ wc -l
+ '[' 0 -gt 0 ']'
+ echo 'waiting for job to automatically trigger...'
waiting for job to automatically trigger...
+ sleep 1
++ wait_for_build
++ fly -t ci builds -j sapcreate-and-run-new-pipeline/auto-triggering
++ grep -v pending
++ wc -l
+ '[' 0 -gt 0 ']'
+ echo 'waiting for job to automatically trigger...'
waiting for job to automatically trigger...
+ sleep 1
++ wait_for_build
++ fly -t ci builds -j sapcreate-and-run-new-pipeline/auto-triggering
++ grep -v pending
++ wc -l
+ '[' 0 -gt 0 ']'
+ echo 'waiting for job to automatically trigger...'
waiting for job to automatically trigger...
+ sleep 1
++ wait_for_build
++ fly -t ci builds -j sapcreate-and-run-new-pipeline/auto-triggering
++ grep -v pending
++ wc -l
+ '[' 0 -gt 0 ']'
+ echo 'waiting for job to automatically trigger...'
waiting for job to automatically trigger...
+ sleep 1
++ wait_for_build
++ fly -t ci builds -j sapcreate-and-run-new-pipeline/auto-triggering
++ grep -v pending
++ wc -l
+ '[' 0 -gt 0 ']'
+ echo 'waiting for job to automatically trigger...'
waiting for job to automatically trigger...
+ sleep 1
++ wait_for_build
++ fly -t ci builds -j sapcreate-and-run-new-pipeline/auto-triggering
++ grep -v pending
++ wc -l
+ '[' 0 -gt 0 ']'
+ echo 'waiting for job to automatically trigger...'
waiting for job to automatically trigger...
+ sleep 1
++ wait_for_build
++ fly -t ci builds -j sapcreate-and-run-new-pipeline/auto-triggering
++ grep -v pending
++ wc -l
+ '[' 0 -gt 0 ']'
+ echo 'waiting for job to automatically trigger...'
waiting for job to automatically trigger...
+ sleep 1
++ wait_for_build
++ fly -t ci builds -j sapcreate-and-run-new-pipeline/auto-triggering
++ grep -v pending
++ wc -l
+ '[' 0 -gt 0 ']'
+ echo 'waiting for job to automatically trigger...'
waiting for job to automatically trigger...
+ sleep 1
++ wait_for_build
++ fly -t ci builds -j sapcreate-and-run-new-pipeline/auto-triggering
++ grep -v pending
++ wc -l
+ '[' 0 -gt 0 ']'
+ echo 'waiting for job to automatically trigger...'
waiting for job to automatically trigger...
+ sleep 1
++ wait_for_build
++ fly -t ci builds -j sapcreate-and-run-new-pipeline/auto-triggering
++ grep -v pending
++ wc -l
+ '[' 0 -gt 0 ']'
+ echo 'waiting for job to automatically trigger...'
waiting for job to automatically trigger...
+ sleep 1
++ wait_for_build
++ fly -t ci builds -j sapcreate-and-run-new-pipeline/auto-triggering
++ grep -v pending
++ wc -l
+ '[' 0 -gt 0 ']'
+ echo 'waiting for job to automatically trigger...'
waiting for job to automatically trigger...
+ sleep 1
++ wait_for_build
++ fly -t ci builds -j sapcreate-and-run-new-pipeline/auto-triggering
++ grep -v pending
++ wc -l
+ '[' 0 -gt 0 ']'
+ echo 'waiting for job to automatically trigger...'
waiting for job to automatically trigger...
+ sleep 1
++ wait_for_build
++ fly -t ci builds -j sapcreate-and-run-new-pipeline/auto-triggering
++ grep -v pending
++ wc -l
+ '[' 0 -gt 0 ']'
+ echo 'waiting for job to automatically trigger...'
waiting for job to automatically trigger...
+ sleep 1
++ wait_for_build
++ fly -t ci builds -j sapcreate-and-run-new-pipeline/auto-triggering
++ grep -v pending
++ wc -l
+ '[' 0 -gt 0 ']'
+ echo 'waiting for job to automatically trigger...'
waiting for job to automatically trigger...
+ sleep 1
++ wait_for_build
++ fly -t ci builds -j sapcreate-and-run-new-pipeline/auto-triggering
++ grep -v pending
++ wc -l
+ '[' 0 -gt 0 ']'
+ echo 'waiting for job to automatically trigger...'
waiting for job to automatically trigger...
+ sleep 1
++ wait_for_build
++ fly -t ci builds -j sapcreate-and-run-new-pipeline/auto-triggering
++ grep -v pending
++ wc -l
+ '[' 0 -gt 0 ']'
+ echo 'waiting for job to automatically trigger...'
waiting for job to automatically trigger...
+ sleep 1
++ wait_for_build
++ fly -t ci builds -j sapcreate-and-run-new-pipeline/auto-triggering
++ grep -v pending
++ wc -l
+ '[' 0 -gt 0 ']'
+ echo 'waiting for job to automatically trigger...'
waiting for job to automatically trigger...
+ sleep 1
++ wait_for_build
++ fly -t ci builds -j sapcreate-and-run-new-pipeline/auto-triggering
++ grep -v pending
++ wc -l
+ '[' 0 -gt 0 ']'
+ echo 'waiting for job to automatically trigger...'
waiting for job to automatically trigger...
+ sleep 1
++ wait_for_build
++ fly -t ci builds -j sapcreate-and-run-new-pipeline/auto-triggering
++ grep -v pending
++ wc -l
+ '[' 0 -gt 0 ']'
+ echo 'waiting for job to automatically trigger...'
waiting for job to automatically trigger...
+ sleep 1
++ wait_for_build
++ fly -t ci builds -j sapcreate-and-run-new-pipeline/auto-triggering
++ grep -v pending
++ wc -l
+ '[' 0 -gt 0 ']'
+ echo 'waiting for job to automatically trigger...'
waiting for job to automatically trigger...
+ sleep 1
++ wait_for_build
++ fly -t ci builds -j sapcreate-and-run-new-pipeline/auto-triggering
++ grep -v pending
++ wc -l
+ '[' 0 -gt 0 ']'
+ echo 'waiting for job to automatically trigger...'
waiting for job to automatically trigger...
+ sleep 1
++ wait_for_build
++ fly -t ci builds -j sapcreate-and-run-new-pipeline/auto-triggering
++ grep -v pending
++ wc -l
+ '[' 0 -gt 0 ']'
+ echo 'waiting for job to automatically trigger...'
waiting for job to automatically trigger...
+ sleep 1
++ wait_for_build
++ fly -t ci builds -j sapcreate-and-run-new-pipeline/auto-triggering
++ grep -v pending
++ wc -l
+ '[' 0 -gt 0 ']'
+ echo 'waiting for job to automatically trigger...'
waiting for job to automatically trigger...
+ sleep 1
++ wait_for_build
++ fly -t ci builds -j sapcreate-and-run-new-pipeline/auto-triggering
++ grep -v pending
++ wc -l
+ '[' 0 -gt 0 ']'
+ echo 'waiting for job to automatically trigger...'
waiting for job to automatically trigger...
+ sleep 1
gowrisankar22 commented 4 years ago

@cirocosta time-resource was not able to check and pin the resource in order to auto trigger. ideally time resource should be

time-triggerchecked2m 32s ago

checking successfully
time2020-04-17T12:07:09.414997136Z

but it is

checking successfully