{"thread":{"id":"52847","subject":"t3513-revert-submodule.sh (3513.8) fails sometimes","startedAt":"2020-02-20T09:50:58Z","lastAt":"2020-02-20T09:50:58Z","messageCount":1,"participants":["Alex Riesen"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"392162","messageId":"20200220095053.GA8865@pflmari","threadId":"52847","inReplyTo":null,"subject":"t3513-revert-submodule.sh (3513.8) fails sometimes","fromName":"Alex Riesen","fromEmail":"alexander.riesen@cetitec.com","sentAt":"2020-02-20T09:50:53Z","receivedAt":"2020-02-20T09:50:58Z","isPatch":false,"sender":{"key":"alexander.riesen@cetitec.com","avatar":"https://avatars.githubusercontent.com/u/24452597?v=4"},"body":"Hi,\n\nthe test fails for some reason, relatively rarely (20 per 100\ninvocations). I could not find the why, so I'm just posting the logs\nbelow with the full log attached.\n\nThe test has been failing here for at least a year (the logs below done with\nv2.25.1).\n\nI have a config.mak:\n\n    USE_LIBPCRE2=YesPlease\n    OPENSSL_SHA256=YesPlease\n\n    CFLAGS += -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1\n    CFLAGS += -fstack-protector-strong\n    CFLAGS += -fpie\n    LDFLAGS += -z relro -z now\n    LDFLAGS += -pie\n\nThere local modifications, but none in the core core (small customizations in gitk).\n\nThe file system where the test is run on is an ext4 volume (an old, but still\nusable ssd). The kernel is an v5.5.3. Debian without systemd. Not a container.\nNot a VM.\n\nexpecting success of 3513.8 'git_revert: replace submodule containing a .git directory with a directory must fail': \n\t\tprolog &&\n\t\treset_work_tree_to add_sub1 &&\n\t\t(\n\t\t\tcd submodule_update &&\n\t\t\tgit branch -t replace_sub1_with_directory origin/replace_sub1_with_directory &&\n\t\t\treplace_gitfile_with_git_dir sub1 &&\n\t\t\ttest_must_fail $command replace_sub1_with_directory &&\n\t\t\ttest_superproject_content origin/add_sub1 &&\n\t\t\ttest_git_directory_is_unchanged sub1 &&\n\t\t\ttest_submodule_content sub1 origin/add_sub1\n\t\t)\n\t\nCloning into 'submodule_update'...\ndone.\nBranch 'add_sub1' set up to track remote branch 'add_sub1' from 'origin'.\nSwitched to a new branch 'add_sub1'\nSubmodule 'sub1' (/home/ari/compile/git/t/trash directory.t3513-revert-submodule/submodule_update_sub1) registered for path 'sub1'\nCloning into '/home/ari/compile/git/t/trash directory.t3513-revert-submodule/submodule_update/sub1'...\ndone.\nSubmodule path 'sub1': checked out '4a3c63c700bd465527a865db70efb925e380182c'\nBranch 'replace_sub1_with_directory' set up to track remote branch 'replace_sub1_with_directory' from 'origin'.\nerror: The following untracked working tree files would be overwritten by checkout:\n\tsub1/file1\n\tsub1/file2\nPlease move or remove them before you switch branches.\nAborting\n'actual' is not empty, it contains:\n:100644 100644 587be6b4c3f93f93c489c0111bba5596147a26cb 0000000000000000000000000000000000000000 M\tfile1\n:100644 100644 975fbec8256d3e8a3797e7a3611380f27c49f4ac 0000000000000000000000000000000000000000 M\tfile2\nnot ok 8 - git_revert: replace submodule containing a .git directory with a directory must fail\n#\t\n#\t\t\tprolog &&\n#\t\t\treset_work_tree_to add_sub1 &&\n#\t\t\t(\n#\t\t\t\tcd submodule_update &&\n#\t\t\t\tgit branch -t replace_sub1_with_directory origin/replace_sub1_with_directory &&\n#\t\t\t\treplace_gitfile_with_git_dir sub1 &&\n#\t\t\t\ttest_must_fail $command replace_sub1_with_directory &&\n#\t\t\t\ttest_superproject_content origin/add_sub1 &&\n#\t\t\t\ttest_git_directory_is_unchanged sub1 &&\n#\t\t\t\ttest_submodule_content sub1 origin/add_sub1\n#\t\t\t)\n#\t\t\n\nRegards,\nAlex\n"}]}