run-tests in Evergreen report success despite build error

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Minor - P4
    • 5.7.0
    • Affects Version/s: None
    • Component/s: Evergreen
    • None
    • 🔵 Done
    • Fully Compatible
    • Java Drivers
    • Not Needed
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?
    • None
    • None
    • None
    • None
    • None
    • None

      Evergreen reports tasks as succeeded without collecting any tests results (example https://spruce.mongodb.com/version/68e66c6d88fa050007a6c351/tasks?sorts=STATUS%3AASC%3BBASE_STATUS%3ADESC report test-sync-task passed without any results inside).


      In this particular use case we were using

      Unrecognized option: --add-opens=java.base/java.util=ALL-UNNAMED
      

      which fails on older JDK versions (needs to be used behind a flag like in https://github.com/mongodb/mongo-java-driver/blob/main/buildSrc/src/main/kotlin/conventions/test-artifacts.gradle.kts#L38-L40 )

      The build fails https://parsley-beta.corp.mongodb.com/evergreen/mongo_java_driver_tests_jdk8_unsecure__version~4.2_os~linux_topology~replicaset_auth~noauth_ssl~nossl_jdk~jdk8_test_sync_task_patch_4eac65c8c778b90538bf56e085b6c66aeb869b6a_68e66c6d88fa050007a6c351_25_10_08_13_51_43/0/task?bookmarks=0,19980&selectedLineRange=L6224&shareLine=19827 but the task is reported successful.

            Assignee:
            Ross Lawley
            Reporter:
            Nabil Hachicha
            Nabil Hachicha
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: