Flaky: mongodb-aws tests fail to set up with `ValueError: Please provide a profile`

XMLWordPrintableJSON

    • Type: Build Failure
    • Resolution: Done
    • Priority: Unknown
    • None
    • Affects Version/s: None
    • Component/s: None
    • Hide

      Create a copy of the Kickoff Template with the issue key (NODE-XXX) in the filename and share a link to the new doc via this field.

      Show
      Create a copy of the Kickoff Template with the issue key (NODE-XXX) in the filename and share a link to the new doc via this field.
    • 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

      Since adopting secrets manager, AWS auth tests have been flaky.  Some runs fail to fetch credentials with the error `ValueError: Please provide a profile`:

       

      [2025/02/10 17:57:32.762] botocore.exceptions.NoCredentialsError: Unable to locate credentials[2025/02/10 17:57:32.762] The above exception was the direct cause of the following exception:[2025/02/10 17:57:32.762] Traceback (most recent call last):[2025/02/10 17:57:32.762]   File "/data/mci/3f6551ff26c6eb0fbe393ee961125dd1/drivers-tools/.evergreen/secrets_handling/setup_secrets.py", line 115, in <module>[2025/02/10 17:57:32.762]     main()[2025/02/10 17:57:32.762]     ~~~~^^[2025/02/10 17:57:32.762]   File "/data/mci/3f6551ff26c6eb0fbe393ee961125dd1/drivers-tools/.evergreen/secrets_handling/setup_secrets.py", line 111, in main[2025/02/10 17:57:32.762]     write_secrets(args.vaults, args.region, args.profile)[2025/02/10 17:57:32.762]     ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^[2025/02/10 17:57:32.762]   File "/data/mci/3f6551ff26c6eb0fbe393ee961125dd1/drivers-tools/.evergreen/secrets_handling/setup_secrets.py", line 66, in write_secrets[2025/02/10 17:57:32.762]     secrets = get_secrets(vaults, region, profile)[2025/02/10 17:57:32.762]   File "/data/mci/3f6551ff26c6eb0fbe393ee961125dd1/drivers-tools/.evergreen/secrets_handling/setup_secrets.py", line 33, in get_secrets[2025/02/10 17:57:32.762]     raise ValueError([2025/02/10 17:57:32.762]         "Please provide a profile (typically using AWS_PROFILE)"[2025/02/10 17:57:32.763]     ) from e[2025/02/10 17:57:32.763] ValueError: Please provide a profile (typically using AWS_PROFILE) 

              Assignee:
              Durran Jordan
              Reporter:
              Bailey Pearson
              Bailey Pearson
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: