{
  "_class" : "hudson.matrix.MatrixBuild",
  "actions" : [
    {
      "_class" : "hudson.model.CauseAction",
      "causes" : [
        {
          "_class" : "org.jenkinsci.plugins.workflow.support.steps.build.BuildUpstreamCause",
          "shortDescription" : "Started by upstream project \"gerrit-simtrace2\" build number 122",
          "upstreamBuild" : 122,
          "upstreamProject" : "gerrit-simtrace2",
          "upstreamUrl" : "job/gerrit-simtrace2/"
        }
      ]
    },
    {
      
    },
    {
      "_class" : "hudson.model.ParametersAction",
      "parameters" : [
        {
          "_class" : "hudson.model.StringParameterValue",
          "name" : "COMMENT_TYPE",
          "value" : ""
        },
        {
          "_class" : "hudson.model.StringParameterValue",
          "name" : "DISTRO",
          "value" : ""
        },
        {
          "_class" : "hudson.model.StringParameterValue",
          "name" : "GERRIT_BRANCH",
          "value" : "master"
        },
        {
          "_class" : "hudson.model.StringParameterValue",
          "name" : "GERRIT_CHANGE_NUMBER",
          "value" : "43126"
        },
        {
          "_class" : "hudson.model.StringParameterValue",
          "name" : "GERRIT_HOST",
          "value" : "gerrit.osmocom.org"
        },
        {
          "_class" : "hudson.model.StringParameterValue",
          "name" : "GERRIT_PATCHSET_NUMBER",
          "value" : "1"
        },
        {
          "_class" : "hudson.model.StringParameterValue",
          "name" : "GERRIT_PATCHSET_REVISION",
          "value" : "b3856f9968c162007d32ed677645dc67ce8bde6b"
        },
        {
          "_class" : "hudson.model.StringParameterValue",
          "name" : "GERRIT_PATCHSET_UPLOADER_NAME",
          "value" : "Hoernchen"
        },
        {
          "_class" : "hudson.model.StringParameterValue",
          "name" : "GERRIT_PORT",
          "value" : "29418"
        },
        {
          "_class" : "hudson.model.StringParameterValue",
          "name" : "GERRIT_PROJECT",
          "value" : "simtrace2"
        },
        {
          "_class" : "hudson.model.StringParameterValue",
          "name" : "GERRIT_REFSPEC",
          "value" : "refs/changes/26/43126/1"
        },
        {
          "_class" : "hudson.model.StringParameterValue",
          "name" : "GERRIT_REPO_URL",
          "value" : "ssh://jenkins@gerrit.osmocom.org:29418/simtrace2"
        },
        {
          "_class" : "hudson.model.StringParameterValue",
          "name" : "PIPELINE_BUILD_URL",
          "value" : "https://jenkins.osmocom.org/jenkins/job/gerrit-simtrace2/122/"
        },
        {
          "_class" : "hudson.model.StringParameterValue",
          "name" : "PROJECT_NAME",
          "value" : "simtrace2"
        },
        {
          "_class" : "hudson.model.StringParameterValue",
          "name" : "BRANCH_CI",
          "value" : "master"
        }
      ]
    },
    {
      "_class" : "jenkins.metrics.impl.TimeInQueueAction",
      "blockedDurationMillis" : 0,
      "blockedTimeMillis" : 0,
      "buildableDurationMillis" : 0,
      "buildableTimeMillis" : 0,
      "buildingDurationMillis" : 300494,
      "executingTimeMillis" : 300494,
      "executorUtilization" : 1.0,
      "subTaskCount" : 0,
      "waitingDurationMillis" : 5825,
      "waitingTimeMillis" : 5825
    },
    {
      
    },
    {
      "_class" : "hudson.plugins.git.util.BuildData",
      "buildsByBranchName" : {
        "osmith/0.8.2" : {
          "_class" : "hudson.plugins.git.util.Build",
          "buildNumber" : 55,
          "buildResult" : null,
          "marked" : {
            "SHA1" : "5b5785af7a089b2a4f0c6963fdeebfc48fb22540",
            "branch" : [
              {
                "SHA1" : "5b5785af7a089b2a4f0c6963fdeebfc48fb22540",
                "name" : "osmith/0.8.2"
              }
            ]
          },
          "revision" : {
            "SHA1" : "5b5785af7a089b2a4f0c6963fdeebfc48fb22540",
            "branch" : [
              {
                "SHA1" : "5b5785af7a089b2a4f0c6963fdeebfc48fb22540",
                "name" : "osmith/0.8.2"
              }
            ]
          }
        },
        "master" : {
          "_class" : "hudson.plugins.git.util.Build",
          "buildNumber" : 122,
          "buildResult" : null,
          "marked" : {
            "SHA1" : "b3856f9968c162007d32ed677645dc67ce8bde6b",
            "branch" : [
              {
                "SHA1" : "b3856f9968c162007d32ed677645dc67ce8bde6b",
                "name" : "master"
              }
            ]
          },
          "revision" : {
            "SHA1" : "b3856f9968c162007d32ed677645dc67ce8bde6b",
            "branch" : [
              {
                "SHA1" : "b3856f9968c162007d32ed677645dc67ce8bde6b",
                "name" : "master"
              }
            ]
          }
        }
      },
      "lastBuiltRevision" : {
        "SHA1" : "b3856f9968c162007d32ed677645dc67ce8bde6b",
        "branch" : [
          {
            "SHA1" : "b3856f9968c162007d32ed677645dc67ce8bde6b",
            "name" : "master"
          }
        ]
      },
      "remoteUrls" : [
        "ssh://jenkins@gerrit.osmocom.org:29418/simtrace2"
      ],
      "scmName" : ""
    },
    {
      
    },
    {
      
    },
    {
      
    },
    {
      "_class" : "org.jenkinsci.plugins.displayurlapi.actions.RunDisplayAction"
    }
  ],
  "artifacts" : [
    
  ],
  "building" : false,
  "description" : null,
  "displayName" : "#122",
  "duration" : 300494,
  "estimatedDuration" : 327764,
  "executor" : null,
  "fullDisplayName" : "gerrit-simtrace2-build #122",
  "id" : "122",
  "inProgress" : false,
  "keepLog" : false,
  "number" : 122,
  "queueId" : 181020,
  "result" : "SUCCESS",
  "timestamp" : 1785265451389,
  "url" : "https://jenkins.osmocom.org/jenkins/job/gerrit-simtrace2-build/122/",
  "builtOn" : "",
  "changeSet" : {
    "_class" : "hudson.plugins.git.GitChangeSetList",
    "items" : [
      {
        "_class" : "hudson.plugins.git.GitChangeSet",
        "affectedPaths" : [
          "firmware/test/card_emu_tests.c",
          "firmware/libcommon/source/card_emu.c"
        ],
        "commitId" : "b3856f9968c162007d32ed677645dc67ce8bde6b",
        "timestamp" : 1785257901000,
        "author" : {
          "absoluteUrl" : "https://jenkins.osmocom.org/jenkins/user/ewild",
          "fullName" : "ewild"
        },
        "authorEmail" : "ewild@sysmocom.de",
        "comment" : "firmware: card_emu: use Di in the waiting time\u000a\u000aISO 7816-3 section 10.2 defines WT = WI x 960 x Fi/f seconds,\u000astore as etu, etu = Fi / (D x f) seconds, so the Fi cancels,\u000abut the D does not:\u000a\u000a\u0009WT [etu] = WI x 960 x D\u000a\u000acemu dropped both (?!) -> WI x 960.\u000aThe old comment explains why Fi can be dropped, which is right, but\u000awhat about Di ?!\u000asniffer gets it right (wt_wi * 960UL * wt_d), so the two state machines\u000adisagreed here again, by up to a factor of 64???!!?!!?\u000a\u000aThis was fixed in osmo-ccid-firmware in 066489d in 2020 but not ported\u000ato st2.\u000a\u000aAdditionally the waiting time was only recalculated at the end of the ATR,\u000awhere D is still 1 by definition, so a PPS increasing D reprogrammed the\u000abaud rate but left the waiting time untouched??!\u000a\u000aetu duration shrinks with D by the same factor, wall clock WT is\u000aindependent of D, which is the whole point.\u000aThe old code decreased the waiting time by a factor of D:\u000aafter a PPS to D=8 the card emitted its NULL procedure byte at ~0.09s\u000ainstead of ~0.71s with a reader deadline of ~1.43s,\u000aand the inactivity timeout fires 8x too early, which probably led to\u000aunexplained wtime_exp errors.\u000a\u000aUpdate wt when WI becomes known (end of ATR) and\u000awhere D changes (after the PPS response) + tests.\u000a\u000aChange-Id: I4263176d6073029d01f9ff5b11a6311617956af6\u000a",
        "date" : "2026-07-28 18:58:21 +0200",
        "id" : "b3856f9968c162007d32ed677645dc67ce8bde6b",
        "msg" : "firmware: card_emu: use Di in the waiting time",
        "paths" : [
          {
            "editType" : "edit",
            "file" : "firmware/libcommon/source/card_emu.c"
          },
          {
            "editType" : "edit",
            "file" : "firmware/test/card_emu_tests.c"
          }
        ]
      }
    ],
    "kind" : "git"
  },
  "culprits" : [
    {
      "absoluteUrl" : "https://jenkins.osmocom.org/jenkins/user/ewild",
      "fullName" : "ewild"
    }
  ],
  "runs" : [
    {
      "number" : 122,
      "url" : "https://jenkins.osmocom.org/jenkins/job/gerrit-simtrace2-build/a1=default,a2=default,a3=default,a4=default,label=osmocom-gerrit/122/"
    }
  ]
}