{
  "_class" : "hudson.model.FreeStyleBuild",
  "actions" : [
    {
      "_class" : "hudson.model.CauseAction",
      "causes" : [
        {
          "_class" : "com.cloudbees.jenkins.GitHubPushCause",
          "shortDescription" : "Started by GitHub push by ti-chi-bot[bot]"
        }
      ]
    },
    {
      
    },
    {
      "_class" : "jenkins.metrics.impl.TimeInQueueAction",
      "blockedDurationMillis" : 0,
      "blockedTimeMillis" : 0,
      "buildableDurationMillis" : 22605,
      "buildableTimeMillis" : 22605,
      "buildingDurationMillis" : 102964,
      "executingTimeMillis" : 102964,
      "executorUtilization" : 1.0,
      "subTaskCount" : 0,
      "waitingDurationMillis" : 9353,
      "waitingTimeMillis" : 9353
    },
    {
      "_class" : "hudson.plugins.git.util.BuildData",
      "buildsByBranchName" : {
        "origin/main" : {
          "_class" : "hudson.plugins.git.util.Build",
          "buildNumber" : 1762,
          "buildResult" : null,
          "marked" : {
            "SHA1" : "261bc4f777143c96b2b4140a164530f8f83cd0ac",
            "branch" : [
              {
                "SHA1" : "261bc4f777143c96b2b4140a164530f8f83cd0ac",
                "name" : "origin/main"
              }
            ]
          },
          "revision" : {
            "SHA1" : "261bc4f777143c96b2b4140a164530f8f83cd0ac",
            "branch" : [
              {
                "SHA1" : "261bc4f777143c96b2b4140a164530f8f83cd0ac",
                "name" : "origin/main"
              }
            ]
          }
        }
      },
      "lastBuiltRevision" : {
        "SHA1" : "261bc4f777143c96b2b4140a164530f8f83cd0ac",
        "branch" : [
          {
            "SHA1" : "261bc4f777143c96b2b4140a164530f8f83cd0ac",
            "name" : "origin/main"
          }
        ]
      },
      "remoteUrls" : [
        "https://github.com/PingCAP-QE/ci.git"
      ],
      "scmName" : ""
    },
    {
      
    },
    {
      
    },
    {
      
    },
    {
      
    },
    {
      
    },
    {
      
    },
    {
      "_class" : "org.jenkinsci.plugins.displayurlapi.actions.RunDisplayAction"
    }
  ],
  "artifacts" : [
    
  ],
  "building" : false,
  "description" : null,
  "displayName" : "#1762",
  "duration" : 102964,
  "estimatedDuration" : 109407,
  "executor" : null,
  "fullDisplayName" : "seed #1762",
  "id" : "1762",
  "inProgress" : false,
  "keepLog" : false,
  "number" : 1762,
  "queueId" : 3693690,
  "result" : "SUCCESS",
  "timestamp" : 1781189855111,
  "url" : "https://do.pingcap.net/jenkins/job/seed/1762/",
  "builtOn" : "default-jl50r",
  "changeSet" : {
    "_class" : "hudson.plugins.git.GitChangeSetList",
    "items" : [
      {
        "_class" : "hudson.plugins.git.GitChangeSet",
        "affectedPaths" : [
          "tekton/v1/tasks/delivery/pingcap-notify-to-deliver-images-to-cloud-tidbx.yaml"
        ],
        "commitId" : "261bc4f777143c96b2b4140a164530f8f83cd0ac",
        "timestamp" : 1781189817000,
        "author" : {
          "absoluteUrl" : "https://do.pingcap.net/jenkins/user/noreply",
          "fullName" : "noreply"
        },
        "authorEmail" : "noreply@github.com",
        "comment" : "refactor(tekton/v1/tasks): refactor tidbx delivery task to use rotating queue issues (#4677)\u000a\u000a## Problem\u000a\u000aThe `pingcap-notify-to-deliver-images-to-cloud-tidbx` task posts `/fid`\u000acommands as comments on a **fixed GitHub issue**. GitHub limits issues\u000ato 2500 comments, and once reached, the API rejects new comments.\u000aAdditionally, the old script used `set -e` without `pipefail`, so when\u000a`gh issue comment | tee ...` failed, the pipeline's exit code came from\u000a`tee` (always 0), silently swallowing the error.\u000a\u000a## Solution\u000a\u000aReplace the fixed-issue approach with an **auto-rotating queue issue**\u000amechanism:\u000a\u000a- Each stage (`dev`/`prod`) gets a queue issue tracked by a\u000a**hierarchical label** `delivery-queue-tidbx/<stage>`.\u000a- On each run, the task looks up the current open queue issue for that\u000alabel.\u000a- If the issue has **≥ 2000 comments**, it closes the old issue and\u000acreates a new one (rotation).\u000a- The `/fid` command is posted as a comment on the current (new or\u000aexisting) queue issue.\u000a- Added `gh label create` as a safety net so the label is auto-created\u000aon first use if it doesn't exist in the repo.\u000a\u000a### Changes\u000a\u000a| Before | After |\u000a|---|---|\u000a| Fixed issue URL from workspace secret (`<stage>_github_issue_url`) |\u000aAuto-discovered via label `delivery-queue-tidbx/<stage>` |\u000a| No rotation — comments accumulate until 2500 API limit | Auto-rotation\u000aat 2000 comments |\u000a| `set -e` (pipe exits 0 when `tee` succeeds) | `set -eo pipefail` (fail\u000aimmediately on pipe error) |\u000a| Workspace expects `<stage>_github_issue_url` | Workspace expects\u000a`<stage>_github_repo` (e.g. `pingcap/tidb`) |\u000a\u000a## Migration\u000a\u000aThe cluster secret `image-delivery-notify-config-tidbx` needs updating:\u000a\u000a```\u000a- dev_github_issue_url=https://github.com/.../issues/N\u000a+ dev_github_repo=pingcap/tidb\u000a- prod_github_issue_url=https://github.com/.../issues/M\u000a+ prod_github_repo=pingcap/tidb\u000a```\u000a",
        "date" : "2026-06-11 14:56:57 +0000",
        "id" : "261bc4f777143c96b2b4140a164530f8f83cd0ac",
        "msg" : "refactor(tekton/v1/tasks): refactor tidbx delivery task to use rotating",
        "paths" : [
          {
            "editType" : "edit",
            "file" : "tekton/v1/tasks/delivery/pingcap-notify-to-deliver-images-to-cloud-tidbx.yaml"
          }
        ]
      }
    ],
    "kind" : "git"
  },
  "culprits" : [
    {
      "absoluteUrl" : "https://do.pingcap.net/jenkins/user/noreply",
      "fullName" : "noreply"
    }
  ]
}