Skip to content

chore(ci): remove unused Python names reported by CodeQL - #911

Merged
jeremi merged 5 commits into
mainfrom
chore/codeql-quality-cleanup
Sep 7, 2026
Merged

chore(ci): remove unused Python names reported by CodeQL#911
jeremi merged 5 commits into
mainfrom
chore/codeql-quality-cleanup

Conversation

@jeremi

@jeremi jeremi commented Sep 7, 2026

Copy link
Copy Markdown
Member

Remove three unused Python names reported by CodeQL: tempfile in CI classifier tests, os in Relay adopter tests, and a dead repository assignment in release manifest fixtures. Test behavior is unchanged.

CodeQL retains its full source coverage and the existing security-and-quality suite. The two generated-loader quality findings (#198 and #141) already have scoped alert dismissals; no path exclusion is needed.

Verification:

  • CI classifier: 83 tests passed.
  • Release manifest tooling: 80 tests passed.
  • Ruff unused-import/assignment checks passed on all three files.
  • Release gate inventory: 175 gates passed.
  • Independent review confirmed the final three-line cleanup and unchanged CodeQL configuration.

Review triage: the query-suite inventory finding was fixed by retaining the suite in the workflow; the overly broad exclusion and missing config routing findings are resolved by removing the added configuration entirely. The Relay adopter journey was not rerun locally because its only change removes an unused import.

Final review triage: the missing-DCO report is inaccurate. All five PR commits, including 15bc776e0, contain Signed-off-by: trailers and the DCO check passed. The area-splitting suggestion was evaluated: these three one-line test cleanups form one CodeQL maintenance change with no product behavior or ownership changes; the requested PR remains together, with each affected test surface checked proportionately.

Remove dead assignments and unused imports flagged by CodeQL, and move the
CodeQL workflow to a config file that ignores the napi-rs generated
index.js loaders, which are reproduced by the crate build and never
hand-edited.

Signed-off-by: Jeremi Joslin <jeremi@acn.fr>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 7, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-07T06:07:06.527719Z 15bc776 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

The release gate inventory greps codeql.yml for the security-and-quality
suite, so the config file only carries the generated-path exclusion.

Signed-off-by: Jeremi Joslin <jeremi@acn.fr>

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: fd6233a2f8

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread .github/workflows/codeql.yml Outdated
Comment thread .github/codeql/codeql-config.yml Outdated
Comment thread .github/codeql/codeql-config.yml Outdated
…leanup

Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
…leanup

Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
@jeremi jeremi changed the title chore(ci): clear CodeQL quality alerts and skip generated node loaders chore(ci): remove unused Python names reported by CodeQL Sep 7, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 15bc776e0f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread .github/scripts/test_ci_changes.py
Comment thread release/scripts/test_registry_release.py
@jeremi
jeremi merged commit 8015fbe into main Sep 7, 2026
40 checks passed
@jeremi
jeremi deleted the chore/codeql-quality-cleanup branch September 7, 2026 06:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant