{
  "_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" : "com.cloudbees.jenkins.GitHubPushCause",
          "shortDescription" : "Started by GitHub push by ti-chi-bot[bot]"
        }
      ]
    },
    {
      
    },
    {
      "_class" : "jenkins.metrics.impl.TimeInQueueAction",
      "blockedDurationMillis" : 0,
      "blockedTimeMillis" : 0,
      "buildableDurationMillis" : 15916,
      "buildableTimeMillis" : 15916,
      "buildingDurationMillis" : 44016,
      "executingTimeMillis" : 44016,
      "executorUtilization" : 1.0,
      "subTaskCount" : 0,
      "waitingDurationMillis" : 6420,
      "waitingTimeMillis" : 6420
    },
    {
      "_class" : "hudson.plugins.git.util.BuildData",
      "buildsByBranchName" : {
        "origin/main" : {
          "_class" : "hudson.plugins.git.util.Build",
          "buildNumber" : 1663,
          "buildResult" : null,
          "marked" : {
            "SHA1" : "83691152ea8fa148a7c0a037fdb2d89e217edbc2",
            "branch" : [
              {
                "SHA1" : "83691152ea8fa148a7c0a037fdb2d89e217edbc2",
                "name" : "origin/main"
              }
            ]
          },
          "revision" : {
            "SHA1" : "83691152ea8fa148a7c0a037fdb2d89e217edbc2",
            "branch" : [
              {
                "SHA1" : "83691152ea8fa148a7c0a037fdb2d89e217edbc2",
                "name" : "origin/main"
              }
            ]
          }
        }
      },
      "lastBuiltRevision" : {
        "SHA1" : "83691152ea8fa148a7c0a037fdb2d89e217edbc2",
        "branch" : [
          {
            "SHA1" : "83691152ea8fa148a7c0a037fdb2d89e217edbc2",
            "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" : "#1663",
  "duration" : 44016,
  "estimatedDuration" : 47130,
  "executor" : null,
  "fullDisplayName" : "seed #1663",
  "id" : "1663",
  "inProgress" : false,
  "keepLog" : false,
  "number" : 1663,
  "queueId" : 3676838,
  "result" : "SUCCESS",
  "timestamp" : 1777543476054,
  "url" : "https://do.pingcap.net/jenkins/job/seed/1663/",
  "builtOn" : "default-41jzv",
  "changeSet" : {
    "_class" : "hudson.plugins.git.GitChangeSetList",
    "items" : [
      {
        "_class" : "hudson.plugins.git.GitChangeSet",
        "affectedPaths" : [
          "tools/reporters/ci/flaky-tests/core/GithubIssueManager.ts",
          "tools/reporters/ci/flaky-tests/render/HtmlRenderer.ts",
          "tools/reporters/ci/flaky-tests/deno.lock",
          "tools/reporters/ci/flaky-tests/core/GithubIssueManager.test.ts",
          "tools/reporters/ci/flaky-tests/deno.json"
        ],
        "commitId" : "83691152ea8fa148a7c0a037fdb2d89e217edbc2",
        "timestamp" : 1777543449000,
        "author" : {
          "absoluteUrl" : "https://do.pingcap.net/jenkins/user/noreply",
          "fullName" : "noreply"
        },
        "authorEmail" : "noreply@github.com",
        "comment" : "refactor(flaky-tests): simplify GitHub types and API usage, remove custom wrappers (#4567)\u000a\u000a## Summary\u000a\u000aSimplify GitHub-related code in `flaky-tests`: remove custom wrapper\u000alayer and use Octokit types/APIs directly.\u000a\u000a### Changes\u000a\u000a1. **Remove custom `GitHubClient` wrapper class** (~120 lines)  \u000a`GitHubClient` wrapped 5 Octokit API methods (`searchIssues`,\u000a`createIssue`, `reopenIssue`, `addLabels`, `addComment`), each manually\u000amapping response fields to a custom `GitHubIssueApi` interface. Now\u000acalls Octokit's native REST APIs directly.\u000a\u000a2. **Remove `GitHubIssueApi` and `OctokitLike` interfaces**  \u000aNo more custom interfaces — use `Octokit` type directly from\u000a`@octokit/rest`.\u000a\u000a3. **Flatten helper functions**  \u000aExtract Octokit calls into module-level standalone functions\u000a(`searchIssues`, `createIssue`, etc.) instead of class instance methods.\u000a\u000a4. **Test at Octokit mock level**  \u000aTests no longer mock `GitHubClient`. Instead, inject a mock Octokit\u000ainstance via the `octokit` constructor option.\u000a\u000a5. **Fix GitHub API deprecation warning**  \u000aAdd `X-GitHub-Api-Version: 2026-03-10` header to use the latest API\u000aversion.\u000a\u000a### Files Changed\u000a\u000a- `tools/reporters/ci/flaky-tests/core/GithubIssueManager.ts` — major\u000asimplification\u000a- `tools/reporters/ci/flaky-tests/core/GithubIssueManager.test.ts` —\u000aupdated mocking strategy\u000a- `tools/reporters/ci/flaky-tests/deno.json` / `deno.lock` — dependency\u000aupdates\u000a- `tools/reporters/ci/flaky-tests/render/HtmlRenderer.ts` — label text\u000aoptimization\u000a\u000a---------\u000a\u000aCo-authored-by: Ti Chi Robot <ti-community-prow-bot@tidb.io>\u000aCo-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>\u000a",
        "date" : "2026-04-30 10:04:09 +0000",
        "id" : "83691152ea8fa148a7c0a037fdb2d89e217edbc2",
        "msg" : "refactor(flaky-tests): simplify GitHub types and API usage, remove",
        "paths" : [
          {
            "editType" : "edit",
            "file" : "tools/reporters/ci/flaky-tests/core/GithubIssueManager.ts"
          },
          {
            "editType" : "edit",
            "file" : "tools/reporters/ci/flaky-tests/render/HtmlRenderer.ts"
          },
          {
            "editType" : "edit",
            "file" : "tools/reporters/ci/flaky-tests/deno.lock"
          },
          {
            "editType" : "edit",
            "file" : "tools/reporters/ci/flaky-tests/core/GithubIssueManager.test.ts"
          },
          {
            "editType" : "edit",
            "file" : "tools/reporters/ci/flaky-tests/deno.json"
          }
        ]
      }
    ],
    "kind" : "git"
  },
  "culprits" : [
    {
      "absoluteUrl" : "https://do.pingcap.net/jenkins/user/noreply",
      "fullName" : "noreply"
    }
  ]
}