Uploaded image for project: 'PHP Driver: Extension'
  1. PHP Driver: Extension
  2. PHPC-2371

Investigate changes in CDRIVER-3343: Race condition in "fetch source" function in Evergreen build

    • Type: Icon: Task Task
    • Resolution: Works as Designed
    • Priority: Icon: Unknown Unknown
    • None
    • Affects Version/s: None
    • Component/s: None
    • None

      The fetch source function in the C driver's Evergreen configuration retrieves the archive file uploaded by the upload build function. However, in the case of a commit-triggered build, fetch source retrieves an archive file identified by the version latest instead of an actual version (as is the case for patch builds). As a result, if a commit-triggered build is in process and another commit is pushed (thereby triggering the start of a new build), the upload build function of the new commit's build will upload a new archive that becomes latest. Any tasks from previous builds still in progress that call fetch source after the subsequent build uploads its archive will retrieve a source tarball that corresponds to a commit other than the commit for which that task is running.

      To guard against this sort of race condition, the fetch source function should always retrieve the source file based on the commit being built.

            Assignee:
            Unassigned Unassigned
            Reporter:
            esha.bhargava@mongodb.com Esha Bhargava
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: