)]}'
{
  "commit": "72ac579351c886002890ee6f9ea3468277ba98ab",
  "tree": "be0ba6cf413c9c9791c1e3287da01d184da9eb11",
  "parents": [
    "050558e06029249ed1ac3493c026d0b9c8cdbcae"
  ],
  "author": {
    "name": "David Ostrovsky",
    "email": "david@ostrovsky.org",
    "time": "Thu Aug 27 15:22:12 2026 +0200"
  },
  "committer": {
    "name": "David Ostrovsky",
    "email": "david@ostrovsky.org",
    "time": "Thu Aug 27 15:31:24 2026 +0200"
  },
  "message": "ReplicationIT: don\u0027t wait a full retry window to prove non-replication\n\nReplicationIT takes ~343s (5m40s) while the rest of the build finishes\nin seconds. Five of its 26 cases each burn ~62s; the rest run in \u003c\u003d2s.\n\nAll five bottom out on the replication retry quantum: a failed push is\nrescheduled in TimeUnit.MINUTES (Destination#reschedule), so the\nsmallest non-zero retry is one minute and the tests set\nreplicationRetry\u003d1. The three negative tests --\nshouldNotDrainTheQueueWhenReloading,\nshouldNotReplicateToNonMatchingRemote and\nshouldNotReplicateProjectListedInProjectsAndExcludeProjects -- assert a\nref is never replicated by waiting for it and expecting the wait to\nexpire. They reuse TEST_TIMEOUT, which is sized to span a retry cycle\n((delay + retry*60)+1 \u003d 62s), so each burns the full minute only to\nprove a negative.\n\nGive those waits their own TEST_NOT_REPLICATED_TIMEOUT (replication\ndelay + push time + a few seconds cushion, ~7s), applied via a private\nwaitUntil(Supplier, Duration) overload in ReplicationIT.\n\nThis does not weaken the tests: waitUntil still throws on timeout, so\nassertThrows still verifies non-replication -- only the wait shortens.\nReplication is structurally suppressed in these cases (destination down,\nproject excluded, remote non-matching), so the ref can never appear;\nwere a regression to leak a push it would replicate within the ~1s\ndelay, well inside the window, and the assertion would then fail. The\nshared TEST_REPLICATION_RETRY_MINUTES is left untouched so tests that\nrely on the real one-minute retry (e.g. ReplicationStorageIT) keep their\ntiming.\n\nThe two remaining ~60s cases (new-project replication) genuinely wait a\nretry: the first push fails as REPOSITORY_MISSING while the replica repo\nis still being created, and that reason is retried on the minutes-based\ndelay. That is a separate, arguably production-side latency issue and is\nhandled in a follow-up.\n\nNet, the three negatives drop from ~62s to ~7s each while the two\nnew-project cases are untouched here, so ReplicationIT drops from ~343s\nto ~173s (~2x60s new-project waits + ~24 fast tests), all 26 green.\n\nChange-Id: I2d561950e51761a1d1b0fe09dc50763b3e5421af\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "d54cb7ce4584c6cafe25cb11a2c71011e5a81159",
      "old_mode": 33188,
      "old_path": "src/test/java/com/googlesource/gerrit/plugins/replication/ReplicationIT.java",
      "new_id": "4a3bb9b470728ab88f84a7e00827b4c7cbc81ef9",
      "new_mode": 33188,
      "new_path": "src/test/java/com/googlesource/gerrit/plugins/replication/ReplicationIT.java"
    }
  ]
}
