{"thread":{"id":"40218","subject":"git bisect replay produces wrong result","startedAt":"2015-08-30T04:38:54Z","lastAt":"2015-08-31T07:54:47Z","messageCount":2,"participants":["Neil Brown","Christian Couder"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"268916","messageId":"8737z15r1d.fsf@notabene.neil.brown.name","threadId":"40218","inReplyTo":null,"subject":"git bisect replay produces wrong result","fromName":"Neil Brown","fromEmail":"neil@brown.name","sentAt":"2015-08-30T04:38:54Z","receivedAt":"2015-08-30T04:38:54Z","isPatch":false,"sender":{"key":"neil@brown.name","avatar":null},"body":"\nHi,\n the following git-bisect log - applied to a recent linux-kernel tree\n produced different end results when I use \"git bisect replay\"\n and when I just run it as a shell script.\n\n$ git bisect replay /tmp/log \nWe are not bisecting.\nBisecting: a merge base must be tested\n[2decb2682f80759f631c8332f9a2a34a02150a03] Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net\n\n\n$ bash /tmp/log\n....\nBisecting: 2 revisions left to test after this (roughly 1 step)\n[57127645d79d2e83e801f141f7d03f64accf28aa] s390/zcrypt: Introduce new SHA-512 based Pseudo Random Generator.\n\nIs \"git bisect replay\" doing the wrong thing, or am I confused?\n\nI tested on 2.5.0, and the current HEAD.\n\nThanks,\nNeilBrown\n\ngit bisect start\n# bad: [5ebe6afaf0057ac3eaeb98defd5456894b446d22] Linux 4.1-rc2\ngit bisect bad 5ebe6afaf0057ac3eaeb98defd5456894b446d22\n# good: [39a8804455fb23f09157341d3ba7db6d7ae6ee76] Linux 4.0\ngit bisect good 39a8804455fb23f09157341d3ba7db6d7ae6ee76\n# good: [6c373ca89399c5a3f7ef210ad8f63dc3437da345] Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next\ngit bisect good 6c373ca89399c5a3f7ef210ad8f63dc3437da345\n# good: [2c33ce009ca2389dbf0535d0672214d09738e35e] Merge Linus master into drm-next\ngit bisect good 2c33ce009ca2389dbf0535d0672214d09738e35e\n# good: [7d2b6ef19cf0f98cef17aa5185de3631a618710a] Merge tag 'armsoc-drivers' of  git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc\ngit bisect good 7d2b6ef19cf0f98cef17aa5185de3631a618710a\n# good: [836ee4874e201a5907f9658fb2bf3527dd952d30] Merge tag 'arm64-upstream' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux\ngit bisect good 836ee4874e201a5907f9658fb2bf3527dd952d30\n# good: [78d425677217b655ed36c492a070b5002832fc73] Merge tag 'platform-drivers-x86-v4.1-1' of git://git.infradead.org/users/dvhart/linux-platform-drivers-x86\ngit bisect good 78d425677217b655ed36c492a070b5002832fc73\n# good: [39376ccb1968ba9f83e2a880a8bf02ad5dea44e1] Merge git://git.kernel.org/pub/scm/linux/kernel/git/pablo/nf\ngit bisect good 39376ccb1968ba9f83e2a880a8bf02ad5dea44e1\n# bad: [64887b6882de36069c18ef2d9623484d6db7cd3a] Merge branch 'for-linus-4.1' of git://git.kernel.org/pub/scm/linux/kernel/git/mason/linux-btrfs\ngit bisect bad 64887b6882de36069c18ef2d9623484d6db7cd3a\n# bad: [9dbbe3cfc3c208643cf0e81c8f660f43e1b4b2e8] Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm\ngit bisect bad 9dbbe3cfc3c208643cf0e81c8f660f43e1b4b2e8\n# bad: [dcca8de0aa597f14e31a1b38690626c9f6745fd5] Merge tag 'usb-4.1-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb\ngit bisect bad dcca8de0aa597f14e31a1b38690626c9f6745fd5\n# bad: [3d99e3fe13d473ac4578c37f477a59b829530764] Merge branch 'stable' of git://git.kernel.org/pub/scm/linux/kernel/git/cmetcalf/linux-tile\ngit bisect bad 3d99e3fe13d473ac4578c37f477a59b829530764\n# good: [b7d14f3a92223c3f5e52e9f20c74cb96dc130e87] s390/mm: correct transfer of dirty & young bits in __pmd_to_pte\ngit bisect good b7d14f3a92223c3f5e52e9f20c74cb96dc130e87\n"},{"id":"268965","messageId":"CAP8UFD2sAyQp6uUuBBdmGtU1+9heE14pivJs8n8a84UY22yJsQ@mail.gmail.com","threadId":"40218","inReplyTo":"8737z15r1d.fsf@notabene.neil.brown.name","subject":"Re: git bisect replay produces wrong result","fromName":"Christian Couder","fromEmail":"christian.couder@gmail.com","sentAt":"2015-08-31T07:54:47Z","receivedAt":"2015-08-31T07:54:47Z","isPatch":false,"sender":{"key":"christian.couder@gmail.com","avatar":"https://avatars.githubusercontent.com/u/208954?v=4"},"body":"Hi,\n\nOn Sun, Aug 30, 2015 at 6:38 AM, Neil Brown <neil@brown.name> wrote:\n>\n> Hi,\n>  the following git-bisect log - applied to a recent linux-kernel tree\n>  produced different end results when I use \"git bisect replay\"\n>  and when I just run it as a shell script.\n>\n> $ git bisect replay /tmp/log\n> We are not bisecting.\n> Bisecting: a merge base must be tested\n> [2decb2682f80759f631c8332f9a2a34a02150a03] Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net\n>\n>\n> $ bash /tmp/log\n> ....\n> Bisecting: 2 revisions left to test after this (roughly 1 step)\n> [57127645d79d2e83e801f141f7d03f64accf28aa] s390/zcrypt: Introduce new SHA-512 based Pseudo Random Generator.\n>\n> Is \"git bisect replay\" doing the wrong thing, or am I confused?\n\nI think you are right and \"git bisect replay\" is buggy.\n\"git bisect replay\" should display the same thing.\nI will take a look at fixing this.\n\nThanks for the report,\nChristian.\n"}]}