Skip to content

Add CodeQL workflow to fix Analyze (java-kotlin) CI failure#720

Open
CatherineGasnier wants to merge 1 commit intofacebookincubator:mainfrom
CatherineGasnier:export-D96743566
Open

Add CodeQL workflow to fix Analyze (java-kotlin) CI failure#720
CatherineGasnier wants to merge 1 commit intofacebookincubator:mainfrom
CatherineGasnier:export-D96743566

Conversation

@CatherineGasnier
Copy link
Copy Markdown

Summary:
The "Analyze (java-kotlin)" GitHub Actions check was failing because GitHub's organization-level CodeQL default setup uses autobuild for Java/Kotlin analysis. The Glean repo's Java/Kotlin code (indexer code, test cases) uses Buck as its build system and cannot be compiled by CodeQL's autobuild, causing the analysis to consistently fail.

The thrift/Haskell changes in D94378719 did not cause this failure - it is a pre-existing issue with the CodeQL default setup configuration that was correlated with D94378719 by timing.

This diff adds a custom CodeQL workflow that:

  • Explicitly configures java-kotlin analysis with build-mode: none, which performs source-only analysis without requiring compilation
  • Replaces the failing org-level CodeQL default setup for java-kotlin
  • Follows the same pattern used by other Meta open source repos (pytorch/text, ttpforge) to customize CodeQL analysis

The workflow file is placed at .github/workflows/codeql.yml in the ShipIt-exported GitHub repo structure (fbcode/glean/github/tld/).

Session trajectory link

Differential Revision: D96743566

Summary:
The "Analyze (java-kotlin)" GitHub Actions check was failing because GitHub's organization-level CodeQL default setup uses autobuild for Java/Kotlin analysis. The Glean repo's Java/Kotlin code (indexer code, test cases) uses Buck as its build system and cannot be compiled by CodeQL's autobuild, causing the analysis to consistently fail.

The thrift/Haskell changes in D94378719 did not cause this failure - it is a pre-existing issue with the CodeQL default setup configuration that was correlated with D94378719 by timing.

This diff adds a custom CodeQL workflow that:
- Explicitly configures java-kotlin analysis with `build-mode: none`, which performs source-only analysis without requiring compilation
- Replaces the failing org-level CodeQL default setup for java-kotlin
- Follows the same pattern used by other Meta open source repos (pytorch/text, ttpforge) to customize CodeQL analysis

The workflow file is placed at `.github/workflows/codeql.yml` in the ShipIt-exported GitHub repo structure (`fbcode/glean/github/tld/`).

[Session trajectory link](https://www.internalfb.com/intern/devai/devmate/inspector/?id=cbf8a985-5c99-403a-80c3-8f678e2cfa4f)

Differential Revision: D96743566
@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Apr 21, 2026
@meta-codesync
Copy link
Copy Markdown
Contributor

meta-codesync Bot commented Apr 21, 2026

@CatherineGasnier has exported this pull request. If you are a Meta employee, you can view the originating Diff in D96743566.

@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 21, 2026

Deploy Preview for fb-oss-glean canceled.

Name Link
🔨 Latest commit 05c6ae4
🔍 Latest deploy log https://app.netlify.com/projects/fb-oss-glean/deploys/69e7a774b743a20008a93477

@CatherineGasnier
Copy link
Copy Markdown
Author

This is and AI generated attempt to fix https://github.com/facebookincubator/Glean/actions/runs/22642802765/job/65623019888

Waiting for CI...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported meta-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants