Home Quick start All builds News Donations
More
Log In
Light Theme Docs
Workers

SparrowCI Report - gh-melezhik-sparrowci-bugzilla | [image: melezhik/sparrow:alpine]

  • Summary
  • Pipeline YAML
  • Report
BuildID: 2263
Status: OK
Image: melezhik/sparrow:alpine
Worker status: OK
---
Date: 21.12.2022 @ 01:45
Time elapsed: 94 sec
---
SCM: https://github.com/melezhik/sparrowci-bugzilla.git
Git sha: bd0f6ea
Git comment: remove quotes. close!
secrets:
  - BUGZILLA_RESTAPI_KEY
  
tasks:
  - 
    name: main
    default: true
    language: Raku
    config:
      bugid: 1632727
    init: |
      run_task "comment";
      run_task "close" if config()<tasks><git-commit><state><comment> ~~ /'close!'/;
    subtasks:
      - 
        name: comment
        language: Bash
        code: |
          set -e
          bugid=$(config bugid)
          cat << HERE > data.json
          {
            "comment" : "This comment is made by SparrowCI",
            "is_private" : false
          }      
          HERE

          curl -f -H "Content-Type: application/json" -X POST \
          --data @data.json \
          https://bugzilla-dev.allizom.org/rest/bug/$bugid/comment?api_key=$BUGZILLA_RESTAPI_KEY

          echo "comment has been added to https://bugzilla-dev.allizom.org/show_bug.cgi?id=$bugid"
      - 
        name: close
        language: Bash
        code: |
          set -e
          bugid=$(config bugid)
          cat << HERE > data.json
          {
            "ids" : [$bugid],
            "status" : "RESOLVED",
            "resolution" : "MOVED"
          }          
          HERE

          cat data.json
          
          curl -D - -H "Content-Type: application/json" -X PUT \
          --data @data.json \
          https://bugzilla-dev.allizom.org/rest/bug/$bugid?api_key=$BUGZILLA_RESTAPI_KEY

          echo "bug has been closed https://bugzilla-dev.allizom.org/show_bug.cgi?id=$bugid"


    depends:
      -
        name: git-commit
  - name: git-commit
    plugin: git-commit-data
    config:
      dir: source
01:44:42 :: [repository] - index updated from https://sparrowhub.io/repo/api/v1/index
run stage: run
source directory does not yet exist, download source archive from storage
01:44:46 :: [repository] - installing pack-unpack, version 0.000001
[task run: task.bash - unpack source archive]
[dump code: task.bash]
[1] set -e
[2] 
[3] file=$(config file)
[4] dir=$(config dir)
[5] 
[6] echo "tar -xzf $file "
[7] 
[8] tar -xzf $file
[9] 
[10] if test $dir; then
[11]   ls -l $dir
[12] fi
[13] 
[14] 
[task stdout]
01:44:49 :: tar -xzf source.tar.gz 
[task run: task.bash - tasks/main]
[dump code: task.bash]
[1] set -e
[2] bugid=$(config bugid)
[3] cat << HERE > data.json
[4] {
[5]   "comment" : "This comment is made by SparrowCI",
[6]   "is_private" : false
[7] }      
[8] HERE
[9] 
[10] curl -f -H "Content-Type: application/json" -X POST \
[11] --data @data.json \
[12] https://bugzilla-dev.allizom.org/rest/bug/$bugid/comment?api_key=$BUGZILLA_RESTAPI_KEY
[13] 
[14] echo "comment has been added to https://bugzilla-dev.allizom.org/show_bug.cgi?id=$bugid"
[15] 
[task stdout]
01:45:14 :: {"id":2305}comment has been added to https://bugzilla-dev.allizom.org/show_bug.cgi?id=1632727
[task stderr]
01:45:14 ::   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
01:45:14 ::                                  Dload  Upload   Total   Spent    Left  Speed
01:45:14 :: 
01:45:14 ::   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
01:45:14 :: 100    80    0     0  100    80      0    387 --:--:-- --:--:-- --:--:--   386
01:45:14 :: 100    91    0    11  100    80     21    154 --:--:-- --:--:-- --:--:--   176
[task run: task.bash - tasks/main]
[dump code: task.bash]
[1] set -e
[2] bugid=$(config bugid)
[3] cat << HERE > data.json
[4] {
[5]   "ids" : [$bugid],
[6]   "status" : "RESOLVED",
[7]   "resolution" : "MOVED"
[8] }          
[9] HERE
[10] 
[11] cat data.json
[12] 
[13] curl -D - -H "Content-Type: application/json" -X PUT \
[14] --data @data.json \
[15] https://bugzilla-dev.allizom.org/rest/bug/$bugid?api_key=$BUGZILLA_RESTAPI_KEY
[16] 
[17] echo "bug has been closed https://bugzilla-dev.allizom.org/show_bug.cgi?id=$bugid"
[18] 
[task stdout]
01:45:14 :: {
01:45:14 ::   "ids" : [1632727],
01:45:14 ::   "status" : "RESOLVED",
01:45:14 ::   "resolution" : "MOVED"
01:45:14 :: }          
01:45:15 :: HTTP/2 200 
01:45:15 :: server: nginx
01:45:15 :: date: Wed, 21 Dec 2022 01:45:15 GMT
01:45:15 :: content-type: application/json; charset=UTF-8
01:45:15 :: vary: Accept-Encoding
01:45:15 :: access-control-allow-headers: accept, content-type, origin, user-agent, x-requested-with, x-bugzilla-password, x-bugzilla-token, x-bugzilla-api-key, x-phabricator-token, x-bugzilla-login
01:45:15 :: access-control-allow-origin: *
01:45:15 :: content-security-policy-report-only: default-src 'self'; worker-src 'none'; connect-src 'self' https://product-details.mozilla.org https://www.google-analytics.com https://treeherder.mozilla.org/api/failurecount/ https://crash-stats.mozilla.org/api/SuperSearch/; font-src 'self' https://fonts.gstatic.com; img-src 'self' data: blob: https://secure.gravatar.com; object-src 'none'; script-src 'self' 'nonce-EbGEqrSrbTcm8v9WG5Oiky3MutirPjNvOS58HFCbYPS6WaS6' 'unsafe-inline' https://www.google-analytics.com; style-src 'self' 'unsafe-inline'; frame-src https://crash-stop-addon.herokuapp.com; frame-ancestors 'self'; form-action 'self' https://www.google.com/search https://phabricator-dev.allizom.org/
01:45:15 :: etag: 5Uwdj7XHNnBTt1xLsaEiVg
01:45:15 :: referrer-policy: same-origin
01:45:15 :: status: 200
01:45:15 :: strict-transport-security: max-age=31536000; includeSubDomains
01:45:15 :: strict-transport-security: max-age=31536000
01:45:15 :: x-content-type-options: nosniff
01:45:15 :: x-frame-options: SAMEORIGIN
01:45:15 :: x-xss-protection: 1; mode=block
01:45:15 :: via: 1.1 google
01:45:15 :: alt-svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000
01:45:15 :: 
01:45:15 :: {"bugs":[{"alias":null,"last_change_time":"2022-12-21T01:45:14Z","id":1632727,"changes":{}}]}bug has been closed https://bugzilla-dev.allizom.org/show_bug.cgi?id=1632727
[task stderr]
01:45:15 ::   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
01:45:15 ::                                  Dload  Upload   Total   Spent    Left  Speed
01:45:15 :: 
01:45:15 ::   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
01:45:15 :: 100    80    0     0  100    80      0    395 --:--:-- --:--:-- --:--:--   396
01:45:15 :: 100   173    0    93  100    80    194    167 --:--:-- --:--:-- --:--:--   361
01:44:57 :: [repository] - index updated from https://sparrowhub.io/repo/api/v1/index
run stage: run
01:45:01 :: [repository] - installing git-commit-data, version 0.000004
[task run: task.bash - git-commit]
[dump code: task.bash]
[1] cd $(config dir)
[2] 
[3] echo "get commit data from $(pwd) ..."
[4] 
[5] git show -s --format=%h > $cache_root_dir/sha.txt
[6] git show -s --format=%s > $cache_root_dir/comment.txt
[7] 
[task stdout]
01:45:05 :: get commit data from /var/.sparrowdo/env/main/.sparrowdo/source ...
[task run: task.pl6 - git-commit]
[dump code: task.pl6]
[1] say "git commit: ", "{cache_root_dir()}/sha.txt".IO.slurp.chomp;
[2] say "git comment: ", "{cache_root_dir()}/comment.txt".IO.slurp.chomp;
[3] 
[4] 
[5] update_state({
[6]   sha => "{cache_root_dir()}/sha.txt".IO.slurp.chomp,
[7]   comment => "{cache_root_dir()}/comment.txt".IO.slurp.chomp
[8] });
[9] 
[task stdout]
01:45:06 :: git commit: bd0f6ea
01:45:06 :: git comment: remove quotes. close!