[Build Failure] Spec Resync job is failing silently

XMLWordPrintableJSON

    • Type: Build Failure
    • Resolution: Unresolved
    • Priority: Unknown
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Python Drivers
    • None
    • None
    • None
    • None
    • None
    • None

      Name of Failure:

      subprocess.CalledProcessError: Command '['git apply -R --allow-empty --whitespace=fix ./.evergreen/spec-patch/*']' returned non-zero exit status 1.

      Link to task:

      https://spruce.mongodb.com/task/mongo_python_driver_resync_specs_resync_specs_eca38b730b8227c52cd5f0c655f617e969743ee1_25_09_15_12_45_15/logs?execution=0

      Context of when and why the failure occurred:

      It looks like when one or more of the patches no longer apply, the step fails, but the overall build does not. We'll need to make the task fail first, and then address the underlying patch issue, perhaps by adding a comment to the PR if any of the patches do not apply.

      Stack trace:

      [2025/09/15 11:03:26.491] Cloning into '/data/mci/558dc79ad96307077e4ede9d2e28761f/specifications'...
      [2025/09/15 11:03:26.491] rm: cannot remove '/data/mci/558dc79ad96307077e4ede9d2e28761f/src/test/transactions/legacy/errors-client.json': No such file or directory
      [2025/09/15 11:03:26.502] rm: cannot remove '/data/mci/558dc79ad96307077e4ede9d2e28761f/src/test/index_management/index-rawdata.json': No such file or directory
      [2025/09/15 11:03:26.506] error: patch failed: test/discovery_and_monitoring/unified/serverMonitoringMode.json:5
      [2025/09/15 11:03:26.506] error: test/discovery_and_monitoring/unified/serverMonitoringMode.json: patch does not apply
      [2025/09/15 11:03:26.507] Done removing unimplemented tests
      [2025/09/15 11:03:26.507] Beginning to sync specs
      [2025/09/15 11:03:26.507] Done syncing specs
      [2025/09/15 11:03:26.507] Beginning to apply patches
      [2025/09/15 11:03:26.507] Traceback (most recent call last):
      [2025/09/15 11:03:26.507]   File "/data/mci/558dc79ad96307077e4ede9d2e28761f/src/./.evergreen/scripts/resync-all-specs.py", line 123, in <module>
      [2025/09/15 11:03:26.507]     main(args)
      [2025/09/15 11:03:26.507]   File "/data/mci/558dc79ad96307077e4ede9d2e28761f/src/./.evergreen/scripts/resync-all-specs.py", line 110, in main
      [2025/09/15 11:03:26.507]     apply_patches()
      [2025/09/15 11:03:26.507]   File "/data/mci/558dc79ad96307077e4ede9d2e28761f/src/./.evergreen/scripts/resync-all-specs.py", line 36, in apply_patches
      [2025/09/15 11:03:26.507]     subprocess.run(
      [2025/09/15 11:03:26.507]   File "/opt/devtools/lib/python3.11/subprocess.py", line 571, in run
      [2025/09/15 11:03:26.539]     raise CalledProcessError(retcode, process.args,
      [2025/09/15 11:03:26.539] subprocess.CalledProcessError: Command '['git apply -R --allow-empty --whitespace=fix ./.evergreen/spec-patch/*']' returned non-zero exit status 1.
      

            Assignee:
            Iris Ho
            Reporter:
            Steve Silvester
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: