[Winkerberos] Release build is failing due to misconfigured CodeQL

XMLWordPrintableJSON

    • Type: Build Failure
    • Resolution: Done
    • Priority: Unknown
    • None
    • Affects Version/s: None
    • Component/s: winkerberos
    • 🔵 Done
    • Python 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

      Name of Failure:

      CodeQL detected code written in Python but could not process any of it

      Link to task:

      https://github.com/mongodb/winkerberos/actions/runs/18813633466/job/53678806056

      Context of when and why the failure occurred:

      GitHub appears to have added a check to see whether any files were scanned for a given scan type. Since Winkerberos is a pure C extension, there is no python code to scan. We should remove the check for python code.

      Stack trace:

       C:\hostedtoolcache\windows\CodeQL\2.23.3\x64\codeql\codeql.exe database finalize --finalize-dataset --threads=4 --ram=14437 D:\a\_temp\codeql_databases\python
        CodeQL detected code written in Python but could not process any of it. Check the workflow run logs (see https://docs.github.com/en/actions/monitoring-and-troubleshooting-workflows/using-workflow-run-logs). For more information, review our troubleshooting guide at https://gh.io/troubleshooting-code-scanning/no-source-code-seen-during-build .
        Error: Encountered a fatal error while running "C:\hostedtoolcache\windows\CodeQL\2.23.3\x64\codeql\codeql.exe database finalize --finalize-dataset --threads=4 --ram=14437 D:\a\_temp\codeql_databases\python". Exit code was 32 and last log line was: CodeQL detected code written in Python but could not process any of it. Check the workflow run logs (see https://docs.github.com/en/actions/monitoring-and-troubleshooting-workflows/using-workflow-run-logs). For more information, review our troubleshooting guide at https://gh.io/troubleshooting-code-scanning/no-source-code-seen-during-build . See the logs for more details.
      

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

              Created:
              Updated:
              Resolved: