travis failure on rc3: "src/crypto/ctaes is not a subtree" #12388

issue laanwj opened this issue on February 8, 2018
  1. laanwj commented at 12:47 PM on February 8, 2018: member

    Travis on the 0.16 branch is failing on the subtree check.

    0.04s$ if [ "$CHECK_DOC" = 1 ]; then contrib/devtools/git-subtree-check.sh src/crypto/ctaes; fi
    ERROR: src/crypto/ctaes is not a subtree
    The command "if [ "$CHECK_DOC" = 1 ]; then contrib/devtools/git-subtree-check.sh src/crypto/ctaes; fi" failed and exited with 2 during .
    

    The reason for this is that it makes a shallow clone, and the last change to that subtree is deeper than the oldest commit fetched.

    The obvious solution would be to clone deeper, but that would be kicking the can down the road and make things slower. I'd say to be robust the check needs to generate a warning in this case but continue. If nothing changed to it in the last 50 commits, then the subtree can be assumed to be fine, otherwise we would have intervened by then.

    Ping @MarcoFalke @sipa

  2. laanwj added the label Tests on Feb 8, 2018
  3. MarcoFalke commented at 3:15 PM on February 8, 2018: member

    The compressed size of the git objects for master at --depth 50 and --depth 99999 is 60 MiB and 80 MiB, respectively.

    On the rc3 tag it is 30 MiB, but still with a download rate of 19.80 MiB/s, this should have limited effect on the total run time. https://travis-ci.org/bitcoin/bitcoin/jobs/338906244#L351

  4. laanwj referenced this in commit e2431d144a on Feb 15, 2018
  5. laanwj commented at 3:02 PM on February 15, 2018: member

    I don't like that solution on the longer term, but it's ok for now on the 0.16 branch.

  6. laanwj commented at 3:45 PM on February 15, 2018: member

    Grr apparently we already have an git fetch --unshallow step, removed it in 5e40e64face29169ef355856dc0db46a98061046, hopefully the tests there are fixed now...

  7. MarcoFalke commented at 4:40 PM on March 13, 2018: member

    We use a full clone now on all platforms (0f58d7f3d62f012f2584f5e781fc73de4763dd9e) due to

    • git subtree check
    • verify commits

    and to simplify the travis yaml

    Hope that is ok.

  8. MarcoFalke closed this on Mar 13, 2018

  9. MarcoFalke referenced this in commit 0f58d7f3d6 on Mar 13, 2018
  10. HashUnlimited referenced this in commit 33d167d33c on Mar 16, 2018
  11. ccebrecos referenced this in commit d04b294c87 on Sep 14, 2018
  12. MarcoFalke locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-13 15:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me