Skip to content

ci: bound Rust CodeQL and stabilize terminal-idle tests - #686

Merged
GraciousGazelles merged 9 commits into
mainfrom
fix/w13183-codeql-resource-tuning-20260831
Aug 31, 2026
Merged

GraciousGazelles merged 9 commits into
mainfrom
fix/w13183-codeql-resource-tuning-20260831

Conversation

@GraciousGazelles

@GraciousGazelles GraciousGazelles commented Aug 30, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Partition Rust CodeQL analysis into four disjoint codex-rs databases plus the existing tools database.
  • Retain the complete security-and-quality suite, local threat model, and existing exclusions in every scoped analysis.
  • Keep distinct CodeQL categories and the unchanged fail-closed aggregate required gate.
  • Carry the five test-only commits from PR test(core): make terminal idle unload observation deterministic #685 to make terminal-idle regression coverage deterministic and break the landing dependency cycle.

Motivation

The original monolithic Rust analysis reached the GitHub-hosted six-hour limit after completing 39 of 40 queries; summary/SummaryStats.ql remained unfinished. Separating codex-rs from tools proved the approach for the small tools database, which completed all 40 queries, but the remaining codex-rs database still timed out on the same summary query.

This successor partitions codex-rs into core, tui, services, and a remainder scope. The scopes are disjoint and collectively exhaustive: the remainder includes all of codex-rs except the three explicitly named partitions. This bounds query evaluation without excluding source roots, removing queries, reducing languages, changing permissions, or weakening the required gate.

The GNU and musl Bazel jobs for the earlier candidate also reproduced the terminal-idle unload regression covered by PR #685. This branch includes PR #685's five test-only commits with patch provenance preserved. They touch only codex-rs/core/src/agent/control/residency_tests.rs and justfile; production Rust behavior is unchanged.

Validation

  • git diff --check
  • actionlint .github/workflows/codeql.yml
  • python3 .github/scripts/test_ci_planners.py ValidationPlanScriptTests.test_codeql_advanced_workflow_is_authoritative_hardened_setup
  • python3 .github/scripts/check_workflow_policy.py
  • The planner regression executes the exact config generator for all five Rust scopes, parses every generated YAML document, and verifies paths, exclusions, full query-suite selection, and the local threat model.
  • The final changed-path set remains limited to the CodeQL workflow, its planner regression, codex-rs/core/src/agent/control/residency_tests.rs, and justfile.

Fresh hosted checks are required for exact head 9a08eb355fb9832453c8a432106024337d36bd42. This PR is intentionally not merged by the update itself.

@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for security reviews. Please try again later.

@GraciousGazelles GraciousGazelles changed the title ci: bound Rust CodeQL analysis by source scope ci: bound Rust CodeQL and stabilize terminal-idle tests Aug 30, 2026
@GraciousGazelles
GraciousGazelles added this pull request to the merge queue Aug 31, 2026
Merged via the queue into main with commit 0148aa1 Aug 31, 2026
91 of 92 checks passed
@GraciousGazelles
GraciousGazelles deleted the fix/w13183-codeql-resource-tuning-20260831 branch August 31, 2026 12:45
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