ExportXMLWordPrintableJSON

    • Type: Task
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Index Builds
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      A single transient curl failure while downloading a shard's test.outputs zip from EngFlow fails the target's result task even when every test passed.

      Observed on a commit-queue run of #67642: four result tasks (sharding_jscore_passthrough, server_index_builds:core, server_programmability:core, server_storage_engine_integration:no_passthrough) were marked failed while the parent resmoke_tests task reported 32/32 passing and Trunk showed 276/276. The result fetch log shows:

      Downloading: shard_1_test.outputs__outputs.zip
      curl: (35) Send failure: Connection reset by peer
      shard_1: NO REPORT (no tests may have been run)
      Error: One or more shards had TIMEOUT or NO_REPORT status.
      

      With the zip missing there is no report for the shard, so it is recorded as NO_REPORT, the script exits 1, and target_status() in virtual_result_tasks.py returns failed. I confirmed the same signature on server_programmability:core; I did not pull the logs for the other two.

      Change

      Route each blob download through a new download_with_retry: up to 5 attempts, exponential backoff (2s, 4s, 8s, 16s), -fail so an HTTP error is not saved as the file, -connect-timeout 10, and the partial file removed between attempts. If all attempts fail, behavior is unchanged from today (shard ends up NO_REPORT).

      It is a bash loop rather than curl -retry because retry does not cover connection resets, and -retry-all-errors needs curl >= 7.71 (RHEL 8 ships 7.61, where an unknown flag would break the fetch entirely).

      Testing

      • bash -n and shfmt -i 4 -d are clean.
      • Ran download_with_retry against a stub curl: fails twice then succeeds (rc=0, 3 attempts, file intact); always fails (rc=1, 5 attempts, partial file removed).
      • Not yet run in an Evergreen patch. The failure is a rare network blip, so a green patch would not prove the retry path; the stub test covers it.

            Assignee:
            Zack Winter
            Reporter:
            Zack Winter
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: